MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / NewExecutor

Function NewExecutor

internal/plugins/command-runner/executor.go:50–57  ·  view source on GitHub ↗

NewExecutor creates a new command executor

(config Config, sshClient SSHClient, apiClient ProxmoxAPIClient)

Source from the content-addressed store, hash-verified

48
49// NewExecutor creates a new command executor
50func NewExecutor(config Config, sshClient SSHClient, apiClient ProxmoxAPIClient) *Executor {
51 return &Executor{
52 config: config,
53 validator: NewValidator(config),
54 sshClient: sshClient,
55 apiClient: apiClient,
56 }
57}
58
59// SetSSHClient updates the SSH client used by the executor.
60func (e *Executor) SetSSHClient(sshClient SSHClient) {

Calls 1

NewValidatorFunction · 0.85