snapshot

package
v1.115.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogParserBufferSize = 1024 * 1024
)

Variables

This section is empty.

Functions

func CreateApplicationBackup

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

func CreateApplicationRestore

func CreateApplicationRestore(ctx context.Context, kotsadmNamespace string, snapshotName string, appSlug string) error

func CreateInstanceBackup

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

func DeleteBackup

func DeleteBackup(ctx context.Context, kotsadmNamespace string, snapshotName string) error

func DeleteRestore

func DeleteRestore(ctx context.Context, kotsadmNamespace string, snapshotName string) error

func DownloadRequest

func DownloadRequest(ctx context.Context, veleroNamespace string, kind velerov1.DownloadTargetKind, name string) (io.ReadCloser, error)

func DownloadRestoreResults

func DownloadRestoreResults(ctx context.Context, veleroNamespace, restoreName string) ([]types.SnapshotError, []types.SnapshotError, error)

func FormatTTL

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

func GetBackup

func GetBackup(ctx context.Context, kotsadmNamespace string, snapshotName string) (*velerov1.Backup, error)

func GetBackupDetail

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

func GetRestore

func GetRestore(ctx context.Context, kotsadmNamespace string, snapshotName string) (*velerov1.Restore, error)

func GetRestoreDetails

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

func HasUnfinishedApplicationBackup

func HasUnfinishedApplicationBackup(ctx context.Context, kotsadmNamespace string, appID string) (bool, error)

func HasUnfinishedInstanceBackup

func HasUnfinishedInstanceBackup(ctx context.Context, kotsadmNamespace string) (bool, error)

func ListBackupsForApp

func ListBackupsForApp(ctx context.Context, kotsadmNamespace string, appID string) ([]*types.Backup, error)

func ListInstanceBackups

func ListInstanceBackups(ctx context.Context, kotsadmNamespace string) ([]*types.Backup, error)

func ParseTTL

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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