v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cnat v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cnat.programming-kubernetes.info

Package v1alpha1 contains API Schema definitions for the cnat v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cnat.programming-kubernetes.info

Index

Constants

View Source
const (
	PhasePending = "PENDING"
	PhaseRunning = "RUNNING"
	PhaseDone    = "DONE"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "cnat.programming-kubernetes.info", Version: "v1alpha1"}

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

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type At

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

	Spec   AtSpec   `json:"spec,omitempty"`
	Status AtStatus `json:"status,omitempty"`
}

At is the Schema for the ats API +k8s:openapi-gen=true

func (*At) DeepCopy

func (in *At) DeepCopy() *At

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

func (*At) DeepCopyInto

func (in *At) DeepCopyInto(out *At)

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

func (*At) DeepCopyObject

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

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

type AtList

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

AtList contains a list of At

func (*AtList) DeepCopy

func (in *AtList) DeepCopy() *AtList

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

func (*AtList) DeepCopyInto

func (in *AtList) DeepCopyInto(out *AtList)

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

func (*AtList) DeepCopyObject

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

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

type AtSpec

type AtSpec struct {
	// Schedule is the desired time the command is supposed to be executed.
	// Note: the format used here is UTC time https://www.utctime.net
	Schedule string `json:"schedule,omitempty"`
	// Command is the desired command (executed in a Bash shell) to be executed.
	Command string `json:"command,omitempty"`
}

AtSpec defines the desired state of At +k8s:openapi-gen=true

func (*AtSpec) DeepCopy

func (in *AtSpec) DeepCopy() *AtSpec

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

func (*AtSpec) DeepCopyInto

func (in *AtSpec) DeepCopyInto(out *AtSpec)

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

type AtStatus

type AtStatus struct {
	// Phase represents the state of the schedule: until the command is executed
	// it is PENDING, afterwards it is DONE.
	Phase string `json:"phase,omitempty"`
}

AtStatus defines the observed state of At +k8s:openapi-gen=true

func (*AtStatus) DeepCopy

func (in *AtStatus) DeepCopy() *AtStatus

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

func (*AtStatus) DeepCopyInto

func (in *AtStatus) DeepCopyInto(out *AtStatus)

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