containermanager

package
v0.0.0-...-5f30371 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindConfig

type BindConfig struct {
	InstanceId string
	BindingId  string
}

type Binding

type Binding struct {
	Port string
}

type ContainerConfig

type ContainerConfig struct {
	Name         string
	Image        string
	ExposedPorts []string
}

type ContainerInfo

type ContainerInfo struct {
	ExternalAddress string
	InternalAddress string
	Bindings        map[string][]Binding
}

type ContainerManager

type ContainerManager interface {
	Provision(ctx context.Context, cc ContainerConfig) error
	Deprovision(ctx context.Context, instanceID string) error
	Bind(cts context.Context, bc BindConfig) (*ContainerInfo, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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