Documentation
¶
Index ¶
- Variables
- func Decompress(r io.Reader, c pbm.CompressionType) (io.ReadCloser, error)
- type Oplog
- type Restore
- func (r *Restore) Close()
- func (r *Restore) Done() error
- func (r *Restore) MarkFailed(e error) error
- func (r *Restore) PITR(cmd pbm.PITRestoreCmd, opid pbm.OPID, l *log.Event) (err error)
- func (r *Restore) PrepareBackup(backupName string) (err error)
- func (r *Restore) PreparePITR(ts int64, bcp string) (err error)
- func (r *Restore) RestoreChunks() error
- func (r *Restore) RunSnapshot() (err error)
- func (r *Restore) Snapshot(cmd pbm.RestoreCmd, opid pbm.OPID, l *log.Event) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDatForShard = errors.New("no data for shard")
Functions ¶
func Decompress ¶ added in v1.2.0
func Decompress(r io.Reader, c pbm.CompressionType) (io.ReadCloser, error)
Decompress wraps given reader by the decompressing io.ReadCloser
Types ¶
type Oplog ¶
type Oplog struct {
// contains filtered or unexported fields
}
Oplog is the oplog applyer
func (*Oplog) SetEdge ¶ added in v1.3.0
SetEdge sets the edge time for the replayed operations E.g. all operation that happened afterthe given timestamp going to be discarded
func (*Oplog) SetEdgeUnix ¶ added in v1.3.0
SetEdgeUnix sets the edge time for the replayed operations E.g. all operation that happened afterthe given timestamp going to be discarded
type Restore ¶ added in v1.1.2
type Restore struct {
// contains filtered or unexported fields
}
func (*Restore) Close ¶ added in v1.3.0
func (r *Restore) Close()
Close releases object resources. Should be run to avoid leaks.
func (*Restore) Done ¶ added in v1.3.0
Done waits for the replicas to finish the job and marks restore as done
func (*Restore) MarkFailed ¶ added in v1.1.2
MarkFailed sets the restore and rs state as failed with the given message
func (*Restore) PrepareBackup ¶ added in v1.3.0
func (*Restore) PreparePITR ¶ added in v1.3.0
func (*Restore) RestoreChunks ¶ added in v1.3.0
RestoreChunks replays PITR oplog chunks
func (*Restore) RunSnapshot ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.