Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveScientificNotationFromFloat ¶
RemoveScientificNotationFromFloat returns a float without any scientific notation if the number has any. golang does not handle conversion of float64s that have scientific notation in them and otherwise stinks. please replace this if you have a better implementation.
Types ¶
type Container ¶
type Container struct { ID string PodID string // if container is part of pod Name string Image string Created string Ports string State int }
Container implements container's basic information and its state.
func Containers ¶
Containers returns list of containers (Container)
type ContainerStat ¶
type ContainerStat struct { ID string Name string PIDs uint64 CPU float64 MemUsage uint64 MemLimit uint64 MemPerc float64 NetInput uint64 NetOutput uint64 BlockInput uint64 BlockOutput uint64 }
ContainerStat implements container's stat.
func ContainersStats ¶
func ContainersStats() ([]ContainerStat, error)
ContainersStats returns list of containers stats (ContainerStat).
type Pod ¶
type Pod struct { ID string InfraID string Name string Created string State int NumOfContainers int }
Pod implements pod's basic information
Click to show internal directories.
Click to hide internal directories.