restorers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) (runtime.Unstructured, 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

Jump to

Keyboard shortcuts

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