Documentation ¶
Index ¶
Constants ¶
View Source
const HostsFile = "/var/run/heapster/hosts"
While updating this, also update heapster/deploy/Dockerfile.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnonContainer ¶
type CadvisorHosts ¶
type Container ¶
type Container struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Stats []*cadvisor.ContainerStats `json:"stats,omitempty"` }
type ExternalSource ¶
type ExternalSource struct {
// contains filtered or unexported fields
}
func (*ExternalSource) GetContainerStats ¶
func (self *ExternalSource) GetContainerStats() (HostnameContainersMap, error)
func (*ExternalSource) GetPods ¶
func (self *ExternalSource) GetPods() ([]Pod, error)
type HostnameContainersMap ¶
type HostnameContainersMap map[string]IdToContainerMap
type IdToContainerMap ¶
type KubeSource ¶
type KubeSource struct {
// contains filtered or unexported fields
}
func (*KubeSource) GetContainerStats ¶
func (self *KubeSource) GetContainerStats() (HostnameContainersMap, error)
func (*KubeSource) GetPods ¶
func (self *KubeSource) GetPods() ([]Pod, error)
Returns a map of minion hostnames to the Pods running in them.
type Pod ¶
type Pod struct { Name string `json:"name,omitempty"` Hostname string `json:"hostname,omitempty"` Containers []*Container `json:"containers"` Status string `json:"status,omitempty"` PodIP string `json:"podIP,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
PodState is the state of a pod, used as either input (desired state) or output (current state)
Click to show internal directories.
Click to hide internal directories.