Documentation ¶
Index ¶
- Variables
- func Compress(w io.Writer, compression pbm.CompressionType) io.WriteCloser
- func NodeSuits(node *pbm.Node, inf *pbm.NodeInfo) (bool, error)
- func Upload(ctx context.Context, src Source, dst storage.Storage, ...) (int64, error)
- type Backup
- type ErrInsuffRange
- type NopCloser
- type Oplog
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("backup canceled")
ErrCancelled means backup was canceled
Functions ¶
func Compress ¶
func Compress(w io.Writer, compression pbm.CompressionType) io.WriteCloser
Compress makes a compressed writer from the given one
Types ¶
type ErrInsuffRange ¶
type ErrInsuffRange struct {
// contains filtered or unexported fields
}
func (ErrInsuffRange) Error ¶
func (e ErrInsuffRange) Error() string
type Oplog ¶
type Oplog struct {
// contains filtered or unexported fields
}
Oplog is used for reading the Mongodb oplog
func (*Oplog) LastWrite ¶
LastWrite returns a timestamp of the last write operation readable by majority reads
func (*Oplog) SetTailingSpan ¶
SetTailingSpan sets oplog tailing window
func (*Oplog) WriteTo ¶
WriteTo writes an oplog slice between start and end timestamps into the given io.Writer
To be sure we have read ALL records up to the specified cluster time. Specifically, to be sure that no operations from the past gonna came after we finished the slicing, we have to tail until some record with ts > endTS. And it might be a noop.
Click to show internal directories.
Click to hide internal directories.