Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPodResourcesCommand ¶
func NewPodResourcesCommand(knitOpts *cmd.KnitOptions) *cobra.Command
Types ¶
type AllocatableResourcesResponse ¶ added in v0.1.3
type AllocatableResourcesResponse struct {
Devices []*ContainerDevices `json:"devices,omitempty"`
CpuIds []int64 `json:"cpu_ids,omitempty"`
Memory []*ContainerMemory `json:"memory,omitempty"`
}
AllocatableResourcesResponse contains information about all the devices known by the kubelet
type ContainerDevices ¶ added in v0.1.3
type ContainerDevices struct {
ResourceName string `json:"resource_name,omitempty"`
DeviceIds []string `json:"device_ids,omitempty"`
Topology *TopologyInfo `json:"topology,omitempty"`
}
ContainerDevices contains information about the devices assigned to a container
type ContainerMemory ¶ added in v0.1.3
type ContainerMemory struct {
MemoryType string `json:"memory_type,omitempty"`
Size_ uint64 `json:"size,omitempty"`
Topology *TopologyInfo `json:"topology,omitempty"`
}
ContainerMemory contains information about memory and hugepages assigned to a container
type ContainerResources ¶ added in v0.1.3
type ContainerResources struct {
Name string `json:"name,omitempty"`
Devices []*ContainerDevices `json:"devices,omitempty"`
CpuIds []int64 `json:"cpu_ids,omitempty"`
Memory []*ContainerMemory `json:"memory,omitempty"`
}
ContainerResources contains information about the resources assigned to a container
type ListPodResourcesResponse ¶ added in v0.1.3
type ListPodResourcesResponse struct {
PodResources []*PodResources `json:"pod_resources,omitempty"`
}
ListPodResourcesResponse is the response returned by List function
type NUMANode ¶ added in v0.1.3
type NUMANode struct {
ID *int64 `json:"ID,omitempty"`
}
NUMANode contains NUMA nodes information
type PodResources ¶ added in v0.1.3
type PodResources struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Containers []*ContainerResources `json:"containers,omitempty"`
}
PodResources contains information about the node resources assigned to a pod
type TopologyInfo ¶ added in v0.1.3
type TopologyInfo struct {
Nodes []*NUMANode `json:"nodes,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.