MCPcopy
hub / github.com/alexellis/k3sup / CommandOperator

Interface CommandOperator

pkg/operator/operator.go:4–7  ·  view source on GitHub ↗

CommandOperator executes a command on a machine to install k3sup

Source from the content-addressed store, hash-verified

2
3// CommandOperator executes a command on a machine to install k3sup
4type CommandOperator interface {
5 Execute(command string) (CommandRes, error)
6 ExecuteStdio(command string, stream bool) (CommandRes, error)
7}
8
9// CommandRes contains the STDIO output from running a command
10type CommandRes struct {

Callers 8

mainFunction · 0.65
ExecuteStdioMethod · 0.65
MakeInstallFunction · 0.65
MakeReadyFunction · 0.65
runGetProEFunction · 0.65
obtainNodeTokenFunction · 0.65
obtainKubeconfigFunction · 0.65
MakeJoinFunction · 0.65

Implementers 2

SSHOperatorpkg/operator/ssh_operator.go
ExecOperatorpkg/operator/exec_operator.go

Calls

no outgoing calls

Tested by

no test coverage detected