provider

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMiddleware

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

AddMiddleware adds a middleware to a configuration.

func AddMiddlewareTCP

func AddMiddlewareTCP(configuration *dynamic.TCPConfiguration, middlewareName string, middleware *dynamic.TCPMiddleware) bool

AddMiddlewareTCP adds a middleware to a configuration.

func AddRouter

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

AddRouter adds a router to a configuration.

func AddRouterTCP

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

AddRouterTCP adds a router to a configuration.

func AddRouterUDP

func AddRouterUDP(configuration *dynamic.UDPConfiguration, routerName string, router *dynamic.UDPRouter) bool

AddRouterUDP adds a router to a configuration.

func AddService

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

AddService adds a service to a configuration.

func AddServiceTCP

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

AddServiceTCP adds a service to a configuration.

func AddServiceUDP

func AddServiceUDP(configuration *dynamic.UDPConfiguration, serviceName string, service *dynamic.UDPService) bool

AddServiceUDP adds a service to a configuration.

func AddStore

func AddStore(configuration *dynamic.TLSConfiguration, storeName string, store tls.Store) bool

AddStore adds a middleware to a configurations.

func AddTransport

func AddTransport(configuration *dynamic.HTTPConfiguration, transportName string, transport *dynamic.ServersTransport) bool

AddTransport adds a servers transport to a configuration.

func AddTransportTCP

func AddTransportTCP(configuration *dynamic.TCPConfiguration, transportName string, transport *dynamic.TCPServersTransport) bool

AddTransportTCP adds a servers transport to a configuration.

func BuildRouterConfiguration

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

BuildRouterConfiguration builds a router configuration.

func BuildTCPRouterConfiguration

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

BuildTCPRouterConfiguration builds a router configuration.

func BuildUDPRouterConfiguration

func BuildUDPRouterConfiguration(ctx context.Context, configuration *dynamic.UDPConfiguration)

BuildUDPRouterConfiguration 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]*dynamic.Configuration) *dynamic.Configuration

Merge merges multiple configurations.

func Normalize

func Normalize(name string) string

Normalize replaces 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<- dynamic.Message, pool *safe.Pool) error
	Init() error
}

Provider defines methods of a provider.

Directories

Path Synopsis
kubernetes
crd
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/traefikio/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
crd/generated/clientset/versioned/typed/traefikio/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
crd/traefikio/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
k8s
kv
zk

Jump to

Keyboard shortcuts

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