velero

package
v1.8.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackupObjectsPrefix = "backups"
)

Variables

This section is empty.

Functions

func CheckVeleroVersion

func CheckVeleroVersion(ctx context.Context, veleroCLI string, expectedVer string) error

func DeleteBackupResource

func DeleteBackupResource(ctx context.Context, veleroCLI string, backupName string) error

func InstallVeleroCLI

func InstallVeleroCLI(version string) (string, error)

func RunDebug

func RunDebug(ctx context.Context, veleroCLI, veleroNamespace, backup, restore string)

func VeleroAddPluginsForProvider

func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, addPlugins string) error

VeleroAddPluginsForProvider determines which plugins need to be installed for a provider and installs them in the current Velero installation, skipping over those that are already installed.

func VeleroBackupExcludeNamespaces

func VeleroBackupExcludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, excludeNamespaces []string) error

VeleroBackupExcludeNamespaces uses the veleroCLI to backup a namespace.

func VeleroBackupExec

func VeleroBackupExec(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, args []string) error

func VeleroBackupIncludeNamespaces

func VeleroBackupIncludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, includeNamespaces []string) error

VeleroBackupIncludeNamespaces uses the veleroCLI to backup a namespace.

func VeleroBackupLogs

func VeleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string) error

func VeleroBackupNamespace

func VeleroBackupNamespace(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, namespace string, backupLocation string,
	useVolumeSnapshots bool) error

VeleroBackupNamespace uses the veleroCLI to backup a namespace.

func VeleroCmdExec

func VeleroCmdExec(ctx context.Context, veleroCLI string, args []string) error

func VeleroCreateBackupLocation

func VeleroCreateBackupLocation(ctx context.Context,
	veleroCLI,
	veleroNamespace,
	name,
	objectStoreProvider,
	bucket,
	prefix,
	config,
	secretName,
	secretKey string,
) error

func VeleroInstall

func VeleroInstall(ctx context.Context, veleroCfg *VerleroConfig, features string, useVolumeSnapshots bool) error

func VeleroRestore

func VeleroRestore(ctx context.Context, veleroCLI string, veleroNamespace string, restoreName string, backupName string) error

VeleroRestore uses the VeleroCLI to restore from a Velero backup.

func VeleroRestoreExec

func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, args []string) error

func VeleroUninstall

func VeleroUninstall(ctx context.Context, cli, namespace string) error

func WaitForVSphereUploadCompletion

func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string) error

WaitForVSphereUploadCompletion waits for uploads started by the Velero Plug-in for vSphere to complete TODO - remove after upload progress monitoring is implemented

Types

This section is empty.

Jump to

Keyboard shortcuts

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