runtime

package
v0.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bind added in v0.5.0

type Bind struct {
	HostPath      string
	ContainerPath string
}

func BindBoth added in v0.5.0

func BindBoth(path string) *Bind

Convenience generator for Binds which have the same host and container path

type ContainerConfig added in v0.5.0

type ContainerConfig struct {
	Cmd          []string
	Hostname     string
	Labels       map[string]string
	Binds        []*Bind
	CapAdds      []string
	Devices      []*Bind
	StopTimeout  uint32
	AutoRemove   bool
	NetworkMode  string
	PortBindings meta.PortMappings
}

type ContainerInspectResult added in v0.5.0

type ContainerInspectResult struct {
	ID        string
	Image     string
	Status    string
	IPAddress net.IP
}

type ImageInspectResult

type ImageInspectResult struct {
	ID          string
	RepoDigests []string
	Size        int64
}

type Interface

type Interface interface {
	InspectImage(image string) (*ImageInspectResult, error)
	PullImage(image string) (io.ReadCloser, error)
	ExportImage(image string) (io.ReadCloser, string, error)

	InspectContainer(container string) (*ContainerInspectResult, error)
	AttachContainer(container string) error
	RunContainer(image string, config *ContainerConfig, name string) (string, error)
	StopContainer(container string, timeout *time.Duration) error
	KillContainer(container, signal string) error
	RemoveContainer(container string) error
	ContainerLogs(container string) (io.ReadCloser, error)
	ContainerNetNS(container string) (string, error)

	RawClient() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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