Documentation ¶
Index ¶
- func Address() string
- type Node
- type Option
- func Env(key string, value string) Option
- func Image(image string) Option
- func Mount(host string, container string) Option
- func RunTestsCommand(command ...string) Option
- func Size(size int) Option
- func StartNodeCommand(command ...string) Option
- func WorkingDirectory(dir string) Option
- func WriteToFile(enabled bool) Option
- type Options
- type Runner
- type StartHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a docker node
func NewClusterNode ¶
NewClusterNode creates a new node
func NewClusterNodeFromOptions ¶
NewClusterNodeFromOptions creates a new node
func NewTestNodeFromOptions ¶
NewTestNodeFromOptions creates a test runner node
type Option ¶
type Option func(*Options)
Option is a test runner option
func RunTestsCommand ¶
RunTestsCommand sets the command to run on the test comtainer
func StartNodeCommand ¶
StartNodeCommand sets the command to run per cluster node
func WorkingDirectory ¶
WorkingDirectory sets the working dir in the container
func WriteToFile ¶
WriteToFile ensures container logs are written to a file
type Options ¶
type Options struct { Image string Size int Mount map[string]string Env map[string]string WorkingDirectory string NodeCommand []string TestCommand []string WriteToFile bool }
Options contains the runnner options
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is a cluster test runner
func NewRunnerFromOptions ¶
NewRunnerFromOptions creates a new runner from options struct
func (*Runner) StartAndTest ¶
func (r *Runner) StartAndTest()
StartAndTest starts and runs test, exiting on completion
Click to show internal directories.
Click to hide internal directories.