Documentation
¶
Index ¶
- func Agent() ssh.AuthMethod
- func Broker(hostList *HostList, input <-chan CommandRequest, events chan<- OutputEvent)
- func Connection(host *Host) (connection *ssh.Client, err error)
- func LoadIdentityFiles(paths []string) ([]ssh.AuthMethod, error)
- func ParseProxyJump(value string) []string
- func PublicKeyFile(privateKey string) ssh.AuthMethod
- func RunCommand(host *Host, command string, jobID int, events chan<- OutputEvent) (int, error)
- func Session(connection *ssh.Client, host *Host, stdout, stderr io.Writer) (stdin io.WriteCloser, session *ssh.Session, err error)
- type CommandKind
- type CommandRequest
- type Host
- type HostList
- type HostSpec
- type OutputEvent
- type ProxyWriter
- type ResolvedHost
- type SSHConfigPaths
- type SSHConfigResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Agent ¶
func Agent() ssh.AuthMethod
func Broker ¶
func Broker(hostList *HostList, input <-chan CommandRequest, events chan<- OutputEvent)
func LoadIdentityFiles ¶
func LoadIdentityFiles(paths []string) ([]ssh.AuthMethod, error)
func ParseProxyJump ¶
func PublicKeyFile ¶
func PublicKeyFile(privateKey string) ssh.AuthMethod
func RunCommand ¶
Types ¶
type CommandKind ¶
type CommandKind int
const ( CommandKindRun CommandKind = iota CommandKindControl )
type CommandRequest ¶
type CommandRequest struct {
JobID int
Command string
Kind CommandKind
ControlByte byte
}
type HostList ¶
type HostList struct {
// contains filtered or unexported fields
}
func NewHostList ¶
func NewHostList() *HostList
type ProxyWriter ¶
type ProxyWriter struct {
// contains filtered or unexported fields
}
func NewProxyWriter ¶
func NewProxyWriter(events chan<- OutputEvent, host *Host, jobID int) *ProxyWriter
type ResolvedHost ¶
type SSHConfigPaths ¶
type SSHConfigResolver ¶
type SSHConfigResolver struct {
// contains filtered or unexported fields
}
func LoadSSHConfig ¶
func LoadSSHConfig(paths SSHConfigPaths) (*SSHConfigResolver, error)
func (*SSHConfigResolver) ResolveHost ¶
func (r *SSHConfigResolver) ResolveHost(spec HostSpec, fallbackUser string) (ResolvedHost, error)
Click to show internal directories.
Click to hide internal directories.