docker

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCli

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

func NewCli

func NewCli(conf config.DockerConfig) (*DockerCli, error)

func (*DockerCli) Close added in v0.1.6

func (docker *DockerCli) Close() error

func (*DockerCli) Exec

func (docker *DockerCli) Exec(ctx context.Context, container types.Container) (types.TTY, error)

func (*DockerCli) GetInfo

func (docker *DockerCli) GetInfo(ctx context.Context, cid string) types.Container

func (*DockerCli) List

func (docker *DockerCli) List(ctx context.Context) []types.Container

func (*DockerCli) Logs added in v0.1.7

func (docker *DockerCli) Logs(ctx context.Context, opts types.LogOptions) (io.ReadCloser, error)

func (*DockerCli) Restart

func (docker *DockerCli) Restart(ctx context.Context, cid string) error

func (*DockerCli) Start

func (docker *DockerCli) Start(ctx context.Context, cid string) error

func (*DockerCli) Stop

func (docker *DockerCli) Stop(ctx context.Context, cid string) error

Jump to

Keyboard shortcuts

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