Documentation
¶
Index ¶
- Variables
- func RemoveScientificNotationFromFloat(x float64) (float64, error)
- func SetupRegistry()
- func StartCacheSizeTicker(logger *slog.Logger, duration int64)
- func StartEventStreamer(logger *slog.Logger, updateImage bool)
- type Container
- type ContainerStat
- type Image
- type ImageReport
- type Network
- type Pod
- type System
- type Volume
Constants ¶
This section is empty.
Variables ¶
var ErrDeadline = errors.New("deadline exceeded")
ErrDeadline deadline exceeded error.
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.
func SetupRegistry ¶ added in v1.2.0
func SetupRegistry()
SetupRegistry will initialize podman registry.
func StartCacheSizeTicker ¶ added in v1.10.0
StartCacheSizeTicker starts container cache refresh routine.
func StartEventStreamer ¶ added in v1.8.0
Types ¶
type Container ¶
type Container struct { ID string PodID string // if container is part of pod PodName string // if container is part of pod Name string Labels map[string]string Image string Created int64 Started int64 Exited int64 ExitCode int32 Ports string State int Health int RwSize int64 RootFsSize int64 }
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 CPUSystem float64 MemUsage uint64 MemLimit uint64 NetInput uint64 NetOutput uint64 NetInputDropped uint64 NetInputErrors uint64 NetInputPackets uint64 NetOutputDropped uint64 NetOutputErrors uint64 NetOutputPackets uint64 BlockInput uint64 BlockOutput uint64 }
ContainerStat implements container's stat.
func ContainersStats ¶
func ContainersStats() ([]ContainerStat, error)
ContainersStats returns list of containers stats (ContainerStat).
type Image ¶
type Image struct { ID string ParentID string Repository string Tag string Created int64 Size int64 Digest string Labels map[string]string }
Image implements image's basic information.
type ImageReport ¶ added in v1.8.0
type ImageReport struct {
// contains filtered or unexported fields
}
type Pod ¶
type Pod struct { ID string InfraID string Name string Labels map[string]string Created int64 State int NumOfContainers int }
Pod implements pod's basic information.