v1

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: configuration.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these object.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

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

func (in *Action) DeepCopy() *Action

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Action.

func (*Action) DeepCopyInto

func (in *Action) DeepCopyInto(out *Action)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ActionRedirect

type ActionRedirect struct {
	URL  string `json:"url"`
	Code int    `json:"code"`
}

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

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

func (in *ErrorPage) DeepCopy() *ErrorPage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ErrorPage.

func (*ErrorPage) DeepCopyInto added in v1.7.0

func (in *ErrorPage) DeepCopyInto(out *ErrorPage)

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 struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Header defines an HTTP Header.

func (*Header) DeepCopy

func (in *Header) DeepCopy() *Header

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Header.

func (*Header) DeepCopyInto

func (in *Header) DeepCopyInto(out *Header)

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

func (in *Match) DeepCopy() *Match

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Match.

func (*Match) DeepCopyInto

func (in *Match) DeepCopyInto(out *Match)

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

func (in *Route) DeepCopy() *Route

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

type Split struct {
	Weight int     `json:"weight"`
	Action *Action `json:"action"`
}

Split defines a split.

func (*Split) DeepCopy

func (in *Split) DeepCopy() *Split

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Split.

func (*Split) DeepCopyInto

func (in *Split) DeepCopyInto(out *Split)

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

func (in *TLS) DeepCopy() *TLS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS.

func (*TLS) DeepCopyInto

func (in *TLS) DeepCopyInto(out *TLS)

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

func (in *Upstream) DeepCopy() *Upstream

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Upstream.

func (*Upstream) DeepCopyInto

func (in *Upstream) DeepCopyInto(out *Upstream)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UpstreamBuffers

type UpstreamBuffers struct {
	Number int    `json:"number"`
	Size   string `json:"size"`
}

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

type UpstreamQueue struct {
	Size    int    `json:"size"`
	Timeout string `json:"timeout"`
}

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

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

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.

Jump to

Keyboard shortcuts

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