restore

package
v0.9.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Restore

func Restore(opt *Options) (*restic.RestoreOutput, error)

Types

type Options

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

	SetupOpt restic.SetupOptions
	Metrics  restic.MetricsOptions
	Host     string

	KubeClient   kubernetes.Interface
	StashClient  cs.Interface
	RestoreModel string
}

func (*Options) HandleRestoreFailure

func (c *Options) HandleRestoreFailure(restoreErr error) error

func (*Options) HandleRestoreSuccess

func (c *Options) HandleRestoreSuccess(restoreOutput *restic.RestoreOutput) error

Jump to

Keyboard shortcuts

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