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

Function WithExecutor

internal/ssh/client.go:42–44  ·  view source on GitHub ↗

WithExecutor sets a custom command executor for the SSH client. This is primarily used for testing to inject mock executors.

(exec CommandExecutor)

Source from the content-addressed store, hash-verified

40// WithExecutor sets a custom command executor for the SSH client.
41// This is primarily used for testing to inject mock executors.
42func WithExecutor(exec CommandExecutor) Option {
43 return func(c *SSHClient) { c.executor = exec }
44}
45
46// WithJumpHost sets the SSH jump host configuration.
47func WithJumpHost(jumpHost config.SSHJumpHost) Option {

Callers 1

Calls

no outgoing calls

Tested by 1