Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Events = []event.Name{}
Events is used by the framework to determine which events this plugin will emit. Any emitted event that is not registered here will cause the plugin to fail.
View Source
var Name = "SSHCmd"
Name is the name used to look this plugin up.
Functions ¶
Types ¶
type SSHCmd ¶
type SSHCmd struct {
Host *test.Param
Port *test.Param
User *test.Param
PrivateKeyFile *test.Param
Password *test.Param
Executable *test.Param
Args []test.Param
Expect *test.Param
Timeout *test.Param
SkipIfEmptyHost *test.Param
}
SSHCmd is used to run arbitrary commands as test steps.
func (*SSHCmd) Run ¶
func (ts *SSHCmd) Run(ctx xcontext.Context, ch test.TestStepChannels, params test.TestStepParameters, ev testevent.Emitter, resumeState json.RawMessage) (json.RawMessage, error)
Run executes the cmd step.
func (*SSHCmd) ValidateParameters ¶
ValidateParameters validates the parameters associated to the TestStep
Click to show internal directories.
Click to hide internal directories.