v1alpha1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the v1beta1 API group +kubebuilder:object:generate=true +groupName=core.wecraft.tn

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "core.wecraft.tn", 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 Holiday

type Holiday struct {
	Name string `json:"name"`
	Date string `json:"date"`
}

func (*Holiday) DeepCopy

func (in *Holiday) DeepCopy() *Holiday

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

func (*Holiday) DeepCopyInto

func (in *Holiday) DeepCopyInto(out *Holiday)

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

type IncludedObject

type IncludedObject struct {
	ApiVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Namespace  string `json:"namespace"`
	IncludeRef string `json:"includeRef"`
	ExcludeRef string `json:"excludeRef"`
}

func (*IncludedObject) DeepCopy

func (in *IncludedObject) DeepCopy() *IncludedObject

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

func (*IncludedObject) DeepCopyInto

func (in *IncludedObject) DeepCopyInto(out *IncludedObject)

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

type KronosApp

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

	Spec   KronosAppSpec   `json:"spec,omitempty"`
	Status KronosAppStatus `json:"status,omitempty"`
}

KronosApp is the Schema for the kronosapps API

func (*KronosApp) DeepCopy

func (in *KronosApp) DeepCopy() *KronosApp

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

func (*KronosApp) DeepCopyInto

func (in *KronosApp) DeepCopyInto(out *KronosApp)

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

func (*KronosApp) DeepCopyObject

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

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

func (*KronosApp) Default added in v0.4.0

func (r *KronosApp) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (KronosApp) GetNewKronosAppStatus added in v0.4.0

func (k KronosApp) GetNewKronosAppStatus(status, reason bool, nextOperation time.Time, handledResources int) KronosAppStatus

func (KronosApp) SetNewKronosAppStatus added in v0.4.0

func (k KronosApp) SetNewKronosAppStatus(ctx context.Context, Client client.Client, newStatus KronosAppStatus) error

func (*KronosApp) SetupWebhookWithManager added in v0.4.0

func (r *KronosApp) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

func (*KronosApp) ValidateCreate added in v0.4.0

func (r *KronosApp) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*KronosApp) ValidateDelete added in v0.4.0

func (r *KronosApp) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*KronosApp) ValidateUpdate added in v0.4.0

func (r *KronosApp) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KronosAppList

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

KronosAppList contains a list of KronosApp

func (*KronosAppList) DeepCopy

func (in *KronosAppList) DeepCopy() *KronosAppList

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

func (*KronosAppList) DeepCopyInto

func (in *KronosAppList) DeepCopyInto(out *KronosAppList)

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

func (*KronosAppList) DeepCopyObject

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

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

type KronosAppSpec

type KronosAppSpec struct {
	StartSleep      string           `json:"startSleep"`
	EndSleep        string           `json:"endSleep"`
	WeekDays        string           `json:"weekdays"`
	TimeZone        string           `json:"timezone,omitempty"`
	Holidays        []Holiday        `json:"holidays,omitempty"`
	IncludedObjects []IncludedObject `json:"includedObjects"`
	ForceWake       bool             `json:"forceWake,omitempty"`
	ForceSleep      bool             `json:"forceSleep,omitempty"`
}

KronosAppSpec defines the desired state of KronosApp

func (*KronosAppSpec) DeepCopy

func (in *KronosAppSpec) DeepCopy() *KronosAppSpec

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

func (*KronosAppSpec) DeepCopyInto

func (in *KronosAppSpec) DeepCopyInto(out *KronosAppSpec)

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

type KronosAppStatus

type KronosAppStatus struct {
	Status           string   `json:"status"`
	Reason           string   `json:"reason"`
	HandledResources string   `json:"handledResources"`
	NextOperation    string   `json:"nextOperation"`
	CreatedSecrets   []string `json:"secretCreated,omitempty"`
}

KronosAppStatus defines the observed state of KronosApp

func (*KronosAppStatus) DeepCopy

func (in *KronosAppStatus) DeepCopy() *KronosAppStatus

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

func (*KronosAppStatus) DeepCopyInto

func (in *KronosAppStatus) DeepCopyInto(out *KronosAppStatus)

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