conductor

package
v0.0.0-...-a2b334f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conductor

type Conductor struct {
	Client *docker.Client
}

func New

func New(Host string) *Conductor

func (*Conductor) CreateAndStartContainer

func (c *Conductor) CreateAndStartContainer(cfg ConductorContainerConfig)

func (*Conductor) FindContainer

func (c *Conductor) FindContainer(needle string) *ConductorContainer

func (*Conductor) PullImage

func (c *Conductor) PullImage(image string) (string, error)

func (*Conductor) RemoveContainer

func (c *Conductor) RemoveContainer(id string) error

type ConductorContainer

type ConductorContainer struct {
	Conductor *Conductor
	Container *docker.Container
}

func (*ConductorContainer) ID

func (c *ConductorContainer) ID() string

type ConductorContainerConfig

type ConductorContainerConfig struct {
	Name        string
	Image       string
	PortMap     map[string]string
	Environment []string
	Volumes     []string
	Dns         []string
	Entrypoint  string
}

Jump to

Keyboard shortcuts

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