Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Create indicates that a container has been created. Create = "create" // Destroy indicates that a container has been destroyed. Destroy = "destroy" // Start indicates that a container has been started. Start = "start" // Die indicates that a container has been stopped. Die = "die" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Host provides the address to use for connecting to the Docker daemon. Host string // Logger is a pointer to a Logger instance Logger *logger.Logger }
Config provides the configuration for the Docker monitor.
type Dockmon ¶
type Dockmon struct { EventChan <-chan *Event // contains filtered or unexported fields }
Dockmon manages a connection to the Docker daemon and delivers events as containers are created, destroyed, started, and stopped. A list of containers is also kept.
func (*Dockmon) Close ¶
func (d *Dockmon) Close()
Close shuts down the connection to the Docker daemon.
func (*Dockmon) StartContainer ¶
StartContainer attempts to start the specified container.
Click to show internal directories.
Click to hide internal directories.