v1alpha2

package
v0.0.0-...-2bd7b86 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 7 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 ServiceTrait

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

	Spec   ServiceTraitSpec   `json:"spec,omitempty"`
	Status ServiceTraitStatus `json:"status,omitempty"`
}

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

func (*ServiceTrait) DeepCopy

func (in *ServiceTrait) DeepCopy() *ServiceTrait

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

func (*ServiceTrait) DeepCopyInto

func (in *ServiceTrait) DeepCopyInto(out *ServiceTrait)

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

func (*ServiceTrait) DeepCopyObject

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

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

func (*ServiceTrait) GetCondition

GetCondition of this ServiceTrait.

func (*ServiceTrait) GetWorkloadReference

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

GetWorkloadReference of this ServiceTrait.

func (*ServiceTrait) SetConditions

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

SetConditions of this ServiceTrait.

func (*ServiceTrait) SetWorkloadReference

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

SetWorkloadReference of this ServiceTrait.

type ServiceTraitList

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

ServiceTraitList contains a list of ServiceTrait

func (*ServiceTraitList) DeepCopy

func (in *ServiceTraitList) DeepCopy() *ServiceTraitList

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

func (*ServiceTraitList) DeepCopyInto

func (in *ServiceTraitList) DeepCopyInto(out *ServiceTraitList)

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

func (*ServiceTraitList) DeepCopyObject

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

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

type ServiceTraitSpec

type ServiceTraitSpec struct {
	// NOTE: You can add extension of ServiceTraitSpec in the future
	// K8S native ServiceSpec
	Template corev1.ServiceSpec `json:"template,omitempty"`

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

ServiceTraitSpec defines the desired state of ServiceTrait

func (*ServiceTraitSpec) DeepCopy

func (in *ServiceTraitSpec) DeepCopy() *ServiceTraitSpec

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

func (*ServiceTraitSpec) DeepCopyInto

func (in *ServiceTraitSpec) DeepCopyInto(out *ServiceTraitSpec)

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

type ServiceTraitStatus

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

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

ServiceTraitStatus defines the observed state of ServiceTrait

func (*ServiceTraitStatus) DeepCopy

func (in *ServiceTraitStatus) DeepCopy() *ServiceTraitStatus

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

func (*ServiceTraitStatus) DeepCopyInto

func (in *ServiceTraitStatus) DeepCopyInto(out *ServiceTraitStatus)

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