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 ¶
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.
Click to show internal directories.
Click to hide internal directories.