v1alpha1

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 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: "v1alpha1"}

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 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

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 Match

type Match struct {
	Values   []string `json:"values"`
	Upstream string   `json:"upstream"`
}

Match defines a match in a MatchRule.

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"`
	Upstream string  `json:"upstream"`
	Splits   []Split `json:"splits"`
	Rules    *Rules  `json:"rules"`
	Route    string  `json:"route"`
}

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 Rules

type Rules struct {
	Conditions      []Condition `json:"conditions"`
	Matches         []Match     `json:"matches"`
	DefaultUpstream string      `json:"defaultUpstream"`
}

Rules defines rules.

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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"`
	Upstream string `json:"upstream"`
}

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"`
}

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 Upstream

type Upstream struct {
	Name    string `json:"name"`
	Service string `json:"service"`
	Port    uint16 `json:"port"`
}

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 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