crd

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 49 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client

type Client interface {
	WatchAll(namespaces []string, stopCh <-chan struct{}) (<-chan interface{}, error)
	GetIngressRoutes() []*traefikv1alpha1.IngressRoute
	GetIngressRouteTCPs() []*traefikv1alpha1.IngressRouteTCP
	GetIngressRouteUDPs() []*traefikv1alpha1.IngressRouteUDP
	GetMiddlewares() []*traefikv1alpha1.Middleware
	GetMiddlewareTCPs() []*traefikv1alpha1.MiddlewareTCP
	GetTraefikService(namespace, name string) (*traefikv1alpha1.TraefikService, bool, error)
	GetTraefikServices() []*traefikv1alpha1.TraefikService
	GetTLSOptions() []*traefikv1alpha1.TLSOption
	GetServersTransports() []*traefikv1alpha1.ServersTransport
	GetTLSStores() []*traefikv1alpha1.TLSStore
	GetService(namespace, name string) (*corev1.Service, bool, error)
	GetSecret(namespace, name string) (*corev1.Secret, bool, error)
	GetEndpoints(namespace, name string) (*corev1.Endpoints, bool, error)
}

Client is a client for the Provider master. WatchAll starts the watch of the Provider resources and updates the stores. The stores can then be accessed via the Get* functions.

type Provider

type Provider struct {
	Endpoint                  string          `` /* 158-byte string literal not displayed */
	Token                     string          `` /* 159-byte string literal not displayed */
	CertAuthFilePath          string          `` /* 194-byte string literal not displayed */
	Namespaces                []string        `` /* 134-byte string literal not displayed */
	AllowCrossNamespace       bool            `` /* 180-byte string literal not displayed */
	AllowExternalNameServices bool            `` /* 185-byte string literal not displayed */
	LabelSelector             string          `` /* 154-byte string literal not displayed */
	IngressClass              string          `` /* 179-byte string literal not displayed */
	ThrottleDuration          ptypes.Duration `` /* 163-byte string literal not displayed */
	AllowEmptyServices        bool            `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

Provider holds configurations of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error

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

func (*Provider) SetRouterTransform added in v2.10.2

func (p *Provider) SetRouterTransform(routerTransform k8s.RouterTransform)

Directories

Path Synopsis
generated
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/traefikcontainous/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/traefikcontainous/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
clientset/versioned/typed/traefikio/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/traefikio/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
traefikcontainous
v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
traefikio
v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

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