v1alpha1

package
v0.0.0-...-5b7b14a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the demo v1alpha1 API group +kubebuilder:object:generate=true +groupName=demo.c930.net

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "demo.c930.net", Version: "v1alpha1"}

	// 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 Sleep

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

	Spec   SleepSpec   `json:"spec,omitempty"`
	Status SleepStatus `json:"status,omitempty"`
}

Sleep is the Schema for the sleeps API

func (*Sleep) DeepCopy

func (in *Sleep) DeepCopy() *Sleep

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

func (*Sleep) DeepCopyInto

func (in *Sleep) DeepCopyInto(out *Sleep)

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

func (*Sleep) DeepCopyObject

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

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

type SleepList

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

SleepList contains a list of Sleep

func (*SleepList) DeepCopy

func (in *SleepList) DeepCopy() *SleepList

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

func (*SleepList) DeepCopyInto

func (in *SleepList) DeepCopyInto(out *SleepList)

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

func (*SleepList) DeepCopyObject

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

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

type SleepSpec

type SleepSpec struct {

	// Duration in seconds for which the operator should sleep
	Duration int `json:"duration,omitempty"`
}

SleepSpec defines the desired state of Sleep

func (*SleepSpec) DeepCopy

func (in *SleepSpec) DeepCopy() *SleepSpec

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

func (*SleepSpec) DeepCopyInto

func (in *SleepSpec) DeepCopyInto(out *SleepSpec)

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

type SleepStatus

type SleepStatus struct {
}

SleepStatus defines the observed state of Sleep

func (*SleepStatus) DeepCopy

func (in *SleepStatus) DeepCopy() *SleepStatus

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

func (*SleepStatus) DeepCopyInto

func (in *SleepStatus) DeepCopyInto(out *SleepStatus)

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