integration

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2015 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitClusterViewMaster

func WaitClusterViewMaster(master string, e *etcdm.EtcdManager, timeout time.Duration) error

Types

type CheckFunc

type CheckFunc func(time.Duration) error

type Process

type Process struct {
	// contains filtered or unexported fields
}

func (*Process) Kill

func (p *Process) Kill()

func (*Process) Signal

func (p *Process) Signal(sig os.Signal) error

func (*Process) Start

func (p *Process) Start() error

func (*Process) StartExpect

func (p *Process) StartExpect() error

func (*Process) Stop

func (p *Process) Stop()

func (*Process) Wait

func (p *Process) Wait(timeout time.Duration) error

type TestEtcd

type TestEtcd struct {
	Process
	// contains filtered or unexported fields
}

func NewTestEtcd

func NewTestEtcd(dir string, a ...string) (*TestEtcd, error)

func (*TestEtcd) GetEtcdNode

func (te *TestEtcd) GetEtcdNode(timeout time.Duration, path string) (*etcd.Node, error)

func (*TestEtcd) WaitDown

func (te *TestEtcd) WaitDown(timeout time.Duration) error

func (*TestEtcd) WaitUp

func (te *TestEtcd) WaitUp(timeout time.Duration) error

type TestKeeper

type TestKeeper struct {
	Process
	// contains filtered or unexported fields
}

func NewTestKeeper

func NewTestKeeper(dir string, clusterName string, etcdEndpoints string, a ...string) (*TestKeeper, error)

func NewTestKeeperWithID

func NewTestKeeperWithID(dir string, id string, clusterName string, etcdEndpoints string, a ...string) (*TestKeeper, error)

func (*TestKeeper) Exec

func (tk *TestKeeper) Exec(query string, args ...interface{}) (sql.Result, error)

func (*TestKeeper) GetKeeperInfo

func (tk *TestKeeper) GetKeeperInfo(timeout time.Duration) (*cluster.KeeperInfo, error)

func (*TestKeeper) GetPGProcess

func (tk *TestKeeper) GetPGProcess() (*os.Process, error)

func (*TestKeeper) IsMaster

func (tk *TestKeeper) IsMaster() (bool, error)

func (*TestKeeper) Query

func (tk *TestKeeper) Query(query string, args ...interface{}) (*sql.Rows, error)

func (*TestKeeper) SignalPG

func (tk *TestKeeper) SignalPG(sig os.Signal) error

func (*TestKeeper) WaitDBDown

func (tk *TestKeeper) WaitDBDown(timeout time.Duration) error

func (*TestKeeper) WaitDBUp

func (tk *TestKeeper) WaitDBUp(timeout time.Duration) error

func (*TestKeeper) WaitDown

func (tk *TestKeeper) WaitDown(timeout time.Duration) error

func (*TestKeeper) WaitRole

func (tk *TestKeeper) WaitRole(r common.Role, timeout time.Duration) error

func (*TestKeeper) WaitUp

func (tk *TestKeeper) WaitUp(timeout time.Duration) error

type TestProxy

type TestProxy struct {
	Process
	// contains filtered or unexported fields
}

func NewTestProxy

func NewTestProxy(dir string, clusterName string, etcdEndpoints string, a ...string) (*TestProxy, error)

func (*TestProxy) WaitListening

func (tp *TestProxy) WaitListening(timeout time.Duration) error

func (*TestProxy) WaitNotListening

func (tp *TestProxy) WaitNotListening(timeout time.Duration) error

type TestSentinel

type TestSentinel struct {
	Process
	// contains filtered or unexported fields
}

func NewTestSentinel

func NewTestSentinel(dir string, clusterName string, etcdEndpoints string) (*TestSentinel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL