docker

package
v3.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package docker is an observer that watches a docker daemon and reports container ports as service endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.ObserverConfig
	DockerURL string `yaml:"dockerURL" default:"unix:///var/run/docker.sock"`
	// How often to poll the docker API
	PollIntervalSeconds int `yaml:"pollIntervalSeconds" default:"10"`
}

Config specific to the Docker observer

func (*Config) Validate

func (c *Config) Validate() error

Validate the docker-specific config

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

Docker observer plugin

func (*Docker) Configure

func (docker *Docker) Configure(config *Config) error

Configure the docker client

func (*Docker) Shutdown

func (docker *Docker) Shutdown()

Shutdown the service differ routine

Jump to

Keyboard shortcuts

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