docker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*docker.Client
}

func NewClient

func NewClient(apiPath string) (*Client, error)

NewClient creates a new Docker client and checks we can talk to Docker

func (*Client) AddObserver

func (c *Client) AddObserver(ob ContainerObserver) error

AddObserver adds an observer for docker events

func (*Client) IsContainerNotRunning

func (c *Client) IsContainerNotRunning(idStr string) bool

IsContainerNotRunning returns true if we have checked with Docker that the ID is not running

type ContainerObserver

type ContainerObserver interface {
	ContainerDied(ident string)
}

An observer for container events

Jump to

Keyboard shortcuts

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