Documentation ¶
Index ¶
- func CheckKotsadmVeleroAccess() (requiresAccess bool, finalErr error)
- func CreateApplicationBackup(ctx context.Context, a *apptypes.App, isScheduled bool) (*velerov1.Backup, error)
- func CreateApplicationRestore(snapshotName string, appSlug string) error
- func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstream, isScheduled bool) (*velerov1.Backup, error)
- func DeleteBackup(snapshotName string) error
- func DeleteRestore(snapshotName string) error
- func DetectVeleroNamespace() (string, error)
- func DownloadRequest(veleroNamespace string, kind velerov1.DownloadTargetKind, name string) (io.ReadCloser, error)
- func DownloadRestoreResults(veleroNamespace, restoreName string) ([]types.SnapshotError, []types.SnapshotError, error)
- func FindBackupStoreLocation() (*velerov1.BackupStorageLocation, error)
- func FormatTTL(quantity string, unit string) (string, error)
- func GetBackup(snapshotName string) (*velerov1.Backup, error)
- func GetBackupDetail(ctx context.Context, backupName string) (*types.BackupDetail, error)
- func GetGlobalStore(kotsadmVeleroBackendStorageLocation *velerov1.BackupStorageLocation) (*types.Store, error)
- func GetRestore(snapshotName string) (*velerov1.Restore, error)
- func GetRestoreDetails(ctx context.Context, restoreName string) (*types.RestoreDetail, error)
- func HasUnfinishedApplicationBackup(appID string) (bool, error)
- func HasUnfinishedInstanceBackup() (bool, error)
- func ListBackupsForApp(appID string) ([]*types.Backup, error)
- func ListInstanceBackups() ([]*types.Backup, error)
- func ParseTTL(s string) (*snapshottypes.ParsedTTL, error)
- func Redact(store *types.Store) error
- func ResetResticRepositories() error
- func RestartVelero() error
- func UpdateGlobalStore(store *types.Store) (*velerov1.BackupStorageLocation, error)
- func ValidateStore(store *types.Store) error
- type VeleroStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckKotsadmVeleroAccess ¶ added in v1.31.0
func CreateApplicationBackup ¶
func CreateInstanceBackup ¶
func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstream, isScheduled bool) (*velerov1.Backup, error)
func DeleteBackup ¶
func DeleteRestore ¶
func DetectVeleroNamespace ¶ added in v1.31.0
func DownloadRequest ¶
func DownloadRequest(veleroNamespace string, kind velerov1.DownloadTargetKind, name string) (io.ReadCloser, error)
func DownloadRestoreResults ¶
func DownloadRestoreResults(veleroNamespace, restoreName string) ([]types.SnapshotError, []types.SnapshotError, error)
func FindBackupStoreLocation ¶ added in v1.31.0
func FindBackupStoreLocation() (*velerov1.BackupStorageLocation, error)
func GetBackupDetail ¶
func GetGlobalStore ¶ added in v1.31.0
func GetGlobalStore(kotsadmVeleroBackendStorageLocation *velerov1.BackupStorageLocation) (*types.Store, error)
GetGlobalStore will return the global store from kotsadmVeleroBackupStorageLocation or will find it, if the param is nil
func GetRestoreDetails ¶
func ListInstanceBackups ¶
func ResetResticRepositories ¶ added in v1.31.0
func ResetResticRepositories() error
func RestartVelero ¶ added in v1.31.0
func RestartVelero() error
RestartVelero will restart velero (and restic)
func UpdateGlobalStore ¶ added in v1.31.0
func UpdateGlobalStore(store *types.Store) (*velerov1.BackupStorageLocation, error)
UpdateGlobalStore will update the in-cluster storage with exactly what's in the store param
func ValidateStore ¶ added in v1.31.0
Types ¶
type VeleroStatus ¶ added in v1.31.0
type VeleroStatus struct { Version string Plugins []string Status string Namespace string ResticVersion string ResticStatus string }
func DetectVelero ¶ added in v1.31.0
func DetectVelero() (*VeleroStatus, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.