Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProcessFinishedExitCode = 13 DeadAgentExitCode = 14 )
TODO: maybe extract this to a package?
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.