Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AddContainerByCgroupID(ctx context.Context, cgroupID cgroup.ID) (cont *Container, rerrr error)
- func (c *Client) CleanupCgroup(cgroup cgroup.ID)
- func (c *Client) GetCgroupCpuStats(cont *Container) (*cgroup.CPUStat, error)
- func (c *Client) GetCgroupMemoryStats(cont *Container) (*cgroup.MemoryStat, error)
- func (c *Client) GetCgroupsInNamespace(namespace string) []uint64
- func (c *Client) GetContainerForCgroup(ctx context.Context, cgroup uint64) (*Container, error)
- func (c *Client) ListContainers() []*Container
- func (c *Client) LoadContainerTasks(ctx context.Context) ([]ContainerProcess, error)
- func (c *Client) LookupContainerForCgroupInCache(cgroup uint64) (*Container, bool, error)
- func (c *Client) RegisterContainerCreatedListener(l ContainerCreatedListener)
- func (c *Client) RegisterContainerDeletedListener(l ContainerDeletedListener)
- type Container
- type ContainerCreatedListener
- type ContainerDeletedListener
- type ContainerProcess
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrContainerNotFound = errors.New("container not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is generic container client.
func (*Client) AddContainerByCgroupID ¶ added in v1.15.0
func (*Client) CleanupCgroup ¶
func (*Client) GetCgroupCpuStats ¶ added in v1.7.0
func (*Client) GetCgroupMemoryStats ¶ added in v1.7.0
func (c *Client) GetCgroupMemoryStats(cont *Container) (*cgroup.MemoryStat, error)
func (*Client) GetCgroupsInNamespace ¶
func (*Client) GetContainerForCgroup ¶
func (*Client) ListContainers ¶
func (*Client) LoadContainerTasks ¶ added in v1.15.0
func (c *Client) LoadContainerTasks(ctx context.Context) ([]ContainerProcess, error)
func (*Client) LookupContainerForCgroupInCache ¶ added in v1.1.0
func (*Client) RegisterContainerCreatedListener ¶
func (c *Client) RegisterContainerCreatedListener(l ContainerCreatedListener)
func (*Client) RegisterContainerDeletedListener ¶
func (c *Client) RegisterContainerDeletedListener(l ContainerDeletedListener)
type ContainerCreatedListener ¶
type ContainerCreatedListener func(c *Container)
type ContainerDeletedListener ¶
type ContainerDeletedListener func(c *Container)
type ContainerProcess ¶ added in v1.15.0
Click to show internal directories.
Click to hide internal directories.