MCPcopy
hub / github.com/psviderski/uncloud / Executor

Interface Executor

internal/sshexec/executor.go:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type Executor interface {
11 Run(ctx context.Context, cmd string) (string, error)
12 Stream(ctx context.Context, cmd string, stdout, stderr io.Writer) error
13 Close() error
14}
15
16// Quote* functions are copied from github.com/alessio/shellescape package.
17var pattern = regexp.MustCompile(`[^\w@%+=:,./-]`)

Callers 17

TestGetVerifyURLFunction · 0.65
TestDetermineUpdateOrderFunction · 0.65
TestPreDeployOperationsFunction · 0.65
provisionMachineFunction · 0.65
doMethod · 0.65
RunMethod · 0.65
handleConnectionMethod · 0.65

Implementers 2

SSHCLIRemoteinternal/sshexec/sshcli.go
Remoteinternal/sshexec/remote.go

Calls

no outgoing calls

Tested by

no test coverage detected