executor

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteActions

func ExecuteActions(e *ActionExecutor, acts []action.ActionWrapper) error

func LoadActionsFromConfig

func LoadActionsFromConfig(filename string, logger *log.Logger) ([]action.ActionWrapper, error)

Types

type ActionExecutor

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

func New

func New(logger *log.Logger, opts ...Option) *ActionExecutor

func (ActionExecutor) PrintActionResult

func (e ActionExecutor) PrintActionResult(hostGroup map[string][]host.Host, rgs *map[host.Host]*remote.Remote, act action.ActionWrapper, prefix string) error

type Option

type Option func(e *ActionExecutor)

func WithMaxProcs

func WithMaxProcs(maxProcs int) Option

func WithVerboseLeve

func WithVerboseLeve(verboseLevel int) Option

Jump to

Keyboard shortcuts

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