Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interactor ¶
type Interactor struct {
// contains filtered or unexported fields
}
Interator implements the container/Interactor interface for docker.
func NewInteractor ¶
func NewInteractor(cl *client.Client) *Interactor
NewInteractor creates a new docker interactor, working on docker containers using the supplied client.
func (*Interactor) ContainerKill ¶
func (i *Interactor) ContainerKill(ctx context.Context, containerID string) error
ContainerKill implements the Interactor interface method, which kills the container with the given id.
func (*Interactor) ContainerList ¶
ContainerList implements the Interactor interface method, which returns the list of containers.
func (*Interactor) ContainerStats ¶
func (i *Interactor) ContainerStats(ctx context.Context, containerID string) (*container.Stats, error)
ContainerStats implements the Interactor interface method, which returns the container stats with the given id.
Click to show internal directories.
Click to hide internal directories.