docker

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Docker struct {
		Socket string
	}
}

Config contains configuration for docker client

type Docker

type Docker struct {
	Client *dockerclient.DockerClient
}

Docker implements crt-client interface for docker

func (*Docker) AttachEndpoint

func (d *Docker) AttachEndpoint(ctx *crtclient.ContainerEPContext) error

AttachEndpoint configures the network access and policies before the container becomes active

func (*Docker) Deinit

func (d *Docker) Deinit()

Deinit is a no-op

func (*Docker) DetachEndpoint

func (d *Docker) DetachEndpoint(ctx *crtclient.ContainerEPContext) error

DetachEndpoint uninstalls the policies and configuration during container stop/remove

func (*Docker) GetContainerID

func (d *Docker) GetContainerID(contName string) string

GetContainerID returns the uuid corresponding to the container name

func (*Docker) GetContainerName

func (d *Docker) GetContainerName(contID string) (string, error)

GetContainerName returns the name corresponding to the container uuid

func (*Docker) Init

func (d *Docker) Init(config *crtclient.Config) error

Init initializes the docker client

Jump to

Keyboard shortcuts

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