Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHConnection ¶
type SSHConnection struct { Host string // contains filtered or unexported fields }
SSHConnection encapsulates the connection to the device
func NewSSSHConnection ¶
func NewSSSHConnection(host, user, keyFile string) (*SSHConnection, error)
NewSSSHConnection connects to device
func (*SSHConnection) Connect ¶
func (c *SSHConnection) Connect(user, keyFile string) error
Connect connects to the device
func (*SSHConnection) RunCommand ¶
func (c *SSHConnection) RunCommand(cmd string) ([]byte, error)
RunCommand runs a command against the device
Click to show internal directories.
Click to hide internal directories.