Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the jobico v1 API group +kubebuilder:object:generate=true +groupName=jobico.coeux.dev
Index ¶
- Variables
- type ClientWrapper
- type Event
- type Job
- func (in *Job) DeepCopy() *Job
- func (in *Job) DeepCopyInto(out *Job)
- func (in *Job) DeepCopyObject() runtime.Object
- func (r *Job) Default()
- func (r *Job) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Job) ValidateCreate() (admission.Warnings, error)
- func (r *Job) ValidateDelete() (admission.Warnings, error)
- func (r *Job) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type JobList
- type JobSpec
- type JobStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "jobico.coeux.dev", Version: "v1"} // 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 ClientWrapper ¶
+k8s:deepcopy-gen=false
func (*ClientWrapper) DeepCopy ¶
func (c *ClientWrapper) DeepCopy() *ClientWrapper
func (*ClientWrapper) DeepCopyInto ¶
func (c *ClientWrapper) DeepCopyInto(cc *ClientWrapper)
type Event ¶
type Event struct { // +kubebuilder:validation:MinLength:=1 Name string `json:"name"` Wasm string `json:"wasm"` Script string `json:"script"` // +kubebuilder:validation:XValidation:message="schema.key or schema.name must be specified", rule=(self.key!="" || self.name!="") Schema corev1.ConfigMapKeySelector `json:"schema"` }
+kubebuilder:validation:XValidation:message="script or wasm must be specified", rule=((self.script!="" && self.wasm=="") || (self.script=="" && self.wasm!=""))
func (*Event) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event.
func (*Event) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Job ¶
type Job struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobSpec `json:"spec"` Status JobStatus `json:"status,omitempty"` // contains filtered or unexported fields }
Job is the Schema for the jobs API
func (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Job) Default ¶
func (r *Job) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Job) SetupWebhookWithManager ¶
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*Job) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Job) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type JobList ¶
type JobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Job `json:"items"` }
JobList contains a list of Job
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobSpec ¶
type JobSpec struct { // +kubebuilder:validation:MinItems:=1 Events []Event `json:"events"` }
JobSpec defines the desired state of Job
func (*JobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobStatus ¶
type JobStatus struct {
Active []corev1.ObjectReference `json:"active,omitempty"`
}
JobStatus defines the observed state of Job
func (*JobStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.