Documentation ¶
Index ¶
- type ResourceRestorer
- func NewBasicRestorer(saveAnnotations bool) ResourceRestorer
- func NewJobRestorer() ResourceRestorer
- func NewNamespaceRestorer() ResourceRestorer
- func NewPersistentVolumeClaimRestorer() ResourceRestorer
- func NewPersistentVolumeRestorer(snapshotService cloudprovider.SnapshotService) ResourceRestorer
- func NewPodRestorer() ResourceRestorer
- func NewServiceRestorer() ResourceRestorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceRestorer ¶
type ResourceRestorer interface { // Handles returns true if the Restorer should restore this object. Handles(obj runtime.Unstructured, restore *api.Restore) bool // Prepare gets an item ready to be restored. Prepare(obj runtime.Unstructured, restore *api.Restore, backup *api.Backup) (res runtime.Unstructured, warning error, err error) // Wait returns true if restoration should wait for all of this restorer's resources to be ready before moving on to the next restorer. Wait() bool // Ready returns true if the given item is considered ready by the system. Only used if Wait() returns true. Ready(obj runtime.Unstructured) bool }
ResourceRestorer exposes the operations necessary to prepare Kubernetes resources for restore and confirm their readiness following restoration via Ark.
func NewBasicRestorer ¶
func NewBasicRestorer(saveAnnotations bool) ResourceRestorer
func NewJobRestorer ¶
func NewJobRestorer() ResourceRestorer
func NewNamespaceRestorer ¶
func NewNamespaceRestorer() ResourceRestorer
func NewPersistentVolumeClaimRestorer ¶
func NewPersistentVolumeClaimRestorer() ResourceRestorer
func NewPersistentVolumeRestorer ¶
func NewPersistentVolumeRestorer(snapshotService cloudprovider.SnapshotService) ResourceRestorer
func NewPodRestorer ¶
func NewPodRestorer() ResourceRestorer
func NewServiceRestorer ¶
func NewServiceRestorer() ResourceRestorer
Click to show internal directories.
Click to hide internal directories.