snapshot

package
v1.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstanceBackup

func CreateInstanceBackup(options CreateInstanceBackupOptions) error

func DetectVeleroNamespace

func DetectVeleroNamespace() (string, error)

func EnsureVeleroPermissions

func EnsureVeleroPermissions(kotsadmNamespace string) error

func ListInstanceBackups

func ListInstanceBackups(options ListInstanceBackupsOptions) ([]velerov1.Backup, error)

func ListInstanceRestores

func ListInstanceRestores(options ListInstanceRestoresOptions) ([]velerov1.Restore, error)

func RestoreInstanceBackup

func RestoreInstanceBackup(options RestoreInstanceBackupOptions) (*velerov1.Restore, error)

Types

type CreateInstanceBackupOptions

type CreateInstanceBackupOptions struct {
	Namespace             string
	KubernetesConfigFlags *genericclioptions.ConfigFlags
	Wait                  bool
}

type ListInstanceBackupsOptions

type ListInstanceBackupsOptions struct {
	Namespace string
}

type ListInstanceRestoresOptions

type ListInstanceRestoresOptions struct {
	Namespace string
}

type RestoreInstanceBackupOptions

type RestoreInstanceBackupOptions struct {
	BackupName            string
	KubernetesConfigFlags *genericclioptions.ConfigFlags
	WaitForApps           bool
}

type VeleroRBACResponse

type VeleroRBACResponse struct {
	Success                     bool   `json:"success"`
	Error                       string `json:"error,omitempty"`
	KotsadmRequiresVeleroAccess bool   `json:"kotsadmRequiresVeleroAccess,omitempty"`
	VeleroNamespace             string `json:"veleroNamespace,omitempty"`
}

Jump to

Keyboard shortcuts

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