executor

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: GPL-3.0 Imports: 22 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) ExecuteAction added in v0.0.8

func (e ActionExecutor) ExecuteAction(hostGroup map[string][]host.Host, rgs *map[host.Host]*remote.Remote, act action.ActionWrapper) 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