v1alpha2

package
v0.0.0-...-9421b25 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 6 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 CronHPATrait

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

	Spec   CronHPATraitSpec   `json:"spec,omitempty"`
	Status CronHPATraitStatus `json:"status,omitempty"`
}

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

func (*CronHPATrait) DeepCopy

func (in *CronHPATrait) DeepCopy() *CronHPATrait

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

func (*CronHPATrait) DeepCopyInto

func (in *CronHPATrait) DeepCopyInto(out *CronHPATrait)

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

func (*CronHPATrait) DeepCopyObject

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

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

func (*CronHPATrait) GetCondition

GetCondition of this CronHPATrait.

func (*CronHPATrait) GetWorkloadReference

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

GetWorkloadReference of this CronHPATrait.

func (*CronHPATrait) SetConditions

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

SetConditions of this CronHPATrait.

func (*CronHPATrait) SetWorkloadReference

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

SetWorkloadReference of this CronHPATrait.

type CronHPATraitList

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

CronHPATraitList contains a list of CronHPATrait

func (*CronHPATraitList) DeepCopy

func (in *CronHPATraitList) DeepCopy() *CronHPATraitList

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

func (*CronHPATraitList) DeepCopyInto

func (in *CronHPATraitList) DeepCopyInto(out *CronHPATraitList)

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

func (*CronHPATraitList) DeepCopyObject

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

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

type CronHPATraitSpec

type CronHPATraitSpec struct {

	// Foo is an example field of CronHPATrait. Edit CronHPATrait_types.go to remove/update
	ExcludeDates []string `json:"excludeDates,omitempty"`
	Jobs         []Job    `json:"jobs"`

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

CronHPATraitSpec defines the desired state of CronHPATrait

func (*CronHPATraitSpec) DeepCopy

func (in *CronHPATraitSpec) DeepCopy() *CronHPATraitSpec

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

func (*CronHPATraitSpec) DeepCopyInto

func (in *CronHPATraitSpec) DeepCopyInto(out *CronHPATraitSpec)

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

type CronHPATraitStatus

type CronHPATraitStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	runtimev1alpha1.ConditionedStatus `json:",inline"`

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

CronHPATraitStatus defines the observed state of CronHPATrait

func (*CronHPATraitStatus) DeepCopy

func (in *CronHPATraitStatus) DeepCopy() *CronHPATraitStatus

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

func (*CronHPATraitStatus) DeepCopyInto

func (in *CronHPATraitStatus) DeepCopyInto(out *CronHPATraitStatus)

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

type Job

type Job struct {
	Name     string `json:"name"`
	Schedule string `json:"schedule"`
	// job will only run once if enabled.
	RunOnce    bool  `json:"runOnce,omitempty"`
	TargetSize int32 `json:"targetSize"`
}

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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