provider

package
v2.0.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMiddleware

func AddMiddleware(configuration *config.HTTPConfiguration, middlewareName string, middleware *config.Middleware) bool

AddMiddleware Adds a middleware to a configurations.

func AddRouter

func AddRouter(configuration *config.HTTPConfiguration, routerName string, router *config.Router) bool

AddRouter Adds a router to a configurations.

func AddRouterTCP

func AddRouterTCP(configuration *config.TCPConfiguration, routerName string, router *config.TCPRouter) bool

AddRouterTCP Adds a router to a configurations.

func AddService

func AddService(configuration *config.HTTPConfiguration, serviceName string, service *config.Service) bool

AddService Adds a service to a configurations.

func AddServiceTCP

func AddServiceTCP(configuration *config.TCPConfiguration, serviceName string, service *config.TCPService) bool

AddServiceTCP Adds a service to a configurations.

func BuildRouterConfiguration

func BuildRouterConfiguration(ctx context.Context, configuration *config.HTTPConfiguration, defaultRouterName string, defaultRuleTpl *template.Template, model interface{})

BuildRouterConfiguration Builds a router configuration.

func BuildTCPRouterConfiguration

func BuildTCPRouterConfiguration(ctx context.Context, configuration *config.TCPConfiguration)

BuildTCPRouterConfiguration Builds a router configuration.

func MakeDefaultRuleTemplate

func MakeDefaultRuleTemplate(defaultRule string, funcMap template.FuncMap) (*template.Template, error)

MakeDefaultRuleTemplate Creates the default rule template.

func Merge

func Merge(ctx context.Context, configurations map[string]*config.Configuration) *config.Configuration

Merge Merges multiple configurations.

func Normalize

func Normalize(name string) string

Normalize Replace all special chars with `-`.

Types

type Provider

type Provider interface {
	// Provide allows the provider to provide configurations to traefik
	// using the given configuration channel.
	Provide(configurationChan chan<- config.Message, pool *safe.Pool) error
	Init() error
}

Provider defines methods of a provider.

Directories

Path Synopsis
kubernetes
crd
crd/generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
crd/generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
crd/generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
crd/generated/clientset/versioned/typed/traefik/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
crd/generated/clientset/versioned/typed/traefik/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
crd/traefik/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
k8s
mocks
Package mocks Code generated by mockery v1.0.0.
Package mocks Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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