docker

package
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 6 Imported by: 1

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

func (i *Interactor) ContainerList(ctx context.Context) ([]*container.Container, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL