Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=traefik.containo.us
Index ¶
Constants ¶
const GroupName = "traefik.containo.us"
GroupName is the group name for Traefik.
Variables ¶
var ( // SchemeBuilder collects the scheme builder functions. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies the SchemeBuilder functions to a specified scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type HealthCheck ¶
type HealthCheck struct { Path string `json:"path"` Host string `json:"host,omitempty"` Scheme string `json:"scheme"` IntervalSeconds int64 `json:"intervalSeconds"` TimeoutSeconds int64 `json:"timeoutSeconds"` Headers map[string]string `json:"headers"` }
HealthCheck is the HealthCheck definition.
func (*HealthCheck) DeepCopy ¶
func (in *HealthCheck) DeepCopy() *HealthCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheck.
func (*HealthCheck) DeepCopyInto ¶
func (in *HealthCheck) DeepCopyInto(out *HealthCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressRoute ¶
type IngressRoute struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec IngressRouteSpec `json:"spec"` }
IngressRoute is an Ingress CRD specification.
func (*IngressRoute) DeepCopy ¶
func (in *IngressRoute) DeepCopy() *IngressRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRoute.
func (*IngressRoute) DeepCopyInto ¶
func (in *IngressRoute) DeepCopyInto(out *IngressRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressRoute) DeepCopyObject ¶
func (in *IngressRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressRouteList ¶
type IngressRouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IngressRoute `json:"items"` }
IngressRouteList is a list of IngressRoutes.
func (*IngressRouteList) DeepCopy ¶
func (in *IngressRouteList) DeepCopy() *IngressRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteList.
func (*IngressRouteList) DeepCopyInto ¶
func (in *IngressRouteList) DeepCopyInto(out *IngressRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IngressRouteList) DeepCopyObject ¶
func (in *IngressRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IngressRouteSpec ¶
type IngressRouteSpec struct { Routes []Route `json:"routes"` EntryPoints []string `json:"entryPoints"` TLS *TLS `json:"tls,omitempty"` }
IngressRouteSpec is a specification for a IngressRouteSpec resource.
func (*IngressRouteSpec) DeepCopy ¶
func (in *IngressRouteSpec) DeepCopy() *IngressRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressRouteSpec.
func (*IngressRouteSpec) DeepCopyInto ¶
func (in *IngressRouteSpec) DeepCopyInto(out *IngressRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Middleware ¶
type Middleware struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec config.Middleware `json:"spec"` }
Middleware is a specification for a Middleware resource.
func (*Middleware) DeepCopy ¶
func (in *Middleware) DeepCopy() *Middleware
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Middleware.
func (*Middleware) DeepCopyInto ¶
func (in *Middleware) DeepCopyInto(out *Middleware)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Middleware) DeepCopyObject ¶
func (in *Middleware) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MiddlewareList ¶
type MiddlewareList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Middleware `json:"items"` }
MiddlewareList is a list of Middleware resources.
func (*MiddlewareList) DeepCopy ¶
func (in *MiddlewareList) DeepCopy() *MiddlewareList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiddlewareList.
func (*MiddlewareList) DeepCopyInto ¶
func (in *MiddlewareList) DeepCopyInto(out *MiddlewareList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MiddlewareList) DeepCopyObject ¶
func (in *MiddlewareList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MiddlewareRef ¶
MiddlewareRef is a ref to the Middleware resources.
func (*MiddlewareRef) DeepCopy ¶
func (in *MiddlewareRef) DeepCopy() *MiddlewareRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MiddlewareRef.
func (*MiddlewareRef) DeepCopyInto ¶
func (in *MiddlewareRef) DeepCopyInto(out *MiddlewareRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct { Match string `json:"match"` Kind string `json:"kind"` Priority int `json:"priority"` Services []Service `json:"services,omitempty"` Middlewares []MiddlewareRef `json:"middlewares"` }
Route contains the set of routes.
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶
type Service struct { Name string `json:"name"` Port int32 `json:"port"` // TODO Weight int `json:"weight,omitempty"` HealthCheck *HealthCheck `json:"healthCheck,omitempty"` Strategy string `json:"strategy,omitempty"` }
Service defines an upstream to proxy traffic.
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLS ¶
type TLS struct { // SecretName is the name of the referenced Kubernetes Secret to specify the // certificate details. SecretName string `json:"secretName"` }
TLS contains the TLS certificates configuration of the routes. To enable Let's Encrypt, set a SecretName with an empty value.
func (*TLS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS.
func (*TLS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.