Documentation
¶
Index ¶
- Constants
- func StolonCtl(clusterName string, storeBackend store.Backend, storeEndpoints string, ...) error
- func WaitClusterDataKeeperInitialized(keeperUID string, e *store.StoreManager, timeout time.Duration) error
- func WaitClusterDataKeepers(keepersUIDs []string, e *store.StoreManager, timeout time.Duration) error
- func WaitClusterDataMaster(master string, e *store.StoreManager, timeout time.Duration) error
- func WaitClusterDataSynchronousStandbys(synchronousStandbys []string, e *store.StoreManager, timeout time.Duration) error
- func WaitClusterDataWithMaster(e *store.StoreManager, timeout time.Duration) (string, error)
- func WaitClusterPhase(e *store.StoreManager, phase cluster.ClusterPhase, timeout time.Duration) error
- func WaitClusterSyncedXLogPos(keepersUIDs []string, e *store.StoreManager, timeout time.Duration) error
- func WaitNumDBs(e *store.StoreManager, n int, timeout time.Duration) error
- func WaitStandbyKeeper(e *store.StoreManager, keeperUID string, timeout time.Duration) error
- type CheckFunc
- type Process
- type TestKeeper
- func (tk *TestKeeper) Exec(query string, args ...interface{}) (sql.Result, error)
- func (tk *TestKeeper) GetPGParameters() (common.Parameters, error)
- func (tk *TestKeeper) GetPGProcess() (*os.Process, error)
- func (tk *TestKeeper) GetPrimaryConninfo() (pg.ConnParams, error)
- func (tk *TestKeeper) PGDataVersion() (int, int, error)
- func (tk *TestKeeper) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (tk *TestKeeper) SignalPG(sig os.Signal) error
- func (tk *TestKeeper) WaitDBDown(timeout time.Duration) error
- func (tk *TestKeeper) WaitDBRole(r common.Role, ptk *TestKeeper, timeout time.Duration) error
- func (tk *TestKeeper) WaitDBUp(timeout time.Duration) error
- type TestProxy
- type TestSentinel
- type TestStore
Constants ¶
View Source
const ( MinPort = 2048 MaxPort = 16384 )
Variables ¶
This section is empty.
Functions ¶
func WaitClusterDataKeeperInitialized ¶ added in v0.5.0
func WaitClusterDataKeepers ¶ added in v0.6.0
func WaitClusterDataMaster ¶ added in v0.5.0
func WaitClusterDataSynchronousStandbys ¶ added in v0.5.0
func WaitClusterDataSynchronousStandbys(synchronousStandbys []string, e *store.StoreManager, timeout time.Duration) error
WaitClusterDataSynchronousStandbys waits for: * synchronous standby defined in masterdb spec * synchronous standby reported from masterdb status
func WaitClusterDataWithMaster ¶ added in v0.5.0
func WaitClusterPhase ¶ added in v0.5.0
func WaitClusterPhase(e *store.StoreManager, phase cluster.ClusterPhase, timeout time.Duration) error
func WaitClusterSyncedXLogPos ¶ added in v0.6.0
func WaitClusterSyncedXLogPos(keepersUIDs []string, e *store.StoreManager, timeout time.Duration) error
WaitClusterSyncedXLogPos waits for all the specified keepers to have the same reported XLogPos
func WaitNumDBs ¶ added in v0.5.0
func WaitStandbyKeeper ¶ added in v0.5.0
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) StartExpect ¶
type TestKeeper ¶
type TestKeeper struct {
Process
// contains filtered or unexported fields
}
func NewTestKeeper ¶
func NewTestKeeperWithID ¶
func (*TestKeeper) Exec ¶
func (tk *TestKeeper) Exec(query string, args ...interface{}) (sql.Result, error)
func (*TestKeeper) GetPGParameters ¶ added in v0.5.0
func (tk *TestKeeper) GetPGParameters() (common.Parameters, error)
func (*TestKeeper) GetPGProcess ¶
func (tk *TestKeeper) GetPGProcess() (*os.Process, error)
func (*TestKeeper) GetPrimaryConninfo ¶ added in v0.6.0
func (tk *TestKeeper) GetPrimaryConninfo() (pg.ConnParams, error)
func (*TestKeeper) PGDataVersion ¶ added in v0.6.0
func (tk *TestKeeper) PGDataVersion() (int, int, error)
func (*TestKeeper) Query ¶
func (tk *TestKeeper) Query(query string, args ...interface{}) (*sql.Rows, error)
func (*TestKeeper) WaitDBDown ¶
func (tk *TestKeeper) WaitDBDown(timeout time.Duration) error
func (*TestKeeper) WaitDBRole ¶ added in v0.6.0
func (tk *TestKeeper) WaitDBRole(r common.Role, ptk *TestKeeper, timeout time.Duration) error
type TestProxy ¶
type TestProxy struct {
Process
// contains filtered or unexported fields
}
func NewTestProxy ¶
type TestSentinel ¶
type TestSentinel struct {
Process
// contains filtered or unexported fields
}
type TestStore ¶ added in v0.3.0
type TestStore struct {
Process
// contains filtered or unexported fields
}
func NewTestConsul ¶ added in v0.3.0
func NewTestStore ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.