docker

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: BSD-3-Clause Imports: 8 Imported by: 1

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

func New(endpoint string, hostIP, serviceLabel string, stopOnClose bool) (beacon.Runtime, error)

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.

Jump to

Keyboard shortcuts

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