MCPcopy Index your code
hub / github.com/devnullvoid/pvetui / SSHClient

Interface SSHClient

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

SSHClient interface for SSH command execution (abstraction for testing)

Source from the content-addressed store, hash-verified

26
27// SSHClient interface for SSH command execution (abstraction for testing)
28type SSHClient interface {
29 ExecuteCommand(ctx context.Context, host, command string) (output string, err error)
30 ExecuteContainerCommand(ctx context.Context, host string, containerID int, command string) (output string, err error)
31}
32
33// ProxmoxAPIClient interface for Proxmox API operations (abstraction for testing)
34type ProxmoxAPIClient interface {

Callers 5

ExecuteHostCommandMethod · 0.65
executeAndShowResultMethod · 0.65

Implementers 2

SSHClientImplinternal/plugins/command-runner/ssh_cl
MockSSHClientinternal/plugins/command-runner/ssh_cl

Calls

no outgoing calls

Tested by

no test coverage detected