v2

package
v0.2.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v2 contains API Schema definitions for the jobs v2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/droot/crd-conversion-example/pkg/apis/jobs +k8s:defaulter-gen=TypeMeta +groupName=jobs.example.org

Package v2 contains API Schema definitions for the jobs v2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/droot/crd-conversion-example/pkg/apis/jobs +k8s:defaulter-gen=TypeMeta +groupName=jobs.example.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "jobs.example.org", Version: "v2"}

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

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type ExternalJob

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

	Spec   ExternalJobSpec   `json:"spec,omitempty"`
	Status ExternalJobStatus `json:"status,omitempty"`
}

ExternalJob is the Schema for the externaljobs API +k8s:openapi-gen=true

func (*ExternalJob) DeepCopy

func (in *ExternalJob) DeepCopy() *ExternalJob

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

func (*ExternalJob) DeepCopyInto

func (in *ExternalJob) DeepCopyInto(out *ExternalJob)

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

func (*ExternalJob) DeepCopyObject

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

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

func (*ExternalJob) Hub

func (ej *ExternalJob) Hub()

Hub is just a marker method to indicate that v2.ExternalJob is the Hub type in this case. v2.ExternalJob is the storage version so mark this as Hub. Storage version doesn't need to implement any conversion methods because default conversionHandler implements conversion logic for storage version. TODO(droot): Add comment annotation here to mark it as storage version

type ExternalJobList

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

ExternalJobList contains a list of ExternalJob

func (*ExternalJobList) DeepCopy

func (in *ExternalJobList) DeepCopy() *ExternalJobList

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

func (*ExternalJobList) DeepCopyInto

func (in *ExternalJobList) DeepCopyInto(out *ExternalJobList)

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

func (*ExternalJobList) DeepCopyObject

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

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

type ExternalJobSpec

type ExternalJobSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ScheduleAt string `json:"scheduleAt"`
}

ExternalJobSpec defines the desired state of ExternalJob

func (*ExternalJobSpec) DeepCopy

func (in *ExternalJobSpec) DeepCopy() *ExternalJobSpec

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

func (*ExternalJobSpec) DeepCopyInto

func (in *ExternalJobSpec) DeepCopyInto(out *ExternalJobSpec)

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

type ExternalJobStatus

type ExternalJobStatus struct {
}

ExternalJobStatus defines the observed state of ExternalJob

func (*ExternalJobStatus) DeepCopy

func (in *ExternalJobStatus) DeepCopy() *ExternalJobStatus

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

func (*ExternalJobStatus) DeepCopyInto

func (in *ExternalJobStatus) DeepCopyInto(out *ExternalJobStatus)

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