Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Action
- type ActionRedirect
- type ActionReturn
- type Condition
- type ErrorPage
- type ErrorPageRedirect
- type ErrorPageReturn
- type Header
- type HealthCheck
- type Match
- type Route
- type SessionCookie
- type Split
- type TLS
- type TLSRedirect
- type Upstream
- type UpstreamBuffers
- type UpstreamQueue
- type UpstreamTLS
- 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: "v1"}
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 Action ¶
type Action struct { Pass string `json:"pass"` Redirect *ActionRedirect `json:"redirect"` Return *ActionReturn `json:"return"` }
Action defines an action.
func (*Action) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Action.
func (*Action) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActionRedirect ¶
ActionRedirect defines a redirect in an Action.
func (*ActionRedirect) DeepCopy ¶
func (in *ActionRedirect) DeepCopy() *ActionRedirect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionRedirect.
func (*ActionRedirect) DeepCopyInto ¶
func (in *ActionRedirect) DeepCopyInto(out *ActionRedirect)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActionReturn ¶
type ActionReturn struct { Code int `json:"code"` Type string `json:"type"` Body string `json:"body"` }
ActionReturn defines a return in an Action.
func (*ActionReturn) DeepCopy ¶
func (in *ActionReturn) DeepCopy() *ActionReturn
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionReturn.
func (*ActionReturn) DeepCopyInto ¶
func (in *ActionReturn) DeepCopyInto(out *ActionReturn)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { Header string `json:"header"` Cookie string `json:"cookie"` Argument string `json:"argument"` Variable string `json:"variable"` Value string `json:"value"` }
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 ErrorPage ¶ added in v1.7.0
type ErrorPage struct { Codes []int `json:"codes"` Return *ErrorPageReturn `json:"return"` Redirect *ErrorPageRedirect `json:"redirect"` }
ErrorPage defines an ErrorPage in a Route.
func (*ErrorPage) DeepCopy ¶ added in v1.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrorPage.
func (*ErrorPage) DeepCopyInto ¶ added in v1.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ErrorPageRedirect ¶ added in v1.7.0
type ErrorPageRedirect struct {
ActionRedirect `json:",inline"`
}
ErrorPageRedirect defines a redirect for an ErrorPage.
func (*ErrorPageRedirect) DeepCopy ¶ added in v1.7.0
func (in *ErrorPageRedirect) DeepCopy() *ErrorPageRedirect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrorPageRedirect.
func (*ErrorPageRedirect) DeepCopyInto ¶ added in v1.7.0
func (in *ErrorPageRedirect) DeepCopyInto(out *ErrorPageRedirect)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ErrorPageReturn ¶ added in v1.7.0
type ErrorPageReturn struct { ActionReturn `json:",inline"` Headers []Header `json:"headers"` }
ErrorPageReturn defines a return for an ErrorPage.
func (*ErrorPageReturn) DeepCopy ¶ added in v1.7.0
func (in *ErrorPageReturn) DeepCopy() *ErrorPageReturn
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrorPageReturn.
func (*ErrorPageReturn) DeepCopyInto ¶ added in v1.7.0
func (in *ErrorPageReturn) DeepCopyInto(out *ErrorPageReturn)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Header ¶
Header defines an HTTP Header.
func (*Header) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Header.
func (*Header) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealthCheck ¶
type HealthCheck struct { Enable bool `json:"enable"` Path string `json:"path"` Interval string `json:"interval"` Jitter string `json:"jitter"` Fails int `json:"fails"` Passes int `json:"passes"` Port int `json:"port"` TLS *UpstreamTLS `json:"tls"` ConnectTimeout string `json:"connect-timeout"` ReadTimeout string `json:"read-timeout"` SendTimeout string `json:"send-timeout"` Headers []Header `json:"headers"` StatusMatch string `json:"statusMatch"` }
HealthCheck defines the parameters for active Upstream HealthChecks.
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 Match ¶
type Match struct { Conditions []Condition `json:"conditions"` Action *Action `json:"action"` Splits []Split `json:"splits"` }
Match defines a match.
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"` Route string `json:"route"` Action *Action `json:"action"` Splits []Split `json:"splits"` Matches []Match `json:"matches"` ErrorPages []ErrorPage `json:"errorPages"` }
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 SessionCookie ¶
type SessionCookie struct { Enable bool `json:"enable"` Name string `json:"name"` Path string `json:"path"` Expires string `json:"expires"` Domain string `json:"domain"` HTTPOnly bool `json:"httpOnly"` Secure bool `json:"secure"` }
SessionCookie defines the parameters for session persistence.
func (*SessionCookie) DeepCopy ¶
func (in *SessionCookie) DeepCopy() *SessionCookie
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionCookie.
func (*SessionCookie) DeepCopyInto ¶
func (in *SessionCookie) DeepCopyInto(out *SessionCookie)
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"` Redirect *TLSRedirect `json:"redirect"` }
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 TLSRedirect ¶
type TLSRedirect struct { Enable bool `json:"enable"` Code *int `json:"code"` BasedOn string `json:"basedOn"` }
TLSRedirect defines a redirect for a TLS.
func (*TLSRedirect) DeepCopy ¶
func (in *TLSRedirect) DeepCopy() *TLSRedirect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSRedirect.
func (*TLSRedirect) DeepCopyInto ¶
func (in *TLSRedirect) DeepCopyInto(out *TLSRedirect)
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"` Subselector map[string]string `json:"subselector"` Port uint16 `json:"port"` LBMethod string `json:"lb-method"` FailTimeout string `json:"fail-timeout"` MaxFails *int `json:"max-fails"` MaxConns *int `json:"max-conns"` Keepalive *int `json:"keepalive"` ProxyConnectTimeout string `json:"connect-timeout"` ProxyReadTimeout string `json:"read-timeout"` ProxySendTimeout string `json:"send-timeout"` ProxyNextUpstream string `json:"next-upstream"` ProxyNextUpstreamTimeout string `json:"next-upstream-timeout"` ProxyNextUpstreamTries int `json:"next-upstream-tries"` ProxyBuffering *bool `json:"buffering"` ProxyBuffers *UpstreamBuffers `json:"buffers"` ProxyBufferSize string `json:"buffer-size"` ClientMaxBodySize string `json:"client-max-body-size"` TLS UpstreamTLS `json:"tls"` HealthCheck *HealthCheck `json:"healthCheck"` SlowStart string `json:"slow-start"` Queue *UpstreamQueue `json:"queue"` SessionCookie *SessionCookie `json:"sessionCookie"` }
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 UpstreamBuffers ¶
UpstreamBuffers defines Buffer Configuration for an Upstream.
func (*UpstreamBuffers) DeepCopy ¶
func (in *UpstreamBuffers) DeepCopy() *UpstreamBuffers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamBuffers.
func (*UpstreamBuffers) DeepCopyInto ¶
func (in *UpstreamBuffers) DeepCopyInto(out *UpstreamBuffers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpstreamQueue ¶
UpstreamQueue defines Queue Configuration for an Upstream.
func (*UpstreamQueue) DeepCopy ¶
func (in *UpstreamQueue) DeepCopy() *UpstreamQueue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamQueue.
func (*UpstreamQueue) DeepCopyInto ¶
func (in *UpstreamQueue) DeepCopyInto(out *UpstreamQueue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpstreamTLS ¶
type UpstreamTLS struct {
Enable bool `json:"enable"`
}
UpstreamTLS defines a TLS configuration for an Upstream.
func (*UpstreamTLS) DeepCopy ¶
func (in *UpstreamTLS) DeepCopy() *UpstreamTLS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpstreamTLS.
func (*UpstreamTLS) DeepCopyInto ¶
func (in *UpstreamTLS) DeepCopyInto(out *UpstreamTLS)
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.