Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) CleanupCgroup(cgroup cgroup.ID)
- 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) LookupContainerForCgroupInCache(cgroup uint64) (*Container, bool, error)
- func (c *Client) RegisterContainerCreatedListener(l ContainerCreatedListener)
- func (c *Client) RegisterContainerDeletedListener(l ContainerDeletedListener)
- type Container
- type ContainerCreatedListener
- type ContainerDeletedListener
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) CleanupCgroup ¶
func (*Client) GetCgroupsInNamespace ¶
func (*Client) GetContainerForCgroup ¶
func (*Client) ListContainers ¶
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)
Click to show internal directories.
Click to hide internal directories.