container

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 7 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
	// GetShell returns the shell name, bash>ash>sh
	GetShell(ctx context.Context, containerID string) string
	Start(ctx context.Context, containerID string) error
	Stop(ctx context.Context, containerID string) error
	Restart(ctx context.Context, containerID string) error
}

func NewCliBackend added in v0.1.2

func NewCliBackend(conf config.BackendConfig) (cli Cli, factory *localcommand.Factory, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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