docker

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CTYPE = "container"

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(manifest *types.ContainerManifest) *container.Config

func GetHostConfig

func GetHostConfig(manifest *types.ContainerManifest) *container.HostConfig

func GetNetworkConfig

func GetNetworkConfig(manifest *types.ContainerManifest) *network.NetworkingConfig

Types

type Runtime

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

func New

func New(cfg config) (*Runtime, error)

func (*Runtime) Create

func (r *Runtime) Create(ctx context.Context, manifest *types.ContainerManifest) (string, error)

func (*Runtime) Inspect

func (r *Runtime) Inspect(ctx context.Context, ID string) (*types.Container, error)

func (*Runtime) List

func (r *Runtime) List(ctx context.Context, all bool) ([]*types.Container, error)

func (*Runtime) Logs

func (r *Runtime) Logs(ctx context.Context, ID string, stdout, stderr, follow bool) (io.ReadCloser, error)

func (*Runtime) Pause

func (r *Runtime) Pause(ctx context.Context, ID string) error

func (*Runtime) Remove

func (r *Runtime) Remove(ctx context.Context, ID string, clean bool, force bool) error

func (*Runtime) Restart

func (r *Runtime) Restart(ctx context.Context, ID string, timeout *time.Duration) error

func (*Runtime) Resume

func (r *Runtime) Resume(ctx context.Context, ID string) error

func (*Runtime) Start

func (r *Runtime) Start(ctx context.Context, ID string) error

func (*Runtime) Stop

func (r *Runtime) Stop(ctx context.Context, ID string, timeout *time.Duration) error

func (*Runtime) Subscribe

func (r *Runtime) Subscribe(ctx context.Context, container chan *types.Container) error

Jump to

Keyboard shortcuts

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