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) 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) 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
- type Mongo
- func (m *Mongo) Conn() *mongo.Client
- func (m *Mongo) DBhashes() (map[string]string, error)
- func (m *Mongo) GenBallast(ln int) error
- func (m *Mongo) GenData(db, collection string, ln int) error
- func (m *Mongo) GetCounters() ([]Counter, error)
- func (m *Mongo) GetLastWrite() (primitive.Timestamp, error)
- func (m *Mongo) GetNodeInfo() (*pbm.NodeInfo, error)
- func (m *Mongo) ResetBallast() (int, error)
- func (m *Mongo) ResetCounters() (int, error)
- func (m *Mongo) ServerVersion() (string, 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) GetBackupMeta(bcpName string) (*pbm.BackupMeta, 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 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 ¶
func (*Ctl) ContainerLogs ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
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
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 ¶
type MongoPBM ¶
type MongoPBM struct {
// contains filtered or unexported fields
}
func (*MongoPBM) BackupsList ¶
func (m *MongoPBM) BackupsList(limit int64) ([]pbm.BackupMeta, error)
func (*MongoPBM) GetBackupMeta ¶
func (m *MongoPBM) GetBackupMeta(bcpName string) (*pbm.BackupMeta, error)
func (*MongoPBM) StoreResync ¶
func (*MongoPBM) WaitConcurentOp ¶
WaitConcurentOp waits up to waitFor duration until operations which acquires a given lock are finished
Click to show internal directories.
Click to hide internal directories.