v1alpha1

package
v0.0.0-...-12da84f Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pvc v1alpha1 API group +kubebuilder:object:generate=true +groupName=datamover.oadp.openshift.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "datamover.oadp.openshift.io", Version: "v1alpha1"}

	VSBKind = "VolumeSnapshotBackup"
	VSRKind = "VolumeSnapshotRestore"

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

type PVCData struct {
	// name of the PersistentVolumeClaim
	Name string `json:"name,omitempty"`
	// size of the PersistentVolumeClaim
	Size string `json:"size,omitempty"`
	// name of the StorageClass
	StorageClassName string `json:"storageClassName,omitempty"`
}

func (*PVCData) DeepCopy

func (in *PVCData) DeepCopy() *PVCData

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

func (*PVCData) DeepCopyInto

func (in *PVCData) DeepCopyInto(out *PVCData)

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

type ReplicationDestinationData

type ReplicationDestinationData struct {
	// name of the ReplicationDestination associated with the volumesnapshotrestore
	Name string `json:"name,omitempty"`
	// StartTimestamp records the time a ReplicationDestination was started.
	// +optional
	StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"`
	// CompletionTimestamp records the time a ReplicationDestination reached a terminal state.
	// +optional
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
}

func (*ReplicationDestinationData) DeepCopy

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

func (*ReplicationDestinationData) DeepCopyInto

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

type ReplicationSourceData

type ReplicationSourceData struct {
	// name of the ReplicationSource associated with the volumesnapshotbackup
	Name string `json:"name,omitempty"`
	// StartTimestamp records the time a ReplicationSource was started.
	// +optional
	StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"`
	// CompletionTimestamp records the time a ReplicationSource reached a terminal state.
	// +optional
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
}

func (*ReplicationSourceData) DeepCopy

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

func (*ReplicationSourceData) DeepCopyInto

func (in *ReplicationSourceData) DeepCopyInto(out *ReplicationSourceData)

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

type VSBRef

type VSBRef struct {
	// Includes backed up PVC name and size
	BackedUpPVCData PVCData `json:"sourcePVCData,omitempty"`
	// Includes restic repository path
	ResticRepository string `json:"resticrepository,omitempty"`
	// name of the VolumeSnapshotClass
	VolumeSnapshotClassName string `json:"volumeSnapshotClassName,omitempty"`
}

func (*VSBRef) DeepCopy

func (in *VSBRef) DeepCopy() *VSBRef

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

func (*VSBRef) DeepCopyInto

func (in *VSBRef) DeepCopyInto(out *VSBRef)

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

type VolumeSnapshotBackup

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

	Spec   VolumeSnapshotBackupSpec   `json:"spec,omitempty"`
	Status VolumeSnapshotBackupStatus `json:"status,omitempty"`
}

VolumeSnapshotBackup is the Schema for the volumesnapshotbackups API

func (*VolumeSnapshotBackup) DeepCopy

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

func (*VolumeSnapshotBackup) DeepCopyInto

func (in *VolumeSnapshotBackup) DeepCopyInto(out *VolumeSnapshotBackup)

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

func (*VolumeSnapshotBackup) DeepCopyObject

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

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

type VolumeSnapshotBackupBatchingStatus

type VolumeSnapshotBackupBatchingStatus string
const (
	SnapMoverBackupBatchingCompleted VolumeSnapshotBackupBatchingStatus = "Completed"

	SnapMoverBackupBatchingQueued VolumeSnapshotBackupBatchingStatus = "Queued"

	SnapMoverBackupBatchingProcessing VolumeSnapshotBackupBatchingStatus = "Processing"
)

type VolumeSnapshotBackupList

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

VolumeSnapshotBackupList contains a list of VolumeSnapshotBackup

func (*VolumeSnapshotBackupList) DeepCopy

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

func (*VolumeSnapshotBackupList) DeepCopyInto

func (in *VolumeSnapshotBackupList) DeepCopyInto(out *VolumeSnapshotBackupList)

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

func (*VolumeSnapshotBackupList) DeepCopyObject

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

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

type VolumeSnapshotBackupPhase

type VolumeSnapshotBackupPhase string
const (
	SnapMoverVolSyncPhaseCompleted VolumeSnapshotBackupPhase = "SnapshotBackupDone"

	SnapMoverBackupPhaseCompleted VolumeSnapshotBackupPhase = "Completed"

	SnapMoverBackupPhaseInProgress VolumeSnapshotBackupPhase = "InProgress"

	SnapMoverBackupPhaseFailed VolumeSnapshotBackupPhase = "Failed"

	SnapMoverBackupPhasePartiallyFailed VolumeSnapshotBackupPhase = "PartiallyFailed"

	SnapMoverBackupPhaseCleanup VolumeSnapshotBackupPhase = "Cleanup"
)

type VolumeSnapshotBackupSpec

type VolumeSnapshotBackupSpec struct {
	VolumeSnapshotContent corev1.ObjectReference `json:"volumeSnapshotContent,omitempty"`
	// Namespace where the Velero deployment is present
	ProtectedNamespace string `json:"protectedNamespace,omitempty"`
	// Restic Secret reference for given BSL
	ResticSecretRef corev1.LocalObjectReference `json:"resticSecretRef,omitempty"`
}

VolumeSnapshotBackupSpec defines the desired state of VolumeSnapshotBackup

func (*VolumeSnapshotBackupSpec) DeepCopy

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

func (*VolumeSnapshotBackupSpec) DeepCopyInto

func (in *VolumeSnapshotBackupSpec) DeepCopyInto(out *VolumeSnapshotBackupSpec)

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

type VolumeSnapshotBackupStatus

type VolumeSnapshotBackupStatus struct {
	Completed bool `json:"completed,omitempty"`
	// Include references to the volsync CRs and their state as they are
	// running
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// Includes source PVC name and size
	SourcePVCData PVCData `json:"sourcePVCData,omitempty"`
	// Includes restic repository path
	ResticRepository string `json:"resticrepository,omitempty"`
	// volumesnapshot backup phase status
	Phase VolumeSnapshotBackupPhase `json:"phase,omitempty"`
	// volumesnapshotbackup batching status
	BatchingStatus VolumeSnapshotBackupBatchingStatus `json:"batchingStatus,omitempty"`
	// name of the VolumeSnapshotClass
	VolumeSnapshotClassName string `json:"volumeSnapshotClassName,omitempty"`
	// StartTimestamp records the time a volsumesnapshotbackup was started.
	// +optional
	StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"`
	// CompletionTimestamp records the time a volumesnapshotbackup reached a terminal state.
	// +optional
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
	// Includes information pertaining to Volsync ReplicationSource CR
	ReplicationSourceData ReplicationSourceData `json:"replicationSourceData,omitempty"`
}

VolumeSnapshotBackupStatus defines the observed state of VolumeSnapshotBackup

func (*VolumeSnapshotBackupStatus) DeepCopy

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

func (*VolumeSnapshotBackupStatus) DeepCopyInto

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

type VolumeSnapshotRestore

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

	Spec   VolumeSnapshotRestoreSpec   `json:"spec,omitempty"`
	Status VolumeSnapshotRestoreStatus `json:"status,omitempty"`
}

VolumeSnapshotRestore is the Schema for the volumesnapshotrestores API

func (*VolumeSnapshotRestore) DeepCopy

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

func (*VolumeSnapshotRestore) DeepCopyInto

func (in *VolumeSnapshotRestore) DeepCopyInto(out *VolumeSnapshotRestore)

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

func (*VolumeSnapshotRestore) DeepCopyObject

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

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

type VolumeSnapshotRestoreBatchingStatus

type VolumeSnapshotRestoreBatchingStatus string
const (
	SnapMoverRestoreBatchingCompleted VolumeSnapshotRestoreBatchingStatus = "Completed"

	SnapMoverRestoreBatchingQueued VolumeSnapshotRestoreBatchingStatus = "Queued"

	SnapMoverRestoreBatchingProcessing VolumeSnapshotRestoreBatchingStatus = "Processing"
)

type VolumeSnapshotRestoreList

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

VolumeSnapshotRestoreList contains a list of VolumeSnapshotRestore

func (*VolumeSnapshotRestoreList) DeepCopy

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

func (*VolumeSnapshotRestoreList) DeepCopyInto

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

func (*VolumeSnapshotRestoreList) DeepCopyObject

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

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

type VolumeSnapshotRestorePhase

type VolumeSnapshotRestorePhase string
const (
	SnapMoverRestoreVolSyncPhaseCompleted VolumeSnapshotRestorePhase = "SnapshotRestoreDone"

	SnapMoverRestorePhaseCompleted VolumeSnapshotRestorePhase = "Completed"

	SnapMoverRestorePhaseInProgress VolumeSnapshotRestorePhase = "InProgress"

	SnapMoverRestorePhaseFailed VolumeSnapshotRestorePhase = "Failed"

	SnapMoverRestorePhasePartiallyFailed VolumeSnapshotRestorePhase = "PartiallyFailed"

	SnapMoverRestorePhaseCleanup VolumeSnapshotRestorePhase = "Cleanup"
)

type VolumeSnapshotRestoreSpec

type VolumeSnapshotRestoreSpec struct {
	ResticSecretRef corev1.LocalObjectReference `json:"resticSecretRef,omitempty"`
	// Includes associated volumesnapshotbackup details
	VolumeSnapshotMoverBackupref VSBRef `json:"volumeSnapshotMoverBackupRef,omitempty"`
	// Namespace where the Velero deployment is present
	ProtectedNamespace string `json:"protectedNamespace,omitempty"`
}

VolumeSnapshotRestoreSpec defines the desired state of VolumeSnapshotRestore

func (*VolumeSnapshotRestoreSpec) DeepCopy

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

func (*VolumeSnapshotRestoreSpec) DeepCopyInto

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

type VolumeSnapshotRestoreStatus

type VolumeSnapshotRestoreStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
	// volumesnapshot restore phase status
	Phase VolumeSnapshotRestorePhase `json:"phase,omitempty"`
	// volumesnapshotrestore batching status
	BatchingStatus VolumeSnapshotRestoreBatchingStatus `json:"batchingStatus,omitempty"`
	// name of the volumesnapshot snaphandle that is backed up
	SnapshotHandle string `json:"snapshotHandle,omitempty"`
	// name of the volumesnapshotcontent that is backed up
	VolumeSnapshotContentName string `json:"volumeSnapshotContentName,omitempty"`
	// StartTimestamp records the time a volsumesnapshotrestore was started.
	StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"`
	// CompletionTimestamp records the time a volumesnapshotrestore reached a terminal state.
	CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"`
	// Includes information pertaining to Volsync ReplicationDestination CR
	ReplicationDestinationData ReplicationDestinationData `json:"replicationDestinationData,omitempty"`
}

VolumeSnapshotRestoreStatus defines the observed state of VolumeSnapshotRestore

func (*VolumeSnapshotRestoreStatus) DeepCopy

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

func (*VolumeSnapshotRestoreStatus) DeepCopyInto

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