NewExecutor creates a new command executor
(config Config, sshClient SSHClient, apiClient ProxmoxAPIClient)
| 48 | |
| 49 | // NewExecutor creates a new command executor |
| 50 | func 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. |
| 60 | func (e *Executor) SetSSHClient(sshClient SSHClient) { |