Documentation ¶
Overview ¶
Package device describes high-level interface for interaction with a device.
Index ¶
- Variables
- func ExecuteBulk(dev Device, commands []gcmd.Cmd) ([]gcmd.CmdRes, error)
- func ThrowEchoReadException(lastRead []byte) error
- func ThrowExecException(data string) error
- func ThrowQuestionException(question []byte) error
- type Device
- type EchoReadException
- type ExecException
- type QuestionException
- type SFTPSupport
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorStreamerNotSupportedByDevice = errors.New("unsupported streamer")
Functions ¶
func ThrowEchoReadException ¶
func ThrowExecException ¶
func ThrowQuestionException ¶
Types ¶
type EchoReadException ¶
type EchoReadException struct {
// contains filtered or unexported fields
}
func (*EchoReadException) Error ¶
func (e *EchoReadException) Error() string
type ExecException ¶
type ExecException struct {
Data string
}
func (*ExecException) Error ¶
func (m *ExecException) Error() string
func (*ExecException) Is ¶
func (m *ExecException) Is(target error) bool
type QuestionException ¶
type QuestionException struct {
Question []byte
}
func (*QuestionException) Error ¶
func (e *QuestionException) Error() string
type SFTPSupport ¶
type SFTPSupport interface {
EnableSFTP()
}
Directories ¶
Path | Synopsis |
---|---|
Package cisco implements Cisco Catalyst CLI using genericcli.
|
Package cisco implements Cisco Catalyst CLI using genericcli. |
Package genericcli implements Device interface using regular expressions.
|
Package genericcli implements Device interface using regular expressions. |
Package huawei implements huawei CLI using genericcli.
|
Package huawei implements huawei CLI using genericcli. |
Package juniper implements juniper CLI using genericcli.
|
Package juniper implements juniper CLI using genericcli. |
Package netconf implements netconf.
|
Package netconf implements netconf. |
Package nxos implements Cisco Nexus CLI using genericcli.
|
Package nxos implements Cisco Nexus CLI using genericcli. |
Package pc implements upon generic SSH-server with ability to exec like Linux, macOS, etc.
|
Package pc implements upon generic SSH-server with ability to exec like Linux, macOS, etc. |
Package ros implements RouterOS CLI using genericcli.
|
Package ros implements RouterOS CLI using genericcli. |
Click to show internal directories.
Click to hide internal directories.