docker_hdl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func New

func New(c *client.Client) *Docker

func (*Docker) ContainerCreate

func (d *Docker) ContainerCreate(ctx context.Context, ctrConf model.Container) (string, error)

func (*Docker) ContainerInfo

func (d *Docker) ContainerInfo(ctx context.Context, id string) (model.Container, error)

func (*Docker) ContainerLog

func (d *Docker) ContainerLog(ctx context.Context, id string, logOpt model.LogFilter) (io.ReadCloser, error)

func (*Docker) ContainerRemove

func (d *Docker) ContainerRemove(ctx context.Context, id string) error

func (*Docker) ContainerRestart

func (d *Docker) ContainerRestart(ctx context.Context, id string) error

func (*Docker) ContainerStart

func (d *Docker) ContainerStart(ctx context.Context, id string) error

func (*Docker) ContainerStop

func (d *Docker) ContainerStop(ctx context.Context, id string) error

func (*Docker) ImageInfo

func (d *Docker) ImageInfo(ctx context.Context, id string) (model.Image, error)

func (*Docker) ImagePull

func (d *Docker) ImagePull(ctx context.Context, id string) error

func (*Docker) ImageRemove

func (d *Docker) ImageRemove(ctx context.Context, id string) error

func (*Docker) ListContainers

func (d *Docker) ListContainers(ctx context.Context, filter model.ContainerFilter) ([]model.Container, error)

func (*Docker) ListImages

func (d *Docker) ListImages(ctx context.Context, filter model.ImageFilter) ([]model.Image, error)

func (*Docker) ListNetworks

func (d *Docker) ListNetworks(ctx context.Context) ([]model.Network, error)

func (*Docker) ListVolumes

func (d *Docker) ListVolumes(ctx context.Context, filter model.VolumeFilter) ([]model.Volume, error)

func (*Docker) NetworkCreate

func (d *Docker) NetworkCreate(ctx context.Context, net model.Network) (string, error)

func (*Docker) NetworkInfo

func (d *Docker) NetworkInfo(ctx context.Context, id string) (model.Network, error)

func (*Docker) NetworkRemove

func (d *Docker) NetworkRemove(ctx context.Context, id string) error

func (*Docker) PruneImages

func (d *Docker) PruneImages(ctx context.Context) error

func (*Docker) ServerInfo

func (d *Docker) ServerInfo(ctx context.Context, delay time.Duration) (map[string]string, error)

func (*Docker) VolumeCreate

func (d *Docker) VolumeCreate(ctx context.Context, vol model.Volume) (string, error)

func (*Docker) VolumeInfo

func (d *Docker) VolumeInfo(ctx context.Context, id string) (model.Volume, error)

func (*Docker) VolumeRemove

func (d *Docker) VolumeRemove(ctx context.Context, id string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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