velero

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// VeleroNamespace is velero namespace
	VeleroNamespace = "velero"
)

Variables

View Source
var (
	// Client client for Velero API interface
	Client *ClientSet

	// BackupLocation backup location
	BackupLocation string

	// SnapshotLocation snapshot location
	SnapshotLocation string
)

Functions

This section is empty.

Types

type ClientSet

type ClientSet struct {
	clientset.Interface
}

ClientSet interface for Velero API

func (*ClientSet) CreateBackup

func (c *ClientSet) CreateBackup(ns string) (string, v1.BackupPhase, error)

CreateBackup creates the backup for given namespace

func (*ClientSet) CreateRestore

func (c *ClientSet) CreateRestore(ns, targetedNs, backup string) (v1.RestorePhase, error)

CreateRestore create restore from given backup for ns Namespace to targetedNs

func (*ClientSet) CreateRestoreFromSchedule

func (c *ClientSet) CreateRestoreFromSchedule(ns, targetedNs, schedule string, n int) (v1.RestorePhase, error)

CreateRestoreFromSchedule restore from given schedule's n'th backup for ns Namespace

func (*ClientSet) CreateSchedule

func (c *ClientSet) CreateSchedule(ns, period string, count int) (string, v1.BackupPhase, error)

CreateSchedule create scheduled backup for given namespace and wait till 'count' backup completed

func (*ClientSet) DeleteSchedule

func (c *ClientSet) DeleteSchedule(schedule string) error

DeleteSchedule delete given schedule

func (*ClientSet) DumpBackupLogs

func (c *ClientSet) DumpBackupLogs(backupName string) error

DumpBackupLogs dump logs of given backup on stdout

func (*ClientSet) DumpLogs

func (c *ClientSet) DumpLogs()

DumpLogs dump logs of velero pod on stdout

func (*ClientSet) GetRestoredSnapshotFromSchedule

func (c *ClientSet) GetRestoredSnapshotFromSchedule(scheduleName string) (map[string]v1.RestorePhase, error)

GetRestoredSnapshotFromSchedule list out the snapshot restored from given schedule

func (*ClientSet) GetScheduledBackups

func (c *ClientSet) GetScheduledBackups(schedule string) ([]string, error)

GetScheduledBackups list out the generated backup for given schedule

Jump to

Keyboard shortcuts

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