snapshot

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 23 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 EnsureVeleroNamespaceConfigMap

func EnsureVeleroNamespaceConfigMap(veleroNamespace string, kotsadmNamespace string) error

func EnsureVeleroPermissions

func EnsureVeleroPermissions(veleroNamespace string, 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
	VeleroNamespace       string
}

type VeleroRBACResponse

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

Jump to

Keyboard shortcuts

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