Documentation ¶
Index ¶
- type ExecResult
- type HostSession
- type SSHExecAgent
- func (agent *SSHExecAgent) AddListener(f func(*ExecResult))
- func (agent *SSHExecAgent) RunWithCreds(username string, password string, authMethod []ssh.AuthMethod, hostname string, ...) *uuid.UUID
- func (agent *SSHExecAgent) RunWithSession(session *HostSession, command string) *uuid.UUID
- func (agent *SSHExecAgent) Start()
- func (agent *SSHExecAgent) Stop()
- func (agent *SSHExecAgent) TransferWithCreds(username string, password string, authMethod []ssh.AuthMethod, hostname string, ...) *uuid.UUID
- func (agent *SSHExecAgent) TransferWithSession(session *HostSession, localFilePath string, remoteFilePath string) *uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecResult ¶
type HostSession ¶
type HostSession struct { Username string Password string Hostname string Signers []ssh.Signer Port int Auths []ssh.AuthMethod }
func (*HostSession) Exec ¶
func (exec *HostSession) Exec(id uuid.UUID, command string, config ssh.ClientConfig) *ExecResult
func (*HostSession) GenerateConfig ¶
func (exec *HostSession) GenerateConfig() ssh.ClientConfig
func (*HostSession) Transfer ¶
func (exec *HostSession) Transfer(id uuid.UUID, localFilePath string, remoteFilePath string, config ssh.ClientConfig) *ExecResult
type SSHExecAgent ¶
type SSHExecAgent struct { AllReturn []ExecResult // contains filtered or unexported fields }
func NewAgent ¶
func NewAgent() *SSHExecAgent
func (*SSHExecAgent) AddListener ¶
func (agent *SSHExecAgent) AddListener(f func(*ExecResult))
func (*SSHExecAgent) RunWithCreds ¶
func (agent *SSHExecAgent) RunWithCreds(username string, password string, authMethod []ssh.AuthMethod, hostname string, port int, command string) *uuid.UUID
func (*SSHExecAgent) RunWithSession ¶
func (agent *SSHExecAgent) RunWithSession(session *HostSession, command string) *uuid.UUID
func (*SSHExecAgent) Start ¶
func (agent *SSHExecAgent) Start()
func (*SSHExecAgent) Stop ¶
func (agent *SSHExecAgent) Stop()
func (*SSHExecAgent) TransferWithCreds ¶
func (agent *SSHExecAgent) TransferWithCreds(username string, password string, authMethod []ssh.AuthMethod, hostname string, port int, localFilePath string, remoteFilePath string) *uuid.UUID
func (*SSHExecAgent) TransferWithSession ¶
func (agent *SSHExecAgent) TransferWithSession(session *HostSession, localFilePath string, remoteFilePath string) *uuid.UUID
Click to show internal directories.
Click to hide internal directories.