worker

package
v0.0.0-...-6f2fbe4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteFeed

func ExecuteFeed(connectionConfig module.ConnectionConfig, config defaults.ConfigPattern, feed *module.FeedExec, sessionsMap map[string]module.Session, logger log.Logger) []error

Execute Feed, after definition of per Session and Host Client components

func ExecuteSteps

func ExecuteSteps(prefix string, steps []*module.Step,
	selectedHostGroup *defaults.HostGroups, threadPool pool.ThreadPool,
	errorsHandler *ErrorHandler, config defaults.ConfigPattern,
	sessionsMap map[string]module.Session, logger log.Logger,
	connectionConfig module.ConnectionConfig) []error

Execute module.Step pointers list, recovering definition of per Session and Host Client components

Types

type ErrorHandler

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

func (*ErrorHandler) GetAll

func (handler *ErrorHandler) GetAll() []ErrorItem

func (*ErrorHandler) HandleError

func (handler *ErrorHandler) HandleError(uuid string, e error)

func (*ErrorHandler) Reset

func (handler *ErrorHandler) Reset()

type ErrorItem

type ErrorItem struct {
	UUID  string
	Error error
}

Jump to

Keyboard shortcuts

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