Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the jobs v1 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 v1 contains API Schema definitions for the jobs v1 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 ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "jobs.example.org", Version: "v1"} // 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) ConvertFrom ¶
func (ej *ExternalJob) ConvertFrom(src conversion.Hub) error
ConvertFrom implements conversion logic to convert from Hub type (v2.ExternalJob in this case)
func (*ExternalJob) ConvertTo ¶
func (ej *ExternalJob) ConvertTo(dst conversion.Hub) error
ConvertTo implements conversion logic to convert to Hub type (v2.ExternalJob in this case)
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.
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 RunAt string `json:"runAt"` }
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.