snapshot

package
v1.33.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKotsadmVeleroAccess added in v1.31.0

func CheckKotsadmVeleroAccess() (requiresAccess bool, finalErr error)

func CreateApplicationBackup

func CreateApplicationBackup(ctx context.Context, a *apptypes.App, isScheduled bool) (*velerov1.Backup, error)

func CreateApplicationRestore

func CreateApplicationRestore(snapshotName string, appSlug string) error

func CreateInstanceBackup

func CreateInstanceBackup(ctx context.Context, cluster *downstreamtypes.Downstream, isScheduled bool) (*velerov1.Backup, error)

func DeleteBackup

func DeleteBackup(snapshotName string) error

func DeleteRestore

func DeleteRestore(snapshotName string) error

func DetectVeleroNamespace added in v1.31.0

func DetectVeleroNamespace() (string, error)

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 FormatTTL

func FormatTTL(quantity string, unit string) (string, error)

func GetBackup

func GetBackup(snapshotName string) (*velerov1.Backup, error)

func GetBackupDetail

func GetBackupDetail(ctx context.Context, backupName string) (*types.BackupDetail, error)

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 GetRestore

func GetRestore(snapshotName string) (*velerov1.Restore, error)

func GetRestoreDetails

func GetRestoreDetails(ctx context.Context, restoreName string) (*types.RestoreDetail, error)

func HasUnfinishedApplicationBackup

func HasUnfinishedApplicationBackup(appID string) (bool, error)

func HasUnfinishedInstanceBackup

func HasUnfinishedInstanceBackup() (bool, error)

func ListBackupsForApp

func ListBackupsForApp(appID string) ([]*types.Backup, error)

func ListInstanceBackups

func ListInstanceBackups() ([]*types.Backup, error)

func ParseTTL

func ParseTTL(s string) (*snapshottypes.ParsedTTL, error)

func Redact added in v1.31.0

func Redact(store *types.Store) error

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

func ValidateStore(store *types.Store) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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