velero

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrReasonRestoreFailed = "BACKUP_RESTORE_FAILED"
)

Variables

This section is empty.

Functions

func WaitingForRestoreToFinish

func WaitingForRestoreToFinish(restoresSvc *ark.RestoresService, restoresSyncSvc *sync.RestoresSyncService, cluster api.Cluster, restore *api.Restore, logger logrus.FieldLogger, waitTimeout time.Duration) error

WaitingForRestoreToFinish waits until restoration process finishes

Types

type ClusterManager

type ClusterManager interface {
	GetClusterByIDOnly(ctx context.Context, clusterID uint) (cluster.CommonCluster, error)
}

ClusterManager interface to access clusters.

type HelmService

type HelmService interface {
	InstallDeployment(
		ctx context.Context,
		clusterID uint,
		namespace string,
		chartName string,
		releaseName string,
		values []byte,
		chartVersion string,
		wait bool,
	) error

	DeleteDeployment(ctx context.Context, clusterID uint, releaseName, namespace string) error
}

type RestoreBackupActivity

type RestoreBackupActivity struct {
	// contains filtered or unexported fields
}

func NewRestoreBackupActivity

func NewRestoreBackupActivity(manager ClusterManager, helmService HelmService, db *gorm.DB, disasterRecoveryConfig cmd.ClusterDisasterRecoveryConfig) *RestoreBackupActivity

func (RestoreBackupActivity) Execute

type RestoreBackupActivityInput

type RestoreBackupActivityInput struct {
	ClusterID           uint
	RestoreBackupParams pkgCluster.RestoreFromBackupParams
}

Jump to

Keyboard shortcuts

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