Documentation ¶
Overview ¶
Package v1alpha1 provides v1alpha1 version API spec for dmaas-operator
Package v1alpha1 is the v1alpha1 version of the API. +groupName=mayadata.io
Index ¶
- Constants
- Variables
- func CustomResources() map[string]typeInfo
- func Resource(resource string) schema.GroupResource
- type DMaaSBackup
- type DMaaSBackupList
- type DMaaSBackupPhase
- type DMaaSBackupSpec
- type DMaaSBackupStatus
- type DMaaSRestore
- type DMaaSRestoreList
- type DMaasBackupState
- type PVRestoreStatusDetails
- type PeriodicFullBackupConfig
- type PreBackupAction
- type PreBackupActionList
- type PreBackupActionPhase
- type PreBackupActionSetAnnotation
- type PreBackupActionSetLabel
- type PreBackupActionSpec
- type PreBackupActionStatus
- type Progress
- type RestoreCondition
- type RestoreConditionType
- type RestoreDetails
- type RestoreSpec
- type RestoreStatus
- type RestoreStatusPhase
- type SnapshotStatusDetails
- type TargetResource
- type VeleroScheduleDetails
- type VeleroScheduleStatus
Constants ¶
const ( // DMaaSFinalizer represent finalizer for dmaas-operator DMaaSFinalizer = dmaasKey // DMaaSBackupLabelKey defines label key for velero resources DMaaSBackupLabelKey = dmaasKey + "/dmaasbackup" )
const GroupName = "mayadata.io"
GroupName is the group name for the Velero API
Variables ¶
var ( // SchemeBuilder collects the scheme builder functions for the Velero API SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies the SchemeBuilder functions to a specified scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is the GroupVersion for the Velero API
Functions ¶
func CustomResources ¶
func CustomResources() map[string]typeInfo
CustomResources returns a map of all custom resources within the Velero API group, keyed on Kind.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource gets a Velero GroupResource for a specified resource
Types ¶
type DMaaSBackup ¶
type DMaaSBackup struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec DMaaSBackupSpec `json:"spec"` // +optional Status DMaaSBackupStatus `json:"status"` }
DMaaSBackup represents the backup/schedule resource
func (*DMaaSBackup) DeepCopy ¶
func (in *DMaaSBackup) DeepCopy() *DMaaSBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSBackup.
func (*DMaaSBackup) DeepCopyInto ¶
func (in *DMaaSBackup) DeepCopyInto(out *DMaaSBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DMaaSBackup) DeepCopyObject ¶
func (in *DMaaSBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DMaaSBackupList ¶
type DMaaSBackupList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []DMaaSBackup `json:"items"` }
DMaaSBackupList represents the list of DMaaSBackup resource
func (*DMaaSBackupList) DeepCopy ¶
func (in *DMaaSBackupList) DeepCopy() *DMaaSBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSBackupList.
func (*DMaaSBackupList) DeepCopyInto ¶
func (in *DMaaSBackupList) DeepCopyInto(out *DMaaSBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DMaaSBackupList) DeepCopyObject ¶
func (in *DMaaSBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DMaaSBackupPhase ¶
type DMaaSBackupPhase string
DMaaSBackupPhase represents the phase of DMaaSBackup
const ( // DMaaSBackupPhaseActive represents the active phase of DMaaSBackup DMaaSBackupPhaseActive DMaaSBackupPhase = "Active" // DMaaSBackupPhaseInProgress represents the in progress phase of DMaaSBackup DMaaSBackupPhaseInProgress DMaaSBackupPhase = "InProgress" // DMaaSBackupPhasePaused represents the pause phase of DMaaSBackup DMaaSBackupPhasePaused DMaaSBackupPhase = "Paused" // DMaaSBackupPhaseCompleted represents the completed phase of DMaaSBackup // This is applicable if dmaasbackup is not a scheduled backup DMaaSBackupPhaseCompleted DMaaSBackupPhase = "Completed" )
type DMaaSBackupSpec ¶
type DMaaSBackupSpec struct { // State defines if given DMaaSBackup is active or not // Default value is Active // +optional State DMaasBackupState `json:"state,omitempty"` // PreBackupActionName name of relevant prebackupaction // +optional // +nullable PreBackupActionName *string `json:"preBackupActionName"` // PeriodicFullBackupCfg defines the config for periodic full backup // if PeriodicFullBackupCfg is provided then VeleroScheduleSpec should not be empty // +optional PeriodicFullBackupCfg PeriodicFullBackupConfig `json:"periodicFullBackup,omitempty"` // VeleroScheduleSpec defines the spec for backup schedule // In case of non-scheduled backup, VeleroScheduleSpec will be empty // +optional VeleroScheduleSpec velerov1.ScheduleSpec `json:"veleroScheduleSpec,omitempty"` }
DMaaSBackupSpec defines the spec for DMaaSBackup resource
func (*DMaaSBackupSpec) DeepCopy ¶
func (in *DMaaSBackupSpec) DeepCopy() *DMaaSBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSBackupSpec.
func (*DMaaSBackupSpec) DeepCopyInto ¶
func (in *DMaaSBackupSpec) DeepCopyInto(out *DMaaSBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DMaaSBackupStatus ¶
type DMaaSBackupStatus struct { // Phase represents the current phase of DMaaSBackup Phase DMaaSBackupPhase `json:"phase"` // Reason represents the cause of failure in DMaaSBackup Reason string `json:"reason,omitempty"` // Message represents the cause/action/outcome of DMaaSBackup Message string `json:"message,omitempty"` // VeleroSchedulesUpdatedTimestamp represents the last time veleroschedules got updated // +nullable VeleroSchedulesUpdatedTimestamp metav1.Time `json:"veleroSchedulesUpdatedTimestamp,omitempty"` // VeleroSchedules represents the list of Velero Schedule created by DMaaSBackup // +nullable VeleroSchedules []VeleroScheduleDetails `json:"veleroSchedules,omitempty"` // VeleroBackupName represents the name of Velero Backup, created by DMaaSBackup, // if VeleroScheduleSpec is having empty schedule VeleroBackupName *string `json:"veleroBackupName,omitempty"` }
DMaaSBackupStatus represents the status of DMaaSBackup resource
func (*DMaaSBackupStatus) DeepCopy ¶
func (in *DMaaSBackupStatus) DeepCopy() *DMaaSBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSBackupStatus.
func (*DMaaSBackupStatus) DeepCopyInto ¶
func (in *DMaaSBackupStatus) DeepCopyInto(out *DMaaSBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DMaaSRestore ¶
type DMaaSRestore struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec RestoreSpec `json:"spec"` // +optional Status RestoreStatus `json:"status"` }
DMaaSRestore represents the restore resource
func (*DMaaSRestore) DeepCopy ¶
func (in *DMaaSRestore) DeepCopy() *DMaaSRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSRestore.
func (*DMaaSRestore) DeepCopyInto ¶
func (in *DMaaSRestore) DeepCopyInto(out *DMaaSRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DMaaSRestore) DeepCopyObject ¶
func (in *DMaaSRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DMaaSRestoreList ¶
type DMaaSRestoreList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []DMaaSRestore `json:"items"` }
DMaaSRestoreList represents the list of DMaaSRestore resource
func (*DMaaSRestoreList) DeepCopy ¶
func (in *DMaaSRestoreList) DeepCopy() *DMaaSRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMaaSRestoreList.
func (*DMaaSRestoreList) DeepCopyInto ¶
func (in *DMaaSRestoreList) DeepCopyInto(out *DMaaSRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DMaaSRestoreList) DeepCopyObject ¶
func (in *DMaaSRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DMaasBackupState ¶
type DMaasBackupState string
DMaasBackupState represents the state of DMaasBackup
const ( // DMaaSBackupStateEmpty means dmaasbackup is active DMaaSBackupStateEmpty DMaasBackupState = "" // DMaaSBackupStateActive means dmaasbackup is active DMaaSBackupStateActive DMaasBackupState = "Active" // DMaaSBackupStatePaused means dmaasbackup is paused DMaaSBackupStatePaused DMaasBackupState = "Paused" )
type PVRestoreStatusDetails ¶
type PVRestoreStatusDetails struct { // SnapshotID is snapshotID from which restore started SnapshotID string `json:"snapshotID"` // PVName is pv name on which snapshot is restored PVName string `json:"pvName"` // Type defines the snapshot type Type string `json:"snapshotType"` // Phase represents the restore phase of snapshot Phase string `json:"phase"` // StartTimestamp represents the timestamp at which restore of the snapshot started // +nullable StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"` // CompletionTimestamp represents the timestamp at which restore of the snapshot completed // +nullable CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"` // Conditions represents the list of condition for the PV restore // +nullable Conditions []RestoreCondition `json:"conditions,omitempty"` // Progress represents the progress of snapshot restore Progress Progress `json:"progress"` }
PVRestoreStatusDetails represents the status of PV restore
func (*PVRestoreStatusDetails) DeepCopy ¶
func (in *PVRestoreStatusDetails) DeepCopy() *PVRestoreStatusDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVRestoreStatusDetails.
func (*PVRestoreStatusDetails) DeepCopyInto ¶
func (in *PVRestoreStatusDetails) DeepCopyInto(out *PVRestoreStatusDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PeriodicFullBackupConfig ¶
type PeriodicFullBackupConfig struct { // CronTime is cron expression defining when to run full backup CronTime string `json:"cronTime,omitempty"` // FullBackupRetentionThreshold represents the number of full backup needs to be retained FullBackupRetentionThreshold int `json:"fullBackupRetentionThreshold"` // DisableSuccessfulBackupCheckForRetention disable the checks to retain successful backup // from the schedules. DisableSuccessfulBackupCheckForRetention bool `json:"disableSuccessfulBackupCheckForRetention,omitempty"` }
PeriodicFullBackupConfig defines the configuration for periodic full backup
func (*PeriodicFullBackupConfig) DeepCopy ¶
func (in *PeriodicFullBackupConfig) DeepCopy() *PeriodicFullBackupConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeriodicFullBackupConfig.
func (*PeriodicFullBackupConfig) DeepCopyInto ¶
func (in *PeriodicFullBackupConfig) DeepCopyInto(out *PeriodicFullBackupConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreBackupAction ¶
type PreBackupAction struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec PreBackupActionSpec `json:"spec"` // +optional Status PreBackupActionStatus `json:"status"` }
PreBackupAction represents the pre-backup action for DMaaS
func (*PreBackupAction) DeepCopy ¶
func (in *PreBackupAction) DeepCopy() *PreBackupAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupAction.
func (*PreBackupAction) DeepCopyInto ¶
func (in *PreBackupAction) DeepCopyInto(out *PreBackupAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreBackupAction) DeepCopyObject ¶
func (in *PreBackupAction) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreBackupActionList ¶
type PreBackupActionList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []PreBackupAction `json:"items"` }
PreBackupActionList represents the list of PreBackupAction resource
func (*PreBackupActionList) DeepCopy ¶
func (in *PreBackupActionList) DeepCopy() *PreBackupActionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupActionList.
func (*PreBackupActionList) DeepCopyInto ¶
func (in *PreBackupActionList) DeepCopyInto(out *PreBackupActionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreBackupActionList) DeepCopyObject ¶
func (in *PreBackupActionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreBackupActionPhase ¶
type PreBackupActionPhase string
PreBackupActionPhase represents the phase of prePreBackupAction
const ( // PreBackupActionPhaseInProgress represents the in progress phase of PreBackupAction PreBackupActionPhaseInProgress PreBackupActionPhase = "InProgress" // PreBackupActionPhaseCompleted represents the in completed phase of PreBackupAction PreBackupActionPhaseCompleted PreBackupActionPhase = "Completed" )
type PreBackupActionSetAnnotation ¶
type PreBackupActionSetAnnotation struct { // IncludeResourceList is list of resources to be annotated IncludeResourceList []TargetResource `json:"includeResourceList"` // IncludeResourceList is list of resources not to be annotated // +optional // +nullable ExcludeResourceList []TargetResource `json:"excludeResourceList,omitempty"` }
PreBackupActionSetAnnotation represents list of resource to be annotated with volume details for restic base backup
func (*PreBackupActionSetAnnotation) DeepCopy ¶
func (in *PreBackupActionSetAnnotation) DeepCopy() *PreBackupActionSetAnnotation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupActionSetAnnotation.
func (*PreBackupActionSetAnnotation) DeepCopyInto ¶
func (in *PreBackupActionSetAnnotation) DeepCopyInto(out *PreBackupActionSetAnnotation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreBackupActionSetLabel ¶
type PreBackupActionSetLabel struct { // Labels contains list of label to be set on specified resources Labels []string `json:"labels"` // IncludeResourceList is list of resource, need to be labeled IncludeResourceList []TargetResource `json:"includeResourceList"` // ExcludeResourceList is list of resources, need not to be labeled // +optional // +nullable ExcludeResourceList []TargetResource `json:"excludeResourceList,omitempty"` }
PreBackupActionSetLabel represents the labels and, list of resource to be labeled
func (*PreBackupActionSetLabel) DeepCopy ¶
func (in *PreBackupActionSetLabel) DeepCopy() *PreBackupActionSetLabel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupActionSetLabel.
func (*PreBackupActionSetLabel) DeepCopyInto ¶
func (in *PreBackupActionSetLabel) DeepCopyInto(out *PreBackupActionSetLabel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreBackupActionSpec ¶
type PreBackupActionSpec struct { // SetLabel defines the list of labels to be applied to resources // +optional SetLabel PreBackupActionSetLabel `json:"setLabel,omitempty"` // SetAnnotation defines the list of annotation to be applied on resources // +optional SetAnnotation PreBackupActionSetAnnotation `json:"setAnnotation,omitempty"` // OneTimeAction specify if this PrePreBackupAction needs to be executed periodically or not // - If true, action will be taken until it becomes success, marks Phase as Completed and stops further action. // - If false, action will be taken in regular intervals, leaving Phase as InProgress. // Default is false // +optional OneTimeAction bool `json:"oneTimeAction,omitempty"` }
PreBackupActionSpec represents the list of action to be executed prior to back up
func (*PreBackupActionSpec) DeepCopy ¶
func (in *PreBackupActionSpec) DeepCopy() *PreBackupActionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupActionSpec.
func (*PreBackupActionSpec) DeepCopyInto ¶
func (in *PreBackupActionSpec) DeepCopyInto(out *PreBackupActionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreBackupActionStatus ¶
type PreBackupActionStatus struct { // Phase defines the PreBackupAction stage Phase PreBackupActionPhase `json:"phase"` // LastSuccessfulTime represents the time when PreBackupAction executed successfully // +nullable LastSuccessfulTimestamp *metav1.Time `json:"lastSuccessfulTimestamp,omitempty"` // LastFailureTimeStamp represents the time when PreBackupAction failed // +nullable LastFailureTimestamp *metav1.Time `json:"lastFailureTimestamp,omitempty"` // UpdatedSelectedList represents the list of resources labeled successfully // +nullable UpdatedSelectedList []TargetResource `json:"updatedSelectedList,omitempty"` // UpdatedAnnotatedList represents the list of resources annotated successfully // +nullable UpdatedAnnotatedList []TargetResource `json:"updatedAnnotatedList,omitempty"` }
PreBackupActionStatus defines the status of PreBackupAction resource
func (*PreBackupActionStatus) DeepCopy ¶
func (in *PreBackupActionStatus) DeepCopy() *PreBackupActionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupActionStatus.
func (*PreBackupActionStatus) DeepCopyInto ¶
func (in *PreBackupActionStatus) DeepCopyInto(out *PreBackupActionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Progress ¶
type Progress struct { // TotalBytes represents the total amount of data for the snapshot // This value is updated from PodVolumeBackup or CStorBackup resource TotalBytes int `json:"totalSize"` // BytesDone represents the amount of data snapshotted // This value is updated from PodVolumeBackup or CStorBackup resource BytesDone int `json:"bytesDone"` }
Progress represents the progress of Snapshot
func (*Progress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Progress.
func (*Progress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreCondition ¶
type RestoreCondition struct { /* Predefined types of Restore */ // Type defines the RestoreCondition type Type RestoreConditionType `json:"type"` // Status defines the status of Condition, True or False Status corev1.ConditionStatus `json:"status"` // LastUpdatedTime represents the last update time of condition // +nullable LastUpdatedTime *metav1.Time `json:"lastUpdatedTime,omitempty"` // LastTransitionTime represents the transition time of condition // +nullable LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` /* Reason, Message when error occurs */ // Reason represents the cause of failure in condition Reason string `json:"reason,omitempty"` // Message represents the cause/warning/message from condition Message string `json:"message,omitempty"` }
RestoreCondition represents the restore pre-flight check
func (*RestoreCondition) DeepCopy ¶
func (in *RestoreCondition) DeepCopy() *RestoreCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreCondition.
func (*RestoreCondition) DeepCopyInto ¶
func (in *RestoreCondition) DeepCopyInto(out *RestoreCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreConditionType ¶
type RestoreConditionType string
RestoreConditionType represents the type of RestoreCondition
const ( // RestoreConditionTypeSynedBackupData represents the sync of Backup in k8s cluster RestoreConditionTypeSynedBackupData RestoreConditionType = "BackupSync" // RestoreConditionTypeValidatedBackupData represents the validation of Backup Data RestoreConditionTypeValidatedBackupData RestoreConditionType = "ValidateBackupData" // RestoreConditionTypeCheckedResources represents the validation of PVC, StorageClass, ServiceAccount RestoreConditionTypeCheckedResources RestoreConditionType = "ResourceValidate" // RestoreConditionTypeIPSet represents the setting of IP address RestoreConditionTypeIPSet RestoreConditionType = "Setting IP Successful" )
type RestoreDetails ¶
type RestoreDetails struct { // RestoreName is velero restore resource name RestoreName string `json:"name"` // BackupName is name of backup from which restore is created BackupName string `json:"backupName"` // StartedAt is time stamp at which restore started // +nullable StartedAt *metav1.Time `json:"startedAt,omitempty"` // CompletedAt is time stamp at which restore completed // +nullable CompletedAt *metav1.Time `json:"completedAt,omitempty"` // State represents the restore state State string `json:"state"` // PVRestoreStatus represents the list of PVRestoreStatusDetails // +nullable PVRestoreStatus []PVRestoreStatusDetails `json:"snapshotStatus,omitempty"` }
RestoreDetails represents the restore information
func (*RestoreDetails) DeepCopy ¶
func (in *RestoreDetails) DeepCopy() *RestoreDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreDetails.
func (*RestoreDetails) DeepCopyInto ¶
func (in *RestoreDetails) DeepCopyInto(out *RestoreDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreSpec ¶
type RestoreSpec struct { // BackupName defines the backup from/till which restore should happen // +optional BackupName string `json:"backupName,omitempty"` // BackupScheduleName defines the schedule name from which restore should happen // +optional BackupScheduleName string `json:"backupScheduleName,omitempty"` // OpenEBSNamespace represents the namespace in which openebs is installed OpenEBSNamespace string `json:"openebsNamespace"` // RestoreSpec defines the spec for velero restore resource RestoreSpec velerov1.RestoreSpec `json:"restoreSpec"` }
RestoreSpec defines the spec for restore
func (*RestoreSpec) DeepCopy ¶
func (in *RestoreSpec) DeepCopy() *RestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSpec.
func (*RestoreSpec) DeepCopyInto ¶
func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreStatus ¶
type RestoreStatus struct { // Phase represents the restore phase Phase RestoreStatusPhase `json:"phase"` // Reason represents the cause of failure in Restore // +optional Reason string `json:"reason,omitempty"` // Message represents the cause/action/outcome of Restore // +optional Message string `json:"message,omitempty"` // Conditions represents the pre-flight action, to be executed before restore, and it's status // +nullable Conditions []RestoreCondition `json:"conditions,omitempty"` // TotalBackupCount represents the count of backup, to be restored TotalBackupCount int `json:"totalBackupCount"` // CompletedBackupCount represents the restored count of backup CompletedBackupCount int `json:"completedBackupCount"` // Restores represents the list of RestoreDetails // +nullable Restores []RestoreDetails `json:"restoreList,omitempty"` }
RestoreStatus represents the status of restore
func (*RestoreStatus) DeepCopy ¶
func (in *RestoreStatus) DeepCopy() *RestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreStatus.
func (*RestoreStatus) DeepCopyInto ¶
func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreStatusPhase ¶
type RestoreStatusPhase string
RestoreStatusPhase represents the phase of restore
const ( // RestoreStatusPhaseInProgress represents in-progress phase of restore RestoreStatusPhaseInProgress RestoreStatusPhase = "InProgress" // RestoreStatusPhaseActive represents active phase of restore RestoreStatusPhaseActive RestoreStatusPhase = "Active" // RestoreStatusPhaseCompleted represents the completed restore RestoreStatusPhaseCompleted RestoreStatusPhase = "Completed" // RestoreStatusPhaseEmpty represents empty phase of restore RestoreStatusPhaseEmpty RestoreStatusPhase = "" )
type SnapshotStatusDetails ¶
type SnapshotStatusDetails struct { // SnapshotID represents the ID of the snapshot SnapshotID string `json:"snapshotID"` // PVName represents the PV name on which snapshot is created PVName string `json:"pvName"` // Type represents the type of snapshot Type string `json:"snapshotType"` // Phase represents the phase of PodVolumeBackup or CStorBackup resource Phase string `json:"phase"` // StartTimestamp represents the start time of snapshot // +nullable StartTimestamp *metav1.Time `json:"startTimestamp,omitempty"` // CompletionTimestamp represents the completion time of snapshot // +nullable CompletionTimestamp *metav1.Time `json:"completionTimestamp,omitempty"` // Progress represents the progress of the snapshot Progress Progress `json:"progress"` }
SnapshotStatusDetails represents the snapshot information and it's status
func (*SnapshotStatusDetails) DeepCopy ¶
func (in *SnapshotStatusDetails) DeepCopy() *SnapshotStatusDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatusDetails.
func (*SnapshotStatusDetails) DeepCopyInto ¶
func (in *SnapshotStatusDetails) DeepCopyInto(out *SnapshotStatusDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TargetResource ¶
type TargetResource struct { // APIVersion of the resource // +optional APIVersion string `json:"apiversion,omitempty"` // Kind of the resource Kind string `json:"kind"` // Name of the resource // +optional Name []string `json:"name,omitempty"` // Namespace of the resource // +optional Namespace string `json:"namespace,omitempty"` }
TargetResource represents the k8s resource information used for pre-backup action
func (*TargetResource) DeepCopy ¶
func (in *TargetResource) DeepCopy() *TargetResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetResource.
func (*TargetResource) DeepCopyInto ¶
func (in *TargetResource) DeepCopyInto(out *TargetResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VeleroScheduleDetails ¶
type VeleroScheduleDetails struct { // ScheduleName represents the velero schedule resource name ScheduleName string `json:"scheduleName"` // CreationTimestamp defines the time-stamp of velero schedule CR // +nullable CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` // Status represents the velero schedule status Status VeleroScheduleStatus `json:"status"` }
VeleroScheduleDetails represents the information about schedule
func (*VeleroScheduleDetails) DeepCopy ¶
func (in *VeleroScheduleDetails) DeepCopy() *VeleroScheduleDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VeleroScheduleDetails.
func (*VeleroScheduleDetails) DeepCopyInto ¶
func (in *VeleroScheduleDetails) DeepCopyInto(out *VeleroScheduleDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VeleroScheduleStatus ¶
type VeleroScheduleStatus string
VeleroScheduleStatus represents the status of VeleroSchedule
const ( // Active represents the active state of VeleroSchedule Active VeleroScheduleStatus = "Active" // Deleted represents the deleted VeleroSchedule Deleted VeleroScheduleStatus = "Deleted" // Erased represents the VeleroSchedule,for which data at remote storage is deleted Erased VeleroScheduleStatus = "Erased" )