gathercmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventCmdStart = event.Name("GatherCmdStart")
	EventCmdEnd   = event.Name("GatherCmdEnd")
)

event names for this plugin

Variables

Events defines the events that a TestStep is allow to emit

View Source
var Name = "GatherCmd"

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 GatherCmd test step.

Types

type GatherCmd

type GatherCmd struct {
	// contains filtered or unexported fields
}

GatherCmd is used to run arbitrary commands as test steps but only once for all the targets. This can be used as test setup/teardown.

func (GatherCmd) Name

func (ts GatherCmd) Name() string

Name returns the plugin name.

func (*GatherCmd) Run

Run executes the step

func (*GatherCmd) ValidateParameters

func (ts *GatherCmd) ValidateParameters(_ 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