Documentation ¶
Index ¶
Constants ¶
View Source
const ( V1 = iota V2 )
Variables ¶
View Source
var (
ErrCgroupNotFound = errors.New("cgroup not found")
)
Functions ¶
Types ¶
type Cgroup ¶
type Cgroup struct { Id uint64 Version Version ContainerType ContainerType ContainerID string Path string // contains filtered or unexported fields }
func (*Cgroup) MemoryStat ¶
func (cg *Cgroup) MemoryStat() (*MemoryStat, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DefaultCgroupVersion ¶
func (*Client) GetCgroupForContainer ¶
type ContainerType ¶
type ContainerType uint8
const ( ContainerTypeUnknown ContainerType = iota ContainerTypeStandaloneProcess ContainerTypeDocker ContainerTypeCrio ContainerTypeContainerd ContainerTypeLxc ContainerTypeSystemdService ContainerTypeSandbox )
func (ContainerType) String ¶
func (t ContainerType) String() string
type MemoryStat ¶
Click to show internal directories.
Click to hide internal directories.