github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/edge/pkg/edged/edgedtypes/types.go (about) 1 package edgedtypes 2 3 import ( 4 "k8s.io/api/core/v1" 5 "k8s.io/apimachinery/pkg/api/resource" 6 "k8s.io/apimachinery/pkg/types" 7 ) 8 9 // PodStatusRequest is Message.Content which come from edge 10 type PodStatusRequest struct { 11 UID types.UID 12 Name string 13 Status v1.PodStatus 14 } 15 16 //ExtendResource is extended resource details that come from edge 17 type ExtendResource struct { 18 Name string `json:"name,omitempty"` 19 Type string `json:"type,omitempty"` 20 Capacity resource.Quantity `json:"capacity,omitempty"` 21 } 22 23 // NodeStatusRequest is Message.Content which come from edge 24 type NodeStatusRequest struct { 25 UID types.UID 26 Status v1.NodeStatus 27 ExtendResources map[v1.ResourceName][]ExtendResource 28 }