Documentation ¶
Index ¶
- func ClockSkew(rsName, ts, dockerHost string) error
- type Counter
- type Ctl
- func (c *Ctl) ApplyConfig(file string) error
- func (c *Ctl) Backup() (string, error)
- func (c *Ctl) CheckBackup(bcpName string, waitFor time.Duration) error
- func (c *Ctl) CheckPITRestore(t time.Time, waitFor time.Duration) error
- func (c *Ctl) CheckRestore(bcpName string, waitFor time.Duration) error
- func (c *Ctl) ContainerLogs() (string, error)
- func (c *Ctl) List() (*ListOut, error)
- func (c *Ctl) PITRestore(t time.Time) error
- func (c *Ctl) PITRoff() error
- func (c *Ctl) PITRon() error
- func (c *Ctl) Restore(bcpName string) error
- func (c *Ctl) RunCmd(cmds ...string) (string, error)
- type Docker
- func (d *Docker) PauseAgents(rsName string) error
- func (d *Docker) RestartAgents(rsName string) error
- func (d *Docker) RunCmd(containerID string, wait time.Duration, cmd ...string) (string, error)
- func (d *Docker) RunOnReplSet(rsName string, wait time.Duration, cmd ...string) error
- func (d *Docker) StartAgents(rsName string) error
- func (d *Docker) StopAgents(rsName string) error
- func (d *Docker) UnpauseAgents(rsName string) error
- type ListOut
- type Mongo
- func (m *Mongo) Conn() *mongo.Client
- func (m *Mongo) Count(col string) (int64, error)
- func (m *Mongo) CreateTS(name string) error
- func (m *Mongo) DBhashes() (map[string]string, error)
- func (m *Mongo) Drop(col string) error
- func (m *Mongo) GenBallast(ln int64) error
- func (m *Mongo) GenData(db, collection string, start, ln int64) error
- func (m *Mongo) GetCounters() ([]Counter, error)
- func (m *Mongo) GetLastWrite() (primitive.Timestamp, error)
- func (m *Mongo) GetNodeInfo() (*pbm.NodeInfo, error)
- func (m *Mongo) InsertTS(col string) error
- func (m *Mongo) ResetBallast() (int, error)
- func (m *Mongo) ResetCounters() (int, error)
- func (m *Mongo) ServerVersion() (string, error)
- func (m *Mongo) SetBallast(size int64) (int64, error)
- func (m *Mongo) WriteCounter(i int) (*Counter, error)
- type MongoPBM
- func (m *MongoPBM) BackupsList(limit int64) ([]pbm.BackupMeta, error)
- func (m *MongoPBM) Conn() *mongo.Client
- func (m *MongoPBM) DeleteBackup(bcpName string) error
- func (m *MongoPBM) GetBackupMeta(bcpName string) (*pbm.BackupMeta, error)
- func (m *MongoPBM) SendCmd(cmd pbm.Cmd) error
- func (m *MongoPBM) Storage() (storage.Storage, error)
- func (m *MongoPBM) StoreResync() error
- func (m *MongoPBM) WaitConcurentOp(lock *pbm.LockHeader, waitFor time.Duration) error
- func (m *MongoPBM) WaitOp(lock *pbm.LockHeader, waitFor time.Duration) error
- type PitrRange
- type SnapshotStat
- type TestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ctl ¶
type Ctl struct {
// contains filtered or unexported fields
}
func (*Ctl) ApplyConfig ¶
func (*Ctl) CheckPITRestore ¶ added in v1.3.2
func (*Ctl) CheckRestore ¶ added in v1.1.2
func (*Ctl) ContainerLogs ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) PauseAgents ¶ added in v1.5.0
PauseAgents pause agent containers of the given replicaset
func (*Docker) RestartAgents ¶
RestartAgents restarts agent containers of the given replicaset
func (*Docker) RunOnReplSet ¶
func (*Docker) StartAgents ¶
StartAgents starts stopped agent containers of the given replicaset
func (*Docker) StopAgents ¶
StopAgents stops agent containers of the given replicaset
func (*Docker) UnpauseAgents ¶ added in v1.5.0
UnpauseAgents unpause agent containers of the given replicaset
type ListOut ¶ added in v1.6.0
type ListOut struct { Snapshots []SnapshotStat `json:"snapshots"` PITR struct { On bool `json:"on"` Ranges []PitrRange `json:"ranges"` RsRanges map[string][]PitrRange `json:"rsRanges,omitempty"` } `json:"pitr"` }
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) GenBallast ¶
func (*Mongo) GetCounters ¶
func (*Mongo) ResetBallast ¶
func (*Mongo) ResetCounters ¶
func (*Mongo) ServerVersion ¶
func (*Mongo) SetBallast ¶ added in v1.5.0
SetBallast sets ballast documents amount to be equal to given `size` it removes execive documents or creates new if needed
type MongoPBM ¶
type MongoPBM struct {
// contains filtered or unexported fields
}
func (*MongoPBM) BackupsList ¶ added in v1.2.0
func (m *MongoPBM) BackupsList(limit int64) ([]pbm.BackupMeta, error)
func (*MongoPBM) DeleteBackup ¶ added in v1.6.0
func (*MongoPBM) GetBackupMeta ¶
func (m *MongoPBM) GetBackupMeta(bcpName string) (*pbm.BackupMeta, error)
func (*MongoPBM) StoreResync ¶ added in v1.1.2
func (*MongoPBM) WaitConcurentOp ¶ added in v1.4.0
WaitConcurentOp waits up to waitFor duration until operations which acquires a given lock are finished
type SnapshotStat ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.