runners

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factories = make(map[string]func(cfg *config.Config) (Runner, error))

Factories contains the list of all available runners. The runners can each then be created using the function saved in the map.

Functions

This section is empty.

Types

type Runner

type Runner interface {
	// GetHostsForTest return a list of hots from the Runner
	GetHostsForTest(test *config.Test) (*testers.Hosts, error)
	// Prepare run steps to prepare the Runner and / or itself to things.
	Prepare(runOpts config.RunOptions, plan *testers.Plan) error
	// Execute run / execute certain commands and so that are in the testers.Plan
	Execute(plan *testers.Plan, parser chan<- parsers.Input) error
	// Cleanup cleanup resources and other things after the commands from the testers.Plan ran.
	Cleanup(plan *testers.Plan) error
}

Runner is the interface a runner has to implement.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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