Documentation ¶
Index ¶
Constants ¶
View Source
const ( V1 = iota V2 )
Variables ¶
View Source
var ( ErrContainerIDNotFoundInCgroupPath = errors.New("container id not found in cgroup path") ErrCgroupNotFound = errors.New("cgroup not found") )
Functions ¶
Types ¶
type Cgroup ¶
type Cgroup struct { Id uint64 Version Version ContainerRuntime ContainerRuntimeID 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) CleanupCgroup ¶ added in v1.3.0
func (*Client) DefaultCgroupVersion ¶
func (*Client) GetCgroupForContainer ¶
func (*Client) LoadCgroup ¶ added in v1.3.0
type ContainerRuntimeID ¶ added in v1.3.0
type ContainerRuntimeID int
Represents the internal ID of a container runtime
const ( UnknownRuntime ContainerRuntimeID = iota DockerRuntime ContainerdRuntime CrioRuntime PodmanRuntime GardenRuntime )
func FromString ¶ added in v1.3.0
func FromString(str string) ContainerRuntimeID
func (ContainerRuntimeID) String ¶ added in v1.3.0
func (runtime ContainerRuntimeID) String() string
type MemoryStat ¶
Click to show internal directories.
Click to hide internal directories.