Versions in this module Expand all Collapse all v1 v1.0.0 Jun 10, 2018 Changes in this version + type ContainerInfo struct + CpuMax *CpuResource + CpuMaxTime time.Time + MemoryMax *MemoryResource + MemoryMaxTime time.Time + Name string + type ContainerMaxes struct + CpuMax *CpuResource + CpuMaxTime time.Time + MemoryMax *MemoryResource + MemoryMaxTime time.Time + type ContainerResources struct + CpuLimit *CpuResource + CpuReq *CpuResource + MemLimit *MemoryResource + MemReq *MemoryResource + Name string + Namespace string + PercentCpuLimit int + PercentCpuReq int + PercentMemoryLimit int + PercentMemoryReq int + type ContainerStatus struct + Age time.Time + Name string + Ready bool + Restarts int + Status string + type ContainerUsage struct + CpuUsage *CpuResource + MemoryUsage *MemoryResource + Name string + type CpuResource struct + func NewCpuResource(value int64) *CpuResource + func (r *CpuResource) String() string + type KubeClient struct + func NewKubeClient(clientset *kubernetes.Clientset) *KubeClient + func (k *KubeClient) ClusterCapacity() (capacity api_v1.ResourceList, err error) + func (k *KubeClient) ContainerResources(namespace string) (resources []*ContainerResources, err error) + func (k *KubeClient) Containers(namespace string) ([]*ContainerInfo, error) + func (k *KubeClient) Events(namespace string) ([]api_v1.Event, error) + func (k *KubeClient) NodeContainerResources(namespace, nodeName string) (resources []*ContainerResources, err error) + func (k *KubeClient) NodeResources(node *api_v1.Node, namespace string) (*NodeResources, error) + func (k *KubeClient) Nodes() ([]api_v1.Node, error) + type MemoryResource struct + func NewMemoryResource(value int64) *MemoryResource + func (r *MemoryResource) String() string + type NodeResources struct + CpuCapacity *CpuResource + CpuUsage *CpuResource + MemoryCapacity *MemoryResource + MemoryUsage *MemoryResource + Name string + PercentCpu int + PercentMemory int + Pods int