Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitialInterval = 1 * time.Second MaxInterval = 20 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewVersionedClient ¶ added in v1.2.0
func NewVersionedClientFromEnv ¶ added in v1.4.0
func (*Client) AddObserver ¶
func (c *Client) AddObserver(ob ContainerObserver) error
AddObserver adds an observer for docker events
func (*Client) AllContainerIDs ¶ added in v1.5.0
func (*Client) GetContainerIP ¶ added in v1.4.0
This is intended to find an IP address that we can reach the container on; if it is on the Docker bridge network then that address; if on the host network then localhost
func (*Client) IsContainerNotRunning ¶
IsContainerNotRunning returns true if we have checked with Docker that the ID is not running
type ContainerObserver ¶
type ContainerObserver interface { ContainerStarted(ident string) ContainerDied(ident string) ContainerDestroyed(ident string) }
An observer for container events
Click to show internal directories.
Click to hide internal directories.