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) (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 ¶
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 ¶
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 ¶
SetEdgeUnix sets the edge time for the replayed operations E.g. all operation that happened afterthe given timestamp going to be discarded
type Restore ¶
type Restore struct {
// contains filtered or unexported fields
}
func (*Restore) Close ¶
func (r *Restore) Close()
Close releases object resources. Should be run to avoid leaks.
func (*Restore) MarkFailed ¶
MarkFailed sets the restore and rs state as failed with the given message
func (*Restore) PrepareBackup ¶
func (*Restore) PreparePITR ¶
func (*Restore) RestoreChunks ¶
RestoreChunks replays PITR oplog chunks
func (*Restore) RunSnapshot ¶
Click to show internal directories.
Click to hide internal directories.