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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.