errors

package
v0.7.2-beta.18 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrorTypeBackupNotSupported this backup type not supported
	ErrorTypeBackupNotSupported intctrlutil.ErrorType = "BackupNotSupported"
	// ErrorTypeBackupPVTemplateNotFound this pv template not found
	ErrorTypeBackupPVTemplateNotFound intctrlutil.ErrorType = "BackupPVTemplateNotFound"
	// ErrorTypeBackupNotCompleted report backup not completed.
	ErrorTypeBackupNotCompleted intctrlutil.ErrorType = "BackupNotCompleted"
	// ErrorTypeBackupPVCNameIsEmpty pvc name for backup is empty
	ErrorTypeBackupPVCNameIsEmpty intctrlutil.ErrorType = "BackupPVCNameIsEmpty"
	// ErrorTypeBackupRepoIsNotReady the backup repository is not ready
	ErrorTypeBackupRepoIsNotReady intctrlutil.ErrorType = "BackupRepoIsNotReady"
	// ErrorTypeToolConfigSecretNameIsEmpty the name of  repository is not ready
	ErrorTypeToolConfigSecretNameIsEmpty intctrlutil.ErrorType = "ToolConfigSecretNameIsEmpty"
	// ErrorTypeBackupJobFailed backup job failed
	ErrorTypeBackupJobFailed intctrlutil.ErrorType = "BackupJobFailed"
	// ErrorTypeStorageNotMatch storage not match
	ErrorTypeStorageNotMatch intctrlutil.ErrorType = "ErrorTypeStorageNotMatch"
	// ErrorTypeReconfigureFailed reconfigure failed
	ErrorTypeReconfigureFailed intctrlutil.ErrorType = "ErrorTypeReconfigureFailed"
	// ErrorTypeInvalidLogfileBackupName invalid logfile backup name
	ErrorTypeInvalidLogfileBackupName intctrlutil.ErrorType = "InvalidLogfileBackupName"
	// ErrorTypeBackupScheduleDisabled backup schedule disabled
	ErrorTypeBackupScheduleDisabled intctrlutil.ErrorType = "BackupScheduleDisabled"
	// ErrorTypeLogfileScheduleDisabled logfile schedule disabled
	ErrorTypeLogfileScheduleDisabled intctrlutil.ErrorType = "LogfileScheduleDisabled"
	// ErrorTypeWaitForExternalHandler wait for external handler to handle the Backup or Restore
	ErrorTypeWaitForExternalHandler intctrlutil.ErrorType = "WaitForExternalHandler"
)

ErrorType for backup

Variables

This section is empty.

Functions

func NewBackupJobFailed

func NewBackupJobFailed(jobName string) *intctrlutil.Error

NewBackupJobFailed returns a new Error with ErrorTypeBackupJobFailed.

func NewBackupLogfileScheduleDisabled

func NewBackupLogfileScheduleDisabled(backupToolName string) *intctrlutil.Error

NewBackupLogfileScheduleDisabled returns a new Error with ErrorTypeLogfileScheduleDisabled.

func NewBackupNotSupported

func NewBackupNotSupported(backupType, backupPolicyName string) *intctrlutil.Error

NewBackupNotSupported returns a new Error with ErrorTypeBackupNotSupported.

func NewBackupPVCNameIsEmpty

func NewBackupPVCNameIsEmpty(backupRepo, backupPolicyName string) *intctrlutil.Error

NewBackupPVCNameIsEmpty returns a new Error with ErrorTypeBackupPVCNameIsEmpty.

func NewBackupPVTemplateNotFound

func NewBackupPVTemplateNotFound(cmName, cmNamespace string) *intctrlutil.Error

NewBackupPVTemplateNotFound returns a new Error with ErrorTypeBackupPVTemplateNotFound.

func NewBackupRepoIsNotReady

func NewBackupRepoIsNotReady(backupRepo string) *intctrlutil.Error

NewBackupRepoIsNotReady returns a new Error with ErrorTypeBackupRepoIsNotReady.

func NewBackupScheduleDisabled

func NewBackupScheduleDisabled(backupType, backupPolicyName string) *intctrlutil.Error

NewBackupScheduleDisabled returns a new Error with ErrorTypeBackupScheduleDisabled.

func NewInvalidLogfileBackupName

func NewInvalidLogfileBackupName(backupPolicyName string) *intctrlutil.Error

NewInvalidLogfileBackupName returns a new Error with ErrorTypeInvalidLogfileBackupName.

func NewToolConfigSecretNameIsEmpty

func NewToolConfigSecretNameIsEmpty(backupRepo string) *intctrlutil.Error

NewToolConfigSecretNameIsEmpty returns a new Error with ErrorTypeToolConfigSecretNameIsEmpty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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