Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutorInterface ¶
type CommandExecutorInterface interface {
Run(addr string, command string, stdin io.Reader, routeToStd bool) (bytes.Buffer, bytes.Buffer, error)
}
This interface allows to execute a command either locally or on a remote server.
type ServodCommandExecutor ¶
type ServodCommandExecutor struct {
// contains filtered or unexported fields
}
ServodCommandExecutor acts as a receiver to implement CommandExecutorInterface by running given commands either locally or on a remote host through os/exec and SSH run commands.
func NewServodCommandExecutor ¶
func NewServodCommandExecutor(logger *log.Logger) ServodCommandExecutor
Click to show internal directories.
Click to hide internal directories.