container

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: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli interface {
	// GetInfo of a container
	GetInfo(ctx context.Context, containerID string) types.Container
	// List all containers
	List(context.Context) []types.Container
	Start(ctx context.Context, containerID string) error
	Stop(ctx context.Context, containerID string) error
	Restart(ctx context.Context, containerID string) error
	// exec into container
	Exec(ctx context.Context, container types.Container) (types.TTY, error)
	// close the connections
	Close() error
	// read logs
	Logs(ctx context.Context, opts types.LogOptions) (io.ReadCloser, error)
}

Cli is a docker backend client

func NewCliBackend added in v0.1.2

func NewCliBackend(conf config.BackendConfig) (cli Cli, err error)

NewCliBackend returns the client backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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