Documentation
¶
Index ¶
- type Executor
- func (e Executor) ExecuteOperation(hostGroup map[string][]remote.Host, pool *remote.HostPool, ...) error
- func (e Executor) ExecuteOperations(hostGroup map[string][]remote.Host, ops []operation.Operation) error
- func (e Executor) LoadConfig(filename string) (map[string][]remote.Host, []operation.Operation, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶ added in v0.0.9
type Executor struct {
// contains filtered or unexported fields
}
Executor orchestrates remote operations across multiple hosts.
func (Executor) ExecuteOperation ¶ added in v0.0.9
func (e Executor) ExecuteOperation(hostGroup map[string][]remote.Host, pool *remote.HostPool, op operation.Operation) error
ExecuteOperation runs a single operation on all matching hosts in the group. It respects the operation's Role field: if Role is "all", it runs on all hosts; otherwise, it runs only on hosts in the specified role group.
type Option ¶
type Option func(e *Executor)
Option configures an Executor.
func WithMaxProcs ¶
WithMaxProcs sets the maximum number of concurrent operations. A value of 0 or negative is ignored and the default (1) is used.
func WithVerboseLevel ¶ added in v0.0.19
WithVerboseLevel sets the verbosity level for executor output.
Click to show internal directories.
Click to hide internal directories.