snapshot

package
v0.0.0-...-d5808ce Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKotsadmVeleroAccess

func CheckKotsadmVeleroAccess() (requiresAccess bool, veleroNamespace string, 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

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

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

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 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

func Redact(store *types.Store) error

func ResetResticRepositories

func ResetResticRepositories() error

func RestartVelero

func RestartVelero() error

RestartVelero will restart velero (and restic)

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

func ValidateStore(store *types.Store) error

Types

type VeleroStatus

type VeleroStatus struct {
	Version string
	Plugins []string
	Status  string

	ResticVersion string
	ResticStatus  string
}

func DetectVelero

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