kubernetes

package
v6.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutodiscoverBuilder

func AutodiscoverBuilder(bus bus.Bus, c *common.Config) (autodiscover.Provider, error)

AutodiscoverBuilder builds and returns an autodiscover provider

Types

type Config

type Config struct {
	InCluster      bool          `config:"in_cluster"`
	KubeConfig     string        `config:"kube_config"`
	Host           string        `config:"host"`
	Namespace      string        `config:"namespace"`
	SyncPeriod     time.Duration `config:"sync_period"`
	CleanupTimeout time.Duration `config:"cleanup_timeout"`

	IncludeLabels      []string `config:"include_labels"`
	ExcludeLabels      []string `config:"exclude_labels"`
	IncludeAnnotations []string `config:"include_annotations"`

	Templates template.MapperSettings `config:"templates"`
}

Config for kubernetes autodiscover provider

type Provider

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

Provider implements autodiscover provider for docker containers

func (*Provider) Start

func (p *Provider) Start()

Start the autodiscover provider. Start and stop listeners work the conventional way. Update listener triggers a stop and then a start to simulate an update.

func (*Provider) Stop

func (p *Provider) Stop()

Stop signals the stop channel to force the watch loop routine to stop.

func (*Provider) String

func (p *Provider) String() string

String returns a description of kubernetes autodiscover provider.

Jump to

Keyboard shortcuts

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