Documentation ¶
Index ¶
- func CheckKotsadmVeleroAccess() (requiresAccess bool, veleroNamespace string, 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 CreateApplicationBackup ¶
func CreateInstanceBackup ¶
func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstream, isScheduled bool) (*velerov1.Backup, error)
func DeleteBackup ¶
func DeleteRestore ¶
func DetectVeleroNamespace ¶
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 ¶
func FindBackupStoreLocation() (*velerov1.BackupStorageLocation, error)
func GetBackupDetail ¶
func GetGlobalStore ¶
func GetGlobalStore(kotsadmVeleroBackendStorageLocation *velerov1.BackupStorageLocation) (*types.Store, error)
GetGlobalStore will return the global store from kotsadmVeleroBackupStorageLocation or will find it, is the param is nil
func GetRestoreDetails ¶
func ListInstanceBackups ¶
func ResetResticRepositories ¶
func ResetResticRepositories() error
func UpdateGlobalStore ¶
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 ¶
Types ¶
type VeleroStatus ¶
type VeleroStatus struct { Version string Plugins []string Status string ResticVersion string ResticStatus string }
func DetectVelero ¶
func DetectVelero() (*VeleroStatus, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.