sros

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevice

func NewDevice(connection connections.Connection, DeviceType string) (types.Device, error)

Types

type SROSDevice

type SROSDevice struct {
	Driver     driver.IDriver
	DeviceType string
	Prompt     string
}

func (*SROSDevice) Connect

func (d *SROSDevice) Connect() error

func (*SROSDevice) Disconnect

func (d *SROSDevice) Disconnect()

func (*SROSDevice) SendCommand

func (d *SROSDevice) SendCommand(cmd string) (string, error)

func (*SROSDevice) SendConfigSet

func (d *SROSDevice) SendConfigSet(cmds []string) (string, error)

func (*SROSDevice) SetTimeout

func (d *SROSDevice) SetTimeout(timeout uint8)

Jump to

Keyboard shortcuts

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