Documentation ¶
Index ¶
- func CloneFromSnapshopRef(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.CloneFromSnapshot, error)
- func DeleteSnapshotRef(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.DeleteSnapshot, error)
- func SnapshotRef(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.Snapshot, error)
- func WaitForClonePhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.CloneFromSnapshot, error)
- func WaitForDeleteSnapshotPhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.DeleteSnapshot, error)
- func WaitForPhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, ...) (*backupdriverv1.Snapshot, error)
- type BackupRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneFromSnapshopRef ¶
func CloneFromSnapshopRef(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, snapshotID string, metadata []byte, apiGroup *string, kind string, namespace string, repo BackupRepository, waitForPhases []backupdriverv1.ClonePhase, logger logrus.FieldLogger) (*backupdriverv1.CloneFromSnapshot, error)
func DeleteSnapshotRef ¶
func DeleteSnapshotRef( ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, snapshotID string, namespace string, repo BackupRepository, waitForPhases []backupdriverv1.DeleteSnapshotPhase, logger logrus.FieldLogger) (*backupdriverv1.DeleteSnapshot, error)
func SnapshotRef ¶
func SnapshotRef(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, objectToSnapshot core_v1.TypedLocalObjectReference, namespace string, repository BackupRepository, labels map[string]string, waitForPhases []backupdriverv1.SnapshotPhase, logger logrus.FieldLogger) (*backupdriverv1.Snapshot, error)
Create a Snapshot record in the specified namespace.
func WaitForClonePhases ¶
func WaitForClonePhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, cloneToWait backupdriverv1.CloneFromSnapshot, waitForPhases []backupdriverv1.ClonePhase, namespace string, logger logrus.FieldLogger) (*backupdriverv1.CloneFromSnapshot, error)
func WaitForDeleteSnapshotPhases ¶
func WaitForDeleteSnapshotPhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, deleteSnapshotToWait backupdriverv1.DeleteSnapshot, waitForPhases []backupdriverv1.DeleteSnapshotPhase, namespace string, logger logrus.FieldLogger) (*backupdriverv1.DeleteSnapshot, error)
func WaitForPhases ¶
func WaitForPhases(ctx context.Context, clientSet *v1.BackupdriverV1alpha1Client, snapshotToWait backupdriverv1.Snapshot, waitForPhases []backupdriverv1.SnapshotPhase, namespace string, logger logrus.FieldLogger) (*backupdriverv1.Snapshot, error)
Types ¶
type BackupRepository ¶
type BackupRepository struct {
// contains filtered or unexported fields
}
func NewBackupRepository ¶
func NewBackupRepository(backupRepositoryName string) *BackupRepository
Click to show internal directories.
Click to hide internal directories.