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 ¶ added in v1.1.0
func Compress(w io.Writer, compression pbm.CompressionType) io.WriteCloser
Compress makes a compressed writer from the given one
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
type ErrInsuffRange ¶ added in v1.3.2
func (ErrInsuffRange) Error ¶ added in v1.3.2
func (e ErrInsuffRange) Error() string
type Oplog ¶ added in v1.1.0
type Oplog struct {
// contains filtered or unexported fields
}
Oplog is used for reading the Mongodb oplog
func (*Oplog) IsSufficient ¶ added in v1.6.0
IsSufficient check is oplog is sufficient back from the given date
func (*Oplog) LastWrite ¶ added in v1.1.0
LastWrite returns a timestamp of the last write operation readable by majority reads
func (*Oplog) SetTailingSpan ¶ added in v1.2.0
SetTailingSpan sets oplog tailing window
func (*Oplog) WriteTo ¶ added in v1.2.0
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.