Documentation
¶
Index ¶
- Variables
- type Node
- func (n *Node) Clean(t *testing.T) error
- func (n *Node) GetContext() string
- func (n *Node) GetIP() string
- func (n *Node) GetPorts() Ports
- func (n *Node) GetSmr() *engine.Engine
- func (n *Node) GetSudoSmr() *engine.Engine
- func (n *Node) Import(t *testing.T, context string) error
- func (n *Node) RunCommand(t *testing.T, command string) (string, error)
- func (n *Node) SetNodePorts(control, etcd, overlay int)
- func (n *Node) Start(t *testing.T) error
- func (n *Node) WaitForEvent(t *testing.T, eventName string, timeout time.Duration) error
- type NodeCleaner
- type NodeManager
- func (nm *NodeManager) Add(t *testing.T, node NodeCleaner)
- func (nm *NodeManager) CleanAll(t *testing.T)
- func (nm *NodeManager) CreateAndStartNode(t *testing.T, creatorFn func(*testing.T) (NodeCleaner, error), ...) (NodeCleaner, error)
- func (nm *NodeManager) CreateAndStartNodeWithOptions(t *testing.T, creatorFn func(*testing.T, interface{}) (NodeCleaner, error), ...) (NodeCleaner, error)
- func (nm *NodeManager) CreateNode(t *testing.T, creatorFn func(*testing.T) (NodeCleaner, error)) (NodeCleaner, error)
- func (nm *NodeManager) CreateNodeWithOptions(t *testing.T, creatorFn func(*testing.T, interface{}) (NodeCleaner, error), ...) (NodeCleaner, error)
- func (nm *NodeManager) HandleError(t *testing.T, err error, message string) bool
- func (nm *NodeManager) RunCommand(t *testing.T, runFn func() error, cmdDescription string)
- func (nm *NodeManager) SetupTestCleanup(t *testing.T)
- type Options
- type Ports
Constants ¶
This section is empty.
Variables ¶
View Source
var LAST_INDEX = 1
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
Name string
Image string
Tag string
Join bool
Peer string
BinaryPath string
Cleaned bool
IP string
Context string
Ports Ports
// contains filtered or unexported fields
}
func (*Node) GetContext ¶
func (*Node) GetSudoSmr ¶
func (*Node) SetNodePorts ¶
type NodeCleaner ¶
type NodeManager ¶
type NodeManager struct {
// contains filtered or unexported fields
}
func NewNodeManager ¶
func NewNodeManager() *NodeManager
func (*NodeManager) Add ¶
func (nm *NodeManager) Add(t *testing.T, node NodeCleaner)
func (*NodeManager) CleanAll ¶
func (nm *NodeManager) CleanAll(t *testing.T)
func (*NodeManager) CreateAndStartNode ¶
func (nm *NodeManager) CreateAndStartNode(t *testing.T, creatorFn func(*testing.T) (NodeCleaner, error), startFn func(NodeCleaner, *testing.T) error) (NodeCleaner, error)
func (*NodeManager) CreateAndStartNodeWithOptions ¶
func (nm *NodeManager) CreateAndStartNodeWithOptions(t *testing.T, creatorFn func(*testing.T, interface{}) (NodeCleaner, error), opts interface{}, startFn func(NodeCleaner, *testing.T) error) (NodeCleaner, error)
func (*NodeManager) CreateNode ¶
func (nm *NodeManager) CreateNode(t *testing.T, creatorFn func(*testing.T) (NodeCleaner, error)) (NodeCleaner, error)
func (*NodeManager) CreateNodeWithOptions ¶
func (nm *NodeManager) CreateNodeWithOptions(t *testing.T, creatorFn func(*testing.T, interface{}) (NodeCleaner, error), opts interface{}) (NodeCleaner, error)
func (*NodeManager) HandleError ¶
func (*NodeManager) RunCommand ¶
func (nm *NodeManager) RunCommand(t *testing.T, runFn func() error, cmdDescription string)
func (*NodeManager) SetupTestCleanup ¶
func (nm *NodeManager) SetupTestCleanup(t *testing.T)
Click to show internal directories.
Click to hide internal directories.