docker_hdl

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerLogConf added in v0.13.0

type ContainerLogConf struct {
	Driver  string
	MaxSize string
	MaxFile int
}

type Handler added in v0.14.0

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

func New

func New(c *client.Client, ctrLogConf ContainerLogConf) (*Handler, error)

func (*Handler) ContainerCreate added in v0.14.0

func (h *Handler) ContainerCreate(ctx context.Context, ctrConf model.Container) (string, error)

func (*Handler) ContainerExec added in v0.14.0

func (h *Handler) ContainerExec(ctx context.Context, id string, execOpt model.ExecConfig) error

func (*Handler) ContainerInfo added in v0.14.0

func (h *Handler) ContainerInfo(ctx context.Context, id string) (model.Container, error)

func (*Handler) ContainerLog added in v0.14.0

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

func (*Handler) ContainerRemove added in v0.14.0

func (h *Handler) ContainerRemove(ctx context.Context, id string, force bool) error

func (*Handler) ContainerRestart added in v0.14.0

func (h *Handler) ContainerRestart(ctx context.Context, id string) error

func (*Handler) ContainerStart added in v0.14.0

func (h *Handler) ContainerStart(ctx context.Context, id string) error

func (*Handler) ContainerStop added in v0.14.0

func (h *Handler) ContainerStop(ctx context.Context, id string) error

func (*Handler) ImageInfo added in v0.14.0

func (h *Handler) ImageInfo(ctx context.Context, id string) (model.Image, error)

func (*Handler) ImagePull added in v0.14.0

func (h *Handler) ImagePull(ctx context.Context, id string) error

func (*Handler) ImageRemove added in v0.14.0

func (h *Handler) ImageRemove(ctx context.Context, id string) error

func (*Handler) ListContainers added in v0.14.0

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

func (*Handler) ListImages added in v0.14.0

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

func (*Handler) ListNetworks added in v0.14.0

func (h *Handler) ListNetworks(ctx context.Context) ([]model.Network, error)

func (*Handler) ListVolumes added in v0.14.0

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

func (*Handler) NetworkCreate added in v0.14.0

func (h *Handler) NetworkCreate(ctx context.Context, net model.Network) (string, error)

func (*Handler) NetworkInfo added in v0.14.0

func (h *Handler) NetworkInfo(ctx context.Context, id string) (model.Network, error)

func (*Handler) NetworkRemove added in v0.14.0

func (h *Handler) NetworkRemove(ctx context.Context, id string) error

func (*Handler) PruneImages added in v0.14.0

func (h *Handler) PruneImages(ctx context.Context) error

func (*Handler) ServerInfo added in v0.14.0

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

func (*Handler) VolumeCreate added in v0.14.0

func (h *Handler) VolumeCreate(ctx context.Context, vol model.Volume) (string, error)

func (*Handler) VolumeInfo added in v0.14.0

func (h *Handler) VolumeInfo(ctx context.Context, id string) (model.Volume, error)

func (*Handler) VolumeRemove added in v0.14.0

func (h *Handler) VolumeRemove(ctx context.Context, id string, force bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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