Documentation ¶
Index ¶
- Constants
- Variables
- type ClientSet
- func (c *ClientSet) CreateBackup(ns string) (string, v1.BackupPhase, error)
- func (c *ClientSet) CreateRestore(ns, targetedNs, backup string) (v1.RestorePhase, error)
- func (c *ClientSet) CreateRestoreFromSchedule(ns, targetedNs, schedule string, n int) (v1.RestorePhase, error)
- func (c *ClientSet) CreateSchedule(ns, period string, count int) (string, v1.BackupPhase, error)
- func (c *ClientSet) DeleteSchedule(schedule string) error
- func (c *ClientSet) DumpBackupLogs(backupName string) error
- func (c *ClientSet) DumpLogs()
- func (c *ClientSet) GetRestoredSnapshotFromSchedule(scheduleName string) (map[string]v1.RestorePhase, error)
- func (c *ClientSet) GetScheduledBackups(schedule string) ([]string, error)
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 ¶
ClientSet interface for Velero API
func (*ClientSet) CreateBackup ¶
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 ¶
CreateSchedule create scheduled backup for given namespace and wait till 'count' backup completed
func (*ClientSet) DeleteSchedule ¶
DeleteSchedule delete given schedule
func (*ClientSet) DumpBackupLogs ¶
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
Click to show internal directories.
Click to hide internal directories.