Documentation
¶
Overview ¶
Package containerdtest is a poor-man's dockertest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Container containerd.Container
// contains filtered or unexported fields
}
Container represents a container belonging to a containerd Pool.
func (*Container) Status ¶
func (c *Container) Status() containerd.ProcessStatus
Status returns the container (task) status or containerd.Unknown.
type Pool ¶
type Pool struct {
Namespace string
Client *containerd.Client
}
Pool represents a containerd client working on a specific (containerd) namespace.
func NewPool ¶
NewPool creates a new containerd client that works in the specified containerd namespace and connects to the specified API path.
func (*Pool) Purge ¶
Purge (delete) the specified container from the pool, including its task and snapshot, if any.
Click to show internal directories.
Click to hide internal directories.