restore

package
v0.9.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RestoreModelInitContainer = "init-container"
	RestoreModelJob           = "job"
)

Variables

This section is empty.

Functions

func HandleRestoreFailure

func HandleRestoreFailure(opt *Options, restoreErr error) error

func Restore

func Restore(opt *Options) error

Types

type Options

type Options struct {
	MasterURL          string
	KubeconfigPath     string
	Namespace          string
	RestoreSessionName string
	BackoffMaxWait     time.Duration

	SetupOpt restic.SetupOptions
	Metrics  restic.MetricsOptions

	KubeClient   kubernetes.Interface
	StashClient  cs.Interface
	RestoreModel string
}

Jump to

Keyboard shortcuts

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