Documentation
¶
Index ¶
- type BlkioStat
- type Cgroup
- func (cg *Cgroup) BlkioStat() (map[string]BlkioStat, error)
- func (cg Cgroup) CpuQuotaCores() (float64, error)
- func (cg Cgroup) CpuUsageSeconds() (float64, error)
- func (cg *Cgroup) CreatedAt() time.Time
- func (cg *Cgroup) GetStats() *Stats
- func (cg *Cgroup) MemoryLimitBytes() (uint64, error)
- func (cg *Cgroup) MemoryStat() (MemoryStat, error)
- func (cg Cgroup) ThrottledTimeSeconds() (float64, error)
- type ContainerType
- type MemoryStat
- type Stats
- type ThrottlingStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cgroup ¶
type Cgroup struct { Id string ContainerType ContainerType ContainerId string // contains filtered or unexported fields }
func (Cgroup) CpuQuotaCores ¶
func (Cgroup) CpuUsageSeconds ¶
func (*Cgroup) MemoryLimitBytes ¶
func (*Cgroup) MemoryStat ¶
func (cg *Cgroup) MemoryStat() (MemoryStat, error)
func (Cgroup) ThrottledTimeSeconds ¶
type ContainerType ¶
type ContainerType uint8
const ( ContainerTypeUnknown ContainerType = iota ContainerTypeStandaloneProcess ContainerTypeDocker ContainerTypeCrio ContainerTypeContainerd ContainerTypeLxc ContainerTypeSystemdService )
func (ContainerType) String ¶
func (t ContainerType) String() string
type MemoryStat ¶
type ThrottlingStat ¶
Click to show internal directories.
Click to hide internal directories.