Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddObserver(ob ContainerObserver) error
- func (c *Client) AllContainerIDs() ([]string, error)
- func (c *Client) DockerVersion() string
- func (c *Client) EnsureNetwork(networkName, driver, subnet string, options map[string]interface{}) error
- func (c *Client) GetContainerIP(nameOrID string) (string, error)
- func (c *Client) Info() string
- func (c *Client) IsContainerNotRunning(idStr string) bool
- func (c *Client) RunningContainerIDs() ([]string, error)
- type ContainerObserver
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
NewClient creates a new Docker client and checks we can talk to Docker
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
AllContainerIDs returns all the IDs of Docker containers, whether they are running or not.
func (*Client) EnsureNetwork ¶
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
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.