restorer

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0, MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestoreOptions

type RestoreOptions struct {
	ClusterURLs            types.URLsMap
	ClusterToken           string
	RestoreDataDir         string
	PeerURLs               types.URLs
	SkipHashCheck          bool
	Name                   string
	MaxFetchers            int
	EmbeddedEtcdQuotaBytes int64
	// Base full snapshot + delta snapshots to restore from
	BaseSnapshot  snapstore.Snapshot
	DeltaSnapList snapstore.SnapList
}

RestoreOptions hold all snapshot restore related fields

type Restorer

type Restorer struct {
	// contains filtered or unexported fields
}

Restorer is a struct for etcd data directory restorer

func NewRestorer

func NewRestorer(store snapstore.SnapStore, logger *logrus.Logger) *Restorer

NewRestorer returns the restorer object.

func (*Restorer) Restore

func (r *Restorer) Restore(ro RestoreOptions) error

Restore restore the etcd data directory as per specified restore options.

Jump to

Keyboard shortcuts

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