connector

package
v0.0.0-...-0855282 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 9 Imported by: 0

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, password string, legacyCiphers bool, timeout int, batchSize int) (*SSHConnection, error)

NewSSSHConnection connects to device

func (*SSHConnection) Close

func (c *SSHConnection) Close()

Close closes connection

func (*SSHConnection) Connect

func (c *SSHConnection) Connect(user, password string, timeout int) error

Connect connects to the device

func (*SSHConnection) RunCommand

func (c *SSHConnection) RunCommand(cmd string) (string, error)

RunCommand runs a command against the device

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL