Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.New(os.Stdout, "", 0)
Logger is used by the package to log events. It may be set to the application logger to change the destination.
Functions ¶
func New ¶
New creates a Docker runtime from the provided configuration. The runtime listens for container events on the Docker `endpoint`.
The hostIP is reported to Beacon as the IP address used to connect to discovered containers when they listen on all host addresses (0.0.0.0).
The serviceLabel is used to look up the service name from the labels on the container. Containers without this label or with an empty serviceLabel are ignored.
If stopOnClose is true then stop events will be queued for each running container when Close is called.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.