Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitError ¶
type ExitError struct {
ExitCode int
}
ExitError is returned by Process.Wait when the controlled process exited with a non-zero exit code (depending on transport)
type SSHTransport ¶
type SSHTransport struct {
SSHTransportConfig
}
func (*SSHTransport) NewProcess ¶
type SSHTransportConfig ¶
type SSHTransportConfig struct {
Host string `json:"host,omitempty"`
Port int `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
IdentityFile string `json:"identity_file,omitempty"`
Timeout xjson.Duration `json:"timeout,omitempty"`
SendBinary bool `json:"send_binary,omitempty"`
Async *struct {
Agent string `json:"agent,omitempty"`
TimeQuota xjson.Duration `json:"time_quota,omitempty"`
} `json:"async,omitempty"`
}
func DefaultSSHTransportConfig ¶
func DefaultSSHTransportConfig() SSHTransportConfig
type Transport ¶
type Transport interface {
NewProcess(ctx xcontext.Context, bin string, args []string) (Process, error)
}
func NewLocalTransport ¶
func NewLocalTransport() Transport
func NewSSHTransport ¶
func NewSSHTransport(config SSHTransportConfig) Transport
func NewTransport ¶
func NewTransport(proto string, configSource json.RawMessage, expander *test.ParamExpander) (Transport, error)
Click to show internal directories.
Click to hide internal directories.