snapshotmgr

package
v1.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 29 Imported by: 3

Documentation

Index

Constants

View Source
const PollLogInterval = time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type DataManagerProtectedEntity added in v1.1.0

type DataManagerProtectedEntity struct {
	astrolabe.ProtectedEntity
	// contains filtered or unexported fields
}

func (DataManagerProtectedEntity) Overwrite added in v1.1.0

func (this DataManagerProtectedEntity) Overwrite(ctx context.Context, sourcePE astrolabe.ProtectedEntity, params map[string]map[string]interface{}, overwriteComponents bool) error

type DataManagerProtectedEntityTypeManager added in v1.1.0

type DataManagerProtectedEntityTypeManager struct {
	astrolabe.ProtectedEntityTypeManager
	// contains filtered or unexported fields
}

func NewDataManagerProtectedEntityTypeManager added in v1.1.0

func NewDataManagerProtectedEntityTypeManager(sourcePETM astrolabe.ProtectedEntityTypeManager,
	snapshotMGR *SnapshotManager, upload bool) DataManagerProtectedEntityTypeManager

Creates a DataManagerProtectedEntityTypeManager that wrappers the sourcePETM (and by extension, the PEs managed by the source PETM). Data Manager currently has upload and download CRs. If upload is set, Copy, CopyFromInfo and Overwrite will generate Upload CRs to the source PETM type. If not set, Download CRs will be generated

func (DataManagerProtectedEntityTypeManager) Copy added in v1.1.0

func (DataManagerProtectedEntityTypeManager) CopyFromInfo added in v1.1.0

func (DataManagerProtectedEntityTypeManager) GetProtectedEntity added in v1.1.0

func (DataManagerProtectedEntityTypeManager) ReloadDmIvdPetm added in v1.1.0

func (this DataManagerProtectedEntityTypeManager) ReloadDmIvdPetm(ctx context.Context, ivdParams map[string]interface{}, logger logrus.FieldLogger) error

type SnapshotManager

type SnapshotManager struct {
	logrus.FieldLogger

	Pem astrolabe.ProtectedEntityManager
	// contains filtered or unexported fields
}

func NewSnapshotManagerFromCluster

func NewSnapshotManagerFromCluster(params map[string]interface{}, config map[string]string, logger logrus.FieldLogger) (*SnapshotManager, error)

TODO - remove in favor of NewSnapshotManagerFromConfig when callers have been converted

func NewSnapshotManagerFromConfig added in v1.1.0

func NewSnapshotManagerFromConfig(configInfo server.ConfigInfo, s3RepoParams map[string]interface{},
	config map[string]string, k8sRestConfig *rest.Config, logger logrus.FieldLogger) (*SnapshotManager, error)

func (*SnapshotManager) CreateSnapshot

func (this *SnapshotManager) CreateSnapshot(peID astrolabe.ProtectedEntityID, tags map[string]string) (astrolabe.ProtectedEntityID, error)

func (*SnapshotManager) CreateSnapshotWithBackupRepository added in v1.1.0

func (this *SnapshotManager) CreateSnapshotWithBackupRepository(peID astrolabe.ProtectedEntityID, tags map[string]string,
	backupRepositoryName string, snapshotRef string, backupName string) (astrolabe.ProtectedEntityID, string, error)

func (*SnapshotManager) CreateVolumeFromSnapshot

func (this *SnapshotManager) CreateVolumeFromSnapshot(sourcePEID astrolabe.ProtectedEntityID, destinationPEID astrolabe.ProtectedEntityID, params map[string]map[string]interface{}) (updatedID astrolabe.ProtectedEntityID, err error)

func (*SnapshotManager) CreateVolumeFromSnapshotWithMetadata added in v1.1.0

func (this *SnapshotManager) CreateVolumeFromSnapshotWithMetadata(peID astrolabe.ProtectedEntityID, metadata []byte,
	snapshotIDStr string, backupRepositoryName string, cloneFromSnapshotNamespace string, cloneFromSnapshotName string) (astrolabe.ProtectedEntityID, error)

func (*SnapshotManager) DeleteLocalSnapshot

func (this *SnapshotManager) DeleteLocalSnapshot(peID astrolabe.ProtectedEntityID) error

func (*SnapshotManager) DeleteRemoteSnapshot

func (this *SnapshotManager) DeleteRemoteSnapshot(peID astrolabe.ProtectedEntityID) error

Will be deleted eventually. Use S3PETM created from backup repository instead of hard coding S3PETM which is initialized when NewSnapshotManagerFromCluster Eventually will use DeleteRemoteSnapshotFromRepo instead of this

func (*SnapshotManager) DeleteRemoteSnapshotFromRepo added in v1.1.0

func (this *SnapshotManager) DeleteRemoteSnapshotFromRepo(peID astrolabe.ProtectedEntityID, backupRepository *backupdriverv1.BackupRepository) error

func (*SnapshotManager) DeleteSnapshot

func (this *SnapshotManager) DeleteSnapshot(peID astrolabe.ProtectedEntityID) error

func (*SnapshotManager) DeleteSnapshotWithBackupRepository added in v1.1.0

func (this *SnapshotManager) DeleteSnapshotWithBackupRepository(peID astrolabe.ProtectedEntityID,
	backupRepository string, deleteSnapshotCRName string) error

func (*SnapshotManager) ReloadSnapshotManagerIvdPetmConfig added in v1.1.0

func (this *SnapshotManager) ReloadSnapshotManagerIvdPetmConfig(ivdParams map[string]interface{}) error

func (*SnapshotManager) UploadSnapshot added in v1.1.0

func (this *SnapshotManager) UploadSnapshot(uploadPE astrolabe.ProtectedEntity, ctx context.Context, backupRepositoryName string,
	snapshotRef string) (*v1api.Upload, error)

Creates an Upload CR

Jump to

Keyboard shortcuts

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