Documentation ¶
Index ¶
- Constants
- func MakeKeyring(key_filenames []string) ssh.AuthMethod
- func Shellescape(str string) string
- type Keychain
- type SshConnection
- func (conn *SshConnection) Close()
- func (conn *SshConnection) NewSession() (*ssh.Session, error)
- func (conn *SshConnection) Open(server string, auths ssh.AuthMethod, timeout int) error
- func (conn *SshConnection) Run(command string, timeout int, sudo bool) (*string, *string, error)
- func (conn *SshConnection) RunWithWriters(command string, timeout int, sudo bool, stdout io.Writer, stderr io.Writer) error
Constants ¶
View Source
const NO_TIMEOUT = 0
Variables ¶
This section is empty.
Functions ¶
func MakeKeyring ¶
func MakeKeyring(key_filenames []string) ssh.AuthMethod
func Shellescape ¶
Types ¶
type SshConnection ¶
type SshConnection struct { SudoCommand string // contains filtered or unexported fields }
func (*SshConnection) Close ¶
func (conn *SshConnection) Close()
func (*SshConnection) NewSession ¶
func (conn *SshConnection) NewSession() (*ssh.Session, error)
func (*SshConnection) Open ¶
func (conn *SshConnection) Open(server string, auths ssh.AuthMethod, timeout int) error
Click to show internal directories.
Click to hide internal directories.