Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Condition
- type Match
- type Route
- type Rules
- type Split
- type TLS
- type Upstream
- type VirtualServer
- type VirtualServerList
- type VirtualServerRoute
- type VirtualServerRouteList
- type VirtualServerRouteSpec
- type VirtualServerSpec
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: configuration.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these object.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Condition ¶
type Condition struct {
Header string `json:"header"`
Cookie string `json:"cookie"`
Argument string `json:"argument"`
Variable string `json:"variable"`
}
Condition defines a condition in a MatchRule.
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Match ¶
Match defines a match in a MatchRule.
func (*Match) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Match.
func (*Match) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct {
Path string `json:"path"`
Upstream string `json:"upstream"`
Splits []Split `json:"splits"`
Rules *Rules `json:"rules"`
Route string `json:"route"`
}
Route defines a route.
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 Rules ¶
type Rules struct {
Conditions []Condition `json:"conditions"`
Matches []Match `json:"matches"`
DefaultUpstream string `json:"defaultUpstream"`
}
Rules defines rules.
func (*Rules) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
func (*Rules) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Split ¶
Split defines a split.
func (*Split) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Split.
func (*Split) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLS ¶
type TLS struct {
Secret string `json:"secret"`
}
TLS defines TLS configuration for a VirtualServer.
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.
type Upstream ¶
type Upstream struct {
Name string `json:"name"`
Service string `json:"service"`
Port uint16 `json:"port"`
}
Upstream defines an upstream.
func (*Upstream) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upstream.
func (*Upstream) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualServer ¶
type VirtualServer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VirtualServerSpec `json:"spec"`
}
VirtualServer defines the VirtualServer resource.
func (*VirtualServer) DeepCopy ¶
func (in *VirtualServer) DeepCopy() *VirtualServer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServer.
func (*VirtualServer) DeepCopyInto ¶
func (in *VirtualServer) DeepCopyInto(out *VirtualServer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualServer) DeepCopyObject ¶
func (in *VirtualServer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualServerList ¶
type VirtualServerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []VirtualServer `json:"items"`
}
VirtualServerList is a list of the VirtualServer resources.
func (*VirtualServerList) DeepCopy ¶
func (in *VirtualServerList) DeepCopy() *VirtualServerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServerList.
func (*VirtualServerList) DeepCopyInto ¶
func (in *VirtualServerList) DeepCopyInto(out *VirtualServerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualServerList) DeepCopyObject ¶
func (in *VirtualServerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualServerRoute ¶
type VirtualServerRoute struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VirtualServerRouteSpec `json:"spec"`
}
func (*VirtualServerRoute) DeepCopy ¶
func (in *VirtualServerRoute) DeepCopy() *VirtualServerRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServerRoute.
func (*VirtualServerRoute) DeepCopyInto ¶
func (in *VirtualServerRoute) DeepCopyInto(out *VirtualServerRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualServerRoute) DeepCopyObject ¶
func (in *VirtualServerRoute) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualServerRouteList ¶
type VirtualServerRouteList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []VirtualServerRoute `json:"items"`
}
func (*VirtualServerRouteList) DeepCopy ¶
func (in *VirtualServerRouteList) DeepCopy() *VirtualServerRouteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServerRouteList.
func (*VirtualServerRouteList) DeepCopyInto ¶
func (in *VirtualServerRouteList) DeepCopyInto(out *VirtualServerRouteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualServerRouteList) DeepCopyObject ¶
func (in *VirtualServerRouteList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualServerRouteSpec ¶
type VirtualServerRouteSpec struct {
Host string `json:"host"`
Upstreams []Upstream `json:"upstreams"`
Subroutes []Route `json:"subroutes"`
}
func (*VirtualServerRouteSpec) DeepCopy ¶
func (in *VirtualServerRouteSpec) DeepCopy() *VirtualServerRouteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServerRouteSpec.
func (*VirtualServerRouteSpec) DeepCopyInto ¶
func (in *VirtualServerRouteSpec) DeepCopyInto(out *VirtualServerRouteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualServerSpec ¶
type VirtualServerSpec struct {
Host string `json:"host"`
TLS *TLS `json:"tls"`
Upstreams []Upstream `json:"upstreams"`
Routes []Route `json:"routes"`
}
VirtualServerSpec is the spec of the VirtualServer resource.
func (*VirtualServerSpec) DeepCopy ¶
func (in *VirtualServerSpec) DeepCopy() *VirtualServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServerSpec.
func (*VirtualServerSpec) DeepCopyInto ¶
func (in *VirtualServerSpec) DeepCopyInto(out *VirtualServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.