sshcmd

package
v0.0.0-...-aac4589 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 18 Imported by: 0

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

func Load

func Load() (string, test.TestStepFactory, []event.Name)

Load returns the name, factory and events which are needed to register the step.

func New

func New() test.TestStep

New initializes and returns a new SSHCmd test step.

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) Name

func (ts SSHCmd) Name() string

Name returns the plugin name.

func (*SSHCmd) Run

Run executes the cmd step.

func (*SSHCmd) ValidateParameters

func (ts *SSHCmd) ValidateParameters(ctx xcontext.Context, params test.TestStepParameters) error

ValidateParameters validates the parameters associated to the TestStep

Jump to

Keyboard shortcuts

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