task

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(t *Task)

func WithMaxProcs

func WithMaxProcs(maxProcs int) Option

func WithVerboseLeve

func WithVerboseLeve(verboseLevel int) Option

type Task

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

func New

func New(filename string, logger *log.Logger, opts ...Option) (*Task, error)

func (Task) Execute

func (t Task) Execute() error

func (Task) PrintActionResult

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

Jump to

Keyboard shortcuts

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