docker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContainerID

func IsContainerID(idStr string) bool

IsContainerID returns True if the string provided is a valid container id

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) error
}

An observer for container events

Jump to

Keyboard shortcuts

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