client

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionTimeout = time.Millisecond * 500
View Source
var DockpitPrefix = "dp"

Functions

func FromContainerName added in v0.5.1

func FromContainerName(name string) (isoid, depid, stateid string, err error)

func ToContainerName added in v0.5.1

func ToContainerName(isoid, imagename string) string

func ToImageName added in v0.5.1

func ToImageName(depid, stateid string) string

Types

type Docker

type Docker struct {
	Host   string
	HostIP string
	// contains filtered or unexported fields
}

func NewDocker

func NewDocker(m *model.Model, host, cert string) (*Docker, error)

func (*Docker) Build

func (d *Docker) Build(b *model.Build) (string, error)

func (*Docker) Containers added in v0.4.2

func (d *Docker) Containers() ([]dockerclient.Container, error)

func (*Docker) Info

func (d *Docker) Info() (*dockerclient.Info, error)

func (*Docker) Remove added in v0.3.1

func (d *Docker) Remove(s *model.State) error

func (*Docker) RemoveAll

func (d *Docker) RemoveAll() error

func (*Docker) Running added in v0.5.1

func (d *Docker) Running(allIsos []*model.Isolation, allDeps []*model.Dep) (map[*model.Isolation]map[*model.Dep]dockerclient.Container, error)

func (*Docker) Start added in v0.3.1

func (d *Docker) Start(run *model.Run, isolationId string) (string, error)

func (*Docker) Switch

func (d *Docker) Switch(iso *model.Isolation) error

Jump to

Keyboard shortcuts

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