Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewVeleroProvider = func(recorder EventRecorder, namespace string) (Provider, error) { return velero.NewDefaultProvider(namespace, recorder) }
Functions ¶
This section is empty.
Types ¶
type EventRecorder ¶
type EventRecorder interface {
record.EventRecorder
}
EventRecorder provides functionality to commit events to kubernetes resources.
type Provider ¶
type Provider interface {
// CreateBackup creates backup according to the backup configuration in v1.Backup.
CreateBackup(ctx context.Context, backup *v1.Backup) error
// DeleteBackup deletes backup from the cluster state and the backup storage.
DeleteBackup(ctx context.Context, backup *v1.Backup) error
// CheckReady validates if the provider is ready to receive backup requests.
CheckReady(ctx context.Context) error
// CreateRestore creates a restore according to the restore configuration in v1.Restore.
CreateRestore(ctx context.Context, restore *v1.Restore) error
// DeleteRestore just deletes the provider restore object.
DeleteRestore(ctx context.Context, restore *v1.Restore) error
}
Provider encapsulates different provider like velero.
Click to show internal directories.
Click to hide internal directories.