action

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {

	// Failed an error occurred during execution of action
	Failed bool
	// NoResults should be reported for action
	NoResults bool
	// Details for action to log on result report
	Details string
	// NoRestartOnDisconnect in the case of using websocket reconnect logic, don't restart action when a reconnect has happened
	NoRestartOnDisconnect bool
	// FailOnDisconnect in the case of using webscoket reconnect logic, fail the action instead of trying to restart it
	FailOnDisconnect bool
	// contains filtered or unexported fields
}

State holder for an action

func (*State) AddErrors

func (as *State) AddErrors(errs ...error)

AddErrors to error list

func (*State) DebugErrors added in v0.17.8

func (as *State) DebugErrors(logEntry *logger.LogEntry)

DebugErrors logs all actionstate errors to debug log

func (*State) Errors

func (as *State) Errors() error

Errors return action error

func (*State) NewErrorf added in v0.15.3

func (as *State) NewErrorf(format string, args ...interface{})

NewErrorf add new action error

Jump to

Keyboard shortcuts

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