Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AddContainerByID(ctx context.Context, containerID string) (cont *Container, rerrr error)
- func (c *Client) CleanupCgroup(cgroup uint64)
- func (c *Client) GetCgroupsInNamespace(namespace string) []uint64
- func (c *Client) GetContainerForCgroup(ctx context.Context, cgroup uint64) (*Container, error)
- func (c *Client) Init(ctx context.Context) error
- func (c *Client) ListContainers() []*Container
- 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) AddContainerByID ¶
func (*Client) CleanupCgroup ¶
func (*Client) GetCgroupsInNamespace ¶
func (*Client) GetContainerForCgroup ¶
func (*Client) ListContainers ¶
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.