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
Click to show internal directories.
Click to hide internal directories.