v1alpha2

package
v0.0.0-...-e66274b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.oam.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.oam.dev", Version: "v1alpha2"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type IngressPath

type IngressPath struct {
	Path string `json:"path,omitempty"`

	PathType *v1beta1.PathType `json:"pathType,omitempty"`

	Backend OptionalBackend `json:"backend,omitempty"`
}

func (*IngressPath) DeepCopy

func (in *IngressPath) DeepCopy() *IngressPath

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

func (*IngressPath) DeepCopyInto

func (in *IngressPath) DeepCopyInto(out *IngressPath)

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

type IngressTrait

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

	Spec   IngressTraitSpec   `json:"spec,omitempty"`
	Status IngressTraitStatus `json:"status,omitempty"`
}

IngressTrait is the Schema for the ingresstraits API +kubebuilder:resource:categories={crossplane,oam} +kubebuilder:subresource:status

func (*IngressTrait) DeepCopy

func (in *IngressTrait) DeepCopy() *IngressTrait

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

func (*IngressTrait) DeepCopyInto

func (in *IngressTrait) DeepCopyInto(out *IngressTrait)

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

func (*IngressTrait) DeepCopyObject

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

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

func (*IngressTrait) GetCondition

GetCondition of this IngressTrait.

func (*IngressTrait) GetWorkloadReference

func (tr *IngressTrait) GetWorkloadReference() runtimev1alpha1.TypedReference

GetWorkloadReference of this IngressTrait.

func (*IngressTrait) SetConditions

func (tr *IngressTrait) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this IngressTrait.

func (*IngressTrait) SetWorkloadReference

func (tr *IngressTrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)

SetWorkloadReference of this IngressTrait.

type IngressTraitList

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

IngressTraitList contains a list of IngressTrait

func (*IngressTraitList) DeepCopy

func (in *IngressTraitList) DeepCopy() *IngressTraitList

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

func (*IngressTraitList) DeepCopyInto

func (in *IngressTraitList) DeepCopyInto(out *IngressTraitList)

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

func (*IngressTraitList) DeepCopyObject

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

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

type IngressTraitSpec

type IngressTraitSpec struct {
	// K8S native IngressClassName: defines which controller will implement the resource
	IngressClassName *string `json:"ingressClassName,omitempty"`

	// A default backend capable of servicing requests that don't match any rule
	DefaultBackend *v1beta1.IngressBackend `json:"defaultBackend,omitempty"`

	// K8S native TLS
	TLS []v1beta1.IngressTLS `json:"tls,omitempty"`

	// A list of host rules used to configure the Ingress
	Rules []Rule `json:"rules,omitempty"`

	// WorkloadReference to the workload this trait applies to.
	WorkloadReference runtimev1alpha1.TypedReference `json:"workloadRef"`
}

IngressTraitSpec defines the desired state of IngressTrait

func (*IngressTraitSpec) DeepCopy

func (in *IngressTraitSpec) DeepCopy() *IngressTraitSpec

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

func (*IngressTraitSpec) DeepCopyInto

func (in *IngressTraitSpec) DeepCopyInto(out *IngressTraitSpec)

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

type IngressTraitStatus

type IngressTraitStatus struct {
	runtimev1alpha1.ConditionedStatus `json:",inline"`

	// Resources managed by this service trait
	Resources []runtimev1alpha1.TypedReference `json:"resources,omitempty"`
}

IngressTraitStatus defines the observed state of IngressTrait

func (*IngressTraitStatus) DeepCopy

func (in *IngressTraitStatus) DeepCopy() *IngressTraitStatus

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

func (*IngressTraitStatus) DeepCopyInto

func (in *IngressTraitStatus) DeepCopyInto(out *IngressTraitStatus)

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

type InternalBackend

type InternalBackend struct {
	ServiceName string
	ServicePort []intstr.IntOrString
}

Used to store service information internally

type OptionalBackend

type OptionalBackend struct {
	ServiceName string `json:"serviceName,omitempty"`

	ServicePort intstr.IntOrString `json:"servicePort,omitempty"`

	Resource *v1.TypedLocalObjectReference `json:"resource,omitempty"`
}

You can choose not to define it, because IngressTrait will create a service automatically

func (*OptionalBackend) DeepCopy

func (in *OptionalBackend) DeepCopy() *OptionalBackend

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

func (*OptionalBackend) DeepCopyInto

func (in *OptionalBackend) DeepCopyInto(out *OptionalBackend)

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

type Rule

type Rule struct {
	Host string `json:"host,omitempty"`

	Paths []IngressPath `json:"paths,omitempty"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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