v1alpha2

package
v0.0.0-...-ea02baa Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=config.istio.io

Index

Constants

This section is empty.

Variables

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

SchemeGroupVersion is group version used to register these objects

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 DestinationWeight

type DestinationWeight struct {
	Destination IstioService `json:"destination"`
	Weight      int          `json:"weight"`
}

Istio route looks like so, but couldn't find a k8s/go definition for it so we'll just create one. This is terrible, but it just might work for now, but if things change on their end, this will most certainly break :(

spec:
  destination:
    # this matches what's in the ingress rule as a placeholder k8s service
    name: k8s-placeholder-service
  route:
  - destination:
      name: revision-service-1
    match:
      request:
        headers:
          authority:
            regex: foo.example.com
    weight: 90
  - destination:
      name: revision-service-2
      namespace: revision-2-namespace
    weight: 10
# https://github.com/istio/istio/blob/master/tests/helm/templates/rule-default-route-append-headers.yaml
  appendHeaders:
    istio-custom-header: user-defined-value

func (*DestinationWeight) DeepCopy

func (in *DestinationWeight) DeepCopy() *DestinationWeight

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

func (*DestinationWeight) DeepCopyInto

func (in *DestinationWeight) DeepCopyInto(out *DestinationWeight)

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

type Headers

type Headers struct {
	Authority MatchString `json:"authority"`
}

func (*Headers) DeepCopy

func (in *Headers) DeepCopy() *Headers

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

func (*Headers) DeepCopyInto

func (in *Headers) DeepCopyInto(out *Headers)

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

type IstioService

type IstioService struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Domain    string `json:"domain"`
}

func (*IstioService) DeepCopy

func (in *IstioService) DeepCopy() *IstioService

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

func (*IstioService) DeepCopyInto

func (in *IstioService) DeepCopyInto(out *IstioService)

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

type Match

type Match struct {
	Request MatchRequest `json:"request"`
}

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 MatchRequest

type MatchRequest struct {
	Headers Headers `json:"headers"`
}

func (*MatchRequest) DeepCopy

func (in *MatchRequest) DeepCopy() *MatchRequest

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

func (*MatchRequest) DeepCopyInto

func (in *MatchRequest) DeepCopyInto(out *MatchRequest)

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

type MatchString

type MatchString struct {
	Exact  string `json:"exact,omitempty"`
	Regex  string `json:"regex,omitempty"`
	Prefix string `json:"prefix,omitempty"`
}

func (*MatchString) DeepCopy

func (in *MatchString) DeepCopy() *MatchString

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

func (*MatchString) DeepCopyInto

func (in *MatchString) DeepCopyInto(out *MatchString)

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

type RouteRule

type RouteRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec RouteRuleSpec `json:"spec,omitempty"`
}

RouteRule

func (*RouteRule) DeepCopy

func (in *RouteRule) DeepCopy() *RouteRule

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

func (*RouteRule) DeepCopyInto

func (in *RouteRule) DeepCopyInto(out *RouteRule)

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

func (*RouteRule) DeepCopyObject

func (in *RouteRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RouteRuleList

type RouteRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RouteRule `json:"items"`
}

RouteRuleList is a list of RouteRule resources

func (*RouteRuleList) DeepCopy

func (in *RouteRuleList) DeepCopy() *RouteRuleList

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

func (*RouteRuleList) DeepCopyInto

func (in *RouteRuleList) DeepCopyInto(out *RouteRuleList)

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

func (*RouteRuleList) DeepCopyObject

func (in *RouteRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RouteRuleSpec

type RouteRuleSpec struct {
	Destination   IstioService        `json:"destination"`
	Match         Match               `json:"match,omitempty"`
	Route         []DestinationWeight `json:"route"`
	AppendHeaders map[string]string   `json:"appendHeaders"`
}

func (*RouteRuleSpec) DeepCopy

func (in *RouteRuleSpec) DeepCopy() *RouteRuleSpec

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

func (*RouteRuleSpec) DeepCopyInto

func (in *RouteRuleSpec) DeepCopyInto(out *RouteRuleSpec)

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