provider

package
v0.0.0-...-400655f Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2015 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package provider holds the different provider implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDb

type BoltDb struct {
	Watch      bool
	Endpoint   string
	Prefix     string
	Filename   string
	KvProvider *Kv
}

BoltDb holds configurations of the BoltDb provider.

func (*BoltDb) Provide

func (provider *BoltDb) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type Consul

type Consul struct {
	Watch      bool
	Endpoint   string
	Prefix     string
	Filename   string
	KvProvider *Kv
}

Consul holds configurations of the Consul provider.

func (*Consul) Provide

func (provider *Consul) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type Docker

type Docker struct {
	Watch    bool
	Endpoint string
	Filename string
	Domain   string
}

Docker holds configurations of the Docker provider.

func (*Docker) GetFrontendRule

func (provider *Docker) GetFrontendRule(container docker.Container) string

GetFrontendRule returns the frontend rule for the specified container, using it's label. It returns a default one (Host) if the label is not present.

func (*Docker) GetFrontendValue

func (provider *Docker) GetFrontendValue(container docker.Container) string

GetFrontendValue returns the frontend value for the specified container, using it's label. It returns a default one if the label is not present.

func (*Docker) Provide

func (provider *Docker) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type Etcd

type Etcd struct {
	Watch      bool
	Endpoint   string
	Prefix     string
	Filename   string
	KvProvider *Kv
}

Etcd holds configurations of the Etcd provider.

func (*Etcd) Provide

func (provider *Etcd) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type File

type File struct {
	Watch    bool
	Filename string
}

File holds configurations of the File provider.

func (*File) Provide

func (provider *File) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type Kv

type Kv struct {
	Watch     bool
	Endpoint  string
	Prefix    string
	Filename  string
	StoreType store.Backend
	// contains filtered or unexported fields
}

Kv holds common configurations of key-value providers.

func NewBoltDbProvider

func NewBoltDbProvider(provider *BoltDb) *Kv

NewBoltDbProvider returns a BoldDb provider.

func NewConsulProvider

func NewConsulProvider(provider *Consul) *Kv

NewConsulProvider returns a Consul provider.

func NewEtcdProvider

func NewEtcdProvider(provider *Etcd) *Kv

NewEtcdProvider returns a Etcd provider.

func NewZkProvider

func NewZkProvider(provider *Zookepper) *Kv

NewZkProvider returns a Zookepper provider.

type Marathon

type Marathon struct {
	Watch            bool
	Endpoint         string
	Domain           string
	Filename         string
	NetworkInterface string
	// contains filtered or unexported fields
}

Marathon holds configuration of the Marathon provider.

func (*Marathon) GetFrontendRule

func (provider *Marathon) GetFrontendRule(application marathon.Application) string

GetFrontendRule returns the frontend rule for the specified application, using it's label. It returns a default one (Host) if the label is not present.

func (*Marathon) GetFrontendValue

func (provider *Marathon) GetFrontendValue(application marathon.Application) string

GetFrontendValue returns the frontend value for the specified application, using it's label. It returns a default one if the label is not present.

func (*Marathon) Provide

func (provider *Marathon) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

type Provider

type Provider interface {
	// Provide allows the provider to provide configurations to traefik
	// using the given configuration channel.
	Provide(configurationChan chan<- types.ConfigMessage) error
}

Provider defines methods of a provider.

type Zookepper

type Zookepper struct {
	Watch      bool
	Endpoint   string
	Prefix     string
	Filename   string
	KvProvider *Kv
}

Zookepper holds configurations of the Zookepper provider.

func (*Zookepper) Provide

func (provider *Zookepper) Provide(configurationChan chan<- types.ConfigMessage) error

Provide allows the provider to provide configurations to traefik using the given configuration channel.

Jump to

Keyboard shortcuts

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