Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OneContainerMultiDeviceSplitSymbol this is when one container use multi device, use : symbol to join device info. OneContainerMultiDeviceSplitSymbol = ":" // OnePodMultiContainerSplitSymbol this is when one pod having multi container and // more than one container use device, use ; symbol to join device info. OnePodMultiContainerSplitSymbol = ";" )
Variables ¶
This section is empty.
Functions ¶
func EncodeNodeDevices ¶
func EncodeNodeDevices(dlist []*DeviceInfo) string
Types ¶
type ContainerDevice ¶
type ContainerDevices ¶
type ContainerDevices []ContainerDevice
func DecodeContainerDevices ¶
func DecodeContainerDevices(str string) (ContainerDevices, error)
type DeviceInfo ¶
type DeviceInfo struct { Index int `json:"index,omitempty"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` Devmem int32 `protobuf:"varint,3,opt,name=devmem,proto3" json:"devmem,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Health bool `protobuf:"varint,5,opt,name=health,proto3" json:"health,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func DecodeNodeDevices ¶
func DecodeNodeDevices(str string) ([]*DeviceInfo, error)
type PodSingleDevice ¶
type PodSingleDevice []ContainerDevices
Click to show internal directories.
Click to hide internal directories.