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
- Variables
- type PVCBackup
- func (in *PVCBackup) DeepCopy() *PVCBackup
- func (in *PVCBackup) DeepCopyInto(out *PVCBackup)
- func (in *PVCBackup) DeepCopyObject() runtime.Object
- func (r *PVCBackup) Default()
- func (r *PVCBackup) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *PVCBackup) ValidateCreate() error
- func (r *PVCBackup) ValidateDelete() error
- func (r *PVCBackup) ValidateUpdate(old runtime.Object) error
- type PVCBackupList
- type PVCBackupSpec
- type PVCBackupStatus
Constants ¶
const ( BackupNotStarted = "NotStarted" BackupInProgress = "InProgress" BackupCompleted = "Completed" BackupError = "Error" )
Variables ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVCBackup.
func (*PVCBackup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PVCBackup) DeepCopyObject ¶
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 (*PVCBackup) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*PVCBackup) ValidateDelete ¶
ValidateDelete 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.