package snap
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/coreos/etcd/snap"
Index ¶
Variables ¶
var ( ErrNoSnapshot = errors.New("snap: no available snapshot") ErrEmptySnapshot = errors.New("snap: empty snapshot") ErrCRCMismatch = errors.New("snap: crc mismatch") )
Functions ¶
func Read ¶
Read reads the snapshot named by snapname and returns the snapshot.
Types ¶
type Snapshotter ¶
type Snapshotter struct {
// contains filtered or unexported fields
}
func New ¶
func New(dir string) *Snapshotter
func (*Snapshotter) Load ¶
func (s *Snapshotter) Load() (*raftpb.Snapshot, error)
func (*Snapshotter) SaveSnap ¶
func (s *Snapshotter) SaveSnap(snapshot raftpb.Snapshot) error
Source Files ¶
metrics.go snapshotter.go
Directories ¶
Path | Synopsis |
---|---|
Godeps/_workspace/src/github.com/coreos/etcd/snap/snappb | Package snappb is a generated protocol buffer package. |
- Version
- v1.2.0-alpha.3
- Published
- Nov 3, 2015
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 4 minutes ago –
Tools for package owners.