traefik

package
v0.0.0-...-7f7f88d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Middlewares []MiddlewareRef `yaml:"middlewares" json:"middlewares,omitempty"`
}

type MetaData

type MetaData struct {
	Name      string `yaml:"name,omitempty"`
	Label     string `yaml:"label,omitempty"`
	Namespace string `yaml:"namespace,omitempty"`
}

type Middleware

type Middleware struct {
	ObjectMeta `yaml:",inline"`
	TypeMeta   `yaml:",inline"`

	Spec MiddlewareSpec `yaml:"spec"`
}

func NewChain

func NewChain(name, namespace string, middlewares []Middleware) (*Middleware, error)

func NewRegexRedirect

func NewRegexRedirect(name, namespace, regex, replacement string, permanent bool) (Middleware, error)

func (Middleware) Dump

func (m Middleware) Dump()

func (Middleware) String

func (m Middleware) String() string

type MiddlewareRef

type MiddlewareRef struct {
	Name      string `yaml:"name,omitempty"`
	Namespace string `yaml:"namespace,omitempty"`
}

type MiddlewareSpec

type MiddlewareSpec struct {
	RedirectRegex RedirectRegex `yaml:"redirectRegex,omitempty" json:"redirectRegex"`
	Chain         `yaml:"chain,omitempty" json:"chain,omitempty"`
}

type ObjectMeta

type ObjectMeta struct {
	ApiVersion string `yaml:"apiVersion,omitempty"`
	Kind       string `yaml:"kind,omitempty"`
}

func (*ObjectMeta) SetGroupVersion

func (o *ObjectMeta) SetGroupVersion()

type RedirectRegex

type RedirectRegex struct {
	Regex       string `yaml:"regex,omitempty" json:"regex,omitempty"`
	Replacement string `yaml:"replacement,omitempty" json:"replacement,omitempty"`
	Permanent   bool   `yaml:"permanent,omitempty" json:"permanent,omitempty"`
}

type TypeMeta

type TypeMeta struct {
	Meta MetaData `yaml:"metadata,omitempty"`
}

type Middleware v1alpha1.Middleware

Jump to

Keyboard shortcuts

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