v1alpha1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the istio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=maistra.io

Package v1alpha1 contains API Schema definitions for the istio v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=maistra.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "maistra.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme ise used to add go types to the scheme
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type LabeledRefResource added in v0.0.2

type LabeledRefResource struct {
	RefResource `json:",inline"`
	Labels      map[string]string `json:"labels"`
}

LabeledRefResource is a RefResource with Labels

func (*LabeledRefResource) DeepCopy added in v0.0.2

func (in *LabeledRefResource) DeepCopy() *LabeledRefResource

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

func (*LabeledRefResource) DeepCopyInto added in v0.0.2

func (in *LabeledRefResource) DeepCopyInto(out *LabeledRefResource)

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

type Ref added in v0.0.2

type Ref struct {
	Name     string            `json:"name,omitempty"`
	Strategy string            `json:"strategy,omitempty"`
	Args     map[string]string `json:"args,omitempty"`
}

Ref defines the desired state for a single reference within the Session

func (*Ref) DeepCopy added in v0.0.2

func (in *Ref) DeepCopy() *Ref

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

func (*Ref) DeepCopyInto added in v0.0.2

func (in *Ref) DeepCopyInto(out *Ref)

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

type RefResource

type RefResource struct {
	Kind   *string `json:"kind,omitempty"`
	Name   *string `json:"name,omitempty"`
	Action *string `json:"action,omitempty"`
}

RefResource defines the observed resources mutated/created as part of the Ref

func (*RefResource) DeepCopy

func (in *RefResource) DeepCopy() *RefResource

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

func (*RefResource) DeepCopyInto

func (in *RefResource) DeepCopyInto(out *RefResource)

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

type RefStatus

type RefStatus struct {
	Ref       `json:",inline"`
	Targets   []*LabeledRefResource `json:"targets,omitempty"`
	Resources []*RefResource        `json:"resources,omitempty"`
}

RefStatus defines the observed state of the individual Ref

func (*RefStatus) DeepCopy

func (in *RefStatus) DeepCopy() *RefStatus

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

func (*RefStatus) DeepCopyInto

func (in *RefStatus) DeepCopyInto(out *RefStatus)

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

type Route

type Route struct {
	Type  string `json:"type,omitempty"`
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

Route defines the strategy for how the traffic is routed to the Ref

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 Session

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

	Spec   SessionSpec   `json:"spec,omitempty"`
	Status SessionStatus `json:"status,omitempty"`
}

Session is the Schema for the sessions API

func (*Session) AddFinalizer

func (s *Session) AddFinalizer(finalizer string)

AddFinalizer adds a finalizer to the session

func (*Session) DeepCopy

func (in *Session) DeepCopy() *Session

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

func (*Session) DeepCopyInto

func (in *Session) DeepCopyInto(out *Session)

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

func (*Session) DeepCopyObject

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

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

func (*Session) HasFinalizer

func (s *Session) HasFinalizer(finalizer string) bool

HasFinalizer checks if session has a finalizer attached to it

func (*Session) RemoveFinalizer

func (s *Session) RemoveFinalizer(finalizer string)

RemoveFinalizer removes given finalizer

type SessionList

type SessionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Session `json:"items"`
}

SessionList contains a list of Session

func (*SessionList) DeepCopy

func (in *SessionList) DeepCopy() *SessionList

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

func (*SessionList) DeepCopyInto

func (in *SessionList) DeepCopyInto(out *SessionList)

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

func (*SessionList) DeepCopyObject

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

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

type SessionSpec

type SessionSpec struct {
	Route Route `json:"route,omitempty"`
	Refs  []Ref `json:"ref,omitempty"`
}

SessionSpec defines the desired state of Session

func (*SessionSpec) DeepCopy

func (in *SessionSpec) DeepCopy() *SessionSpec

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

func (*SessionSpec) DeepCopyInto

func (in *SessionSpec) DeepCopyInto(out *SessionSpec)

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

type SessionStatus

type SessionStatus struct {
	State *string      `json:"state,omitempty"`
	Refs  []*RefStatus `json:"refs,omitempty"`
}

SessionStatus defines the observed state of Session

func (*SessionStatus) DeepCopy

func (in *SessionStatus) DeepCopy() *SessionStatus

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

func (*SessionStatus) DeepCopyInto

func (in *SessionStatus) DeepCopyInto(out *SessionStatus)

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