snapshotUtils

package
v1.4.2-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL