Documentation
¶
Index ¶
Constants ¶
const (
DefaultVMImage = "weaveworks/ignite-ubuntu"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is an ignite command execution helper. It takes a binary and the arguments to run with the binary. It provides chaining methods to facilitate easy construction of the command.
func NewCommand ¶
NewCommand takes a go test testing.T and path to ignite binary and returns an initialized Command.
func (*Command) New ¶
New resets the command. This should be used to reuse an existing Command and pass different arguments by method chaining.
func (*Command) PassThrough ¶ added in v0.9.0
PassThrough makes output from the command go to the same place as this process.
func (*Command) Run ¶
func (c *Command) Run()
Run executes the command and performs an error check. It results in fatal exit of the test if an error is encountered. In order to continue the test on encountering an error, call Command.Cmd.CombinedOutput() or the appropriate method to execute the command separately.
func (*Command) With ¶
With accepts arguments to be used with the command. It returns Command and supports method chaining.
func (*Command) WithNetwork ¶
WithNetwork sets the network argument.
func (*Command) WithRuntime ¶
WithRuntime sets the runtime argument.