Documentation ¶
Index ¶
- Constants
- func ApplyCRDs(ctx context.Context, veleroCLI string) ([]string, error)
- func BackupRepositoriesCountShouldBe(ctx context.Context, veleroNamespace, targetNamespace string, ...) error
- func CheckBackupWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, backupName string, ...) error
- func CheckScheduleWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, scheduleName string, ...) error
- func CheckVeleroVersion(ctx context.Context, veleroCLI string, expectedVer string) error
- func DeleteAllBackups(ctx context.Context, client TestClient) error
- func DeleteBackupResource(ctx context.Context, veleroCLI string, backupName string) error
- func DeleteBackups(ctx context.Context, client TestClient, backupNames []string) error
- func DeleteBslResource(ctx context.Context, veleroCLI string, bslName string) error
- func DeleteRestores(ctx context.Context, client TestClient) error
- func GetAllBackups(ctx context.Context, veleroCLI string) ([]string, error)
- func GetBackup(ctx context.Context, veleroCLI string, backupName string) (string, string, error)
- func GetBackupTTL(ctx context.Context, veleroNamespace, backupName string) (string, error)
- func GetBackupsCreationTime(ctx context.Context, veleroCLI, bslName string) ([]string, error)
- func GetBackupsFromBsl(ctx context.Context, veleroCLI, bslName string) ([]string, error)
- func GetLatestSuccessBackupsFromBSL(ctx context.Context, veleroCLI, bslName string) (string, error)
- func GetPVB(ctx context.Context, veleroNamespace, namespace string) ([]string, error)
- func GetPVR(ctx context.Context, veleroNamespace, namespace string) ([]string, error)
- func GetResticRepositories(ctx context.Context, veleroNamespace, targetNamespace string) ([]string, error)
- func GetSchedule(ctx context.Context, veleroNamespace, scheduleName string) (string, error)
- func GetScheduledBackupsCreationTime(ctx context.Context, veleroCLI, bslName, scheduleName string) ([]string, error)
- func GetSnapshotCheckPoint(client TestClient, VeleroCfg VeleroConfig, expectCount int, ...) (SnapshotCheckPoint, error)
- func GetVeleroPodName(ctx context.Context) ([]string, error)
- func GetVeleroResource(ctx context.Context, veleroNamespace, namespace, resourceName string) ([]string, error)
- func GetVeleroVersion(ctx context.Context, veleroCLI string, clientOnly bool) (string, error)
- func GetVersionList(veleroCli, veleroVersion string) []VeleroCLI2Version
- func GetVsphereSnapshotIDs(ctx context.Context, timeout time.Duration, namespace string, ...) ([]string, error)
- func InstallTestStorageClasses(path string) error
- func InstallVeleroCLI(version string) (string, error)
- func IsBackupExist(ctx context.Context, veleroCLI string, backupName string) (bool, error)
- func IsSupportUploaderType(version string) (bool, error)
- func IsVeleroReady(ctx context.Context, namespace string, useNodeAgent bool) (bool, error)
- func ListVeleroPods(ctx context.Context, veleroNamespace string) ([]string, error)
- func PrepareVelero(ctx context.Context, caseName string) error
- func RunDebug(ctx context.Context, veleroCLI, veleroNamespace, backup, restore string)
- func SnapshotCRsCountShouldBe(ctx context.Context, namespace, backupName string, expectedCount int) error
- func UpdateNodeAgent(ctx context.Context, veleroCfg VeleroConfig, dsjson string) ([]string, error)
- func UpdateVeleroDeployment(ctx context.Context, veleroCfg VeleroConfig) ([]string, error)
- func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, ...) error
- func VeleroBackupDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupExcludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupExec(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupIncludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupNamespace(ctx context.Context, veleroCLI, veleroNamespace string, backupCfg BackupConfig) error
- func VeleroCmdExec(ctx context.Context, veleroCLI string, args []string) error
- func VeleroCreateBackupLocation(ctx context.Context, ...) error
- func VeleroInstall(ctx context.Context, veleroCfg *VeleroConfig, isStandbyCluster bool) error
- func VeleroRestore(ctx context.Context, ...) error
- func VeleroRestoreDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, ...) error
- func VeleroScheduleCreate(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroScheduleDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroSchedulePause(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroScheduleUnpause(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroUninstall(ctx context.Context, cli, namespace string) error
- func VeleroUpgrade(ctx context.Context, veleroCfg VeleroConfig) error
- func VeleroVersion(ctx context.Context, veleroCLI, veleroNamespace string) error
- func WaitBackupDeleted(ctx context.Context, veleroCLI string, backupName string, ...) error
- func WaitForBackupToBeCreated(ctx context.Context, veleroCLI string, backupName string, ...) error
- func WaitForBackupToBeDeleted(ctx context.Context, veleroCLI string, backupName string, ...) error
- func WaitForBackupsToBeDeleted(ctx context.Context, veleroCLI string, backups []string, timeout time.Duration) error
- func WaitForExpectedStateOfBackup(ctx context.Context, veleroCLI string, backupName string, ...) error
- func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string, expectCount int) error
Constants ¶
View Source
const ( KubeSystemNamespace = "kube-system" VSphereCSIControllerNamespace = "vmware-system-csi" )
View Source
const BackupObjectsPrefix = "backups"
View Source
const PluginsObjectsPrefix = "plugins"
View Source
const RestoreObjectsPrefix = "restores"
Variables ¶
This section is empty.
Functions ¶
func CheckVeleroVersion ¶
func DeleteAllBackups ¶
func DeleteBackupResource ¶
func DeleteBackups ¶
func DeleteBslResource ¶
func DeleteRestores ¶
func GetBackupTTL ¶
func GetBackupsCreationTime ¶
func GetBackupsFromBsl ¶
func GetResticRepositories ¶
func GetSchedule ¶
func GetSnapshotCheckPoint ¶
func GetVeleroResource ¶
func GetVeleroVersion ¶
func GetVersionList ¶
func GetVersionList(veleroCli, veleroVersion string) []VeleroCLI2Version
func GetVsphereSnapshotIDs ¶
func InstallVeleroCLI ¶
func IsBackupExist ¶
func IsSupportUploaderType ¶
func IsVeleroReady ¶
func ListVeleroPods ¶
func UpdateNodeAgent ¶
func UpdateVeleroDeployment ¶
func VeleroAddPluginsForProvider ¶
func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, plugin 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 VeleroBackupDelete ¶
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 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 VeleroBackupNamespace ¶
func VeleroBackupNamespace(ctx context.Context, veleroCLI, veleroNamespace string, backupCfg BackupConfig) error
VeleroBackupNamespace uses the veleroCLI to backup a namespace.
func VeleroInstall ¶
func VeleroRestore ¶
func VeleroRestore(ctx context.Context, veleroCLI, veleroNamespace, restoreName, backupName, includeResources string) error
VeleroRestore uses the VeleroCLI to restore from a Velero backup.
func VeleroRestoreDelete ¶
func VeleroRestoreExec ¶
func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, args []string, phaseExpect velerov1api.RestorePhase) error
func VeleroScheduleCreate ¶
func VeleroScheduleDelete ¶
func VeleroSchedulePause ¶
func VeleroScheduleUnpause ¶
func VeleroUpgrade ¶
func VeleroVersion ¶
func WaitBackupDeleted ¶
func WaitForVSphereUploadCompletion ¶
func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string, expectCount int) error
WaitForVSphereUploadCompletion waits for uploads started by the Velero Plugin for vSphere to complete TODO - remove after upload progress monitoring is implemented
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.