v1alpha1

package
v0.0.0-...-13c63ee Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fox v1alpha1 API group +kubebuilder:object:generate=true +groupName=fox.peng225.github.io

Index

Constants

View Source
const (
	BackupNotStarted = "NotStarted"
	BackupInProgress = "InProgress"
	BackupCompleted  = "Completed"
	BackupError      = "Error"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "fox.peng225.github.io", 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 PVCBackup

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

	Spec   PVCBackupSpec   `json:"spec,omitempty"`
	Status PVCBackupStatus `json:"status,omitempty"`
}

PVCBackup is the Schema for the pvcbackups API

func (*PVCBackup) DeepCopy

func (in *PVCBackup) DeepCopy() *PVCBackup

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

func (*PVCBackup) DeepCopyInto

func (in *PVCBackup) DeepCopyInto(out *PVCBackup)

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

func (*PVCBackup) DeepCopyObject

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

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

func (*PVCBackup) Default

func (r *PVCBackup) Default()

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

func (*PVCBackup) SetupWebhookWithManager

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

func (*PVCBackup) ValidateCreate

func (r *PVCBackup) ValidateCreate() error

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

func (*PVCBackup) ValidateDelete

func (r *PVCBackup) ValidateDelete() error

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

func (*PVCBackup) ValidateUpdate

func (r *PVCBackup) ValidateUpdate(old runtime.Object) error

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

type PVCBackupList

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

PVCBackupList contains a list of PVCBackup

func (*PVCBackupList) DeepCopy

func (in *PVCBackupList) DeepCopy() *PVCBackupList

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

func (*PVCBackupList) DeepCopyInto

func (in *PVCBackupList) DeepCopyInto(out *PVCBackupList)

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

func (*PVCBackupList) DeepCopyObject

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

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

type PVCBackupSpec

type PVCBackupSpec struct {
	// The namespace where the the source PVC is located
	//+kubebuilder:validation:Required
	SourceNamespace string `json:"sourceNamespace"`
	// Source PVC name
	//+kubebuilder:validation:Required
	SourcePVC string `json:"sourcePVC"`
	// The namespace where the the destination PVC is created
	//+kubebuilder:validation:Required
	DestinationNamespace string `json:"destinationNamespace"`
	// Destination PVC name
	//+kubebuilder:validation:Required
	DestinationPVC string `json:"destinationPVC"`
}

PVCBackupSpec defines the desired state of PVCBackup

func (*PVCBackupSpec) DeepCopy

func (in *PVCBackupSpec) DeepCopy() *PVCBackupSpec

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

func (*PVCBackupSpec) DeepCopyInto

func (in *PVCBackupSpec) DeepCopyInto(out *PVCBackupSpec)

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

type PVCBackupStatus

type PVCBackupStatus struct {
	// PVC backup status
	BackupStatus string `json:"backupStatus,omitempty"`
	// The date and time when the backup has been completed
	BackupDateAndTime string `json:"backupDateAndTime,omitempty"`
}

PVCBackupStatus defines the observed state of PVCBackup

func (*PVCBackupStatus) DeepCopy

func (in *PVCBackupStatus) DeepCopy() *PVCBackupStatus

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

func (*PVCBackupStatus) DeepCopyInto

func (in *PVCBackupStatus) DeepCopyInto(out *PVCBackupStatus)

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