cisco

package
v0.0.0-...-a02e82a Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 5 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.CiscoDevice, error)

Types

type ASADevice

type ASADevice struct {
	Driver driver.IDriver
	Prompt string
	// contains filtered or unexported fields
}

func (*ASADevice) Connect

func (d *ASADevice) Connect() error

func (*ASADevice) Disconnect

func (d *ASADevice) Disconnect()

func (*ASADevice) SendCommand

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

func (*ASADevice) SendConfigSet

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

func (*ASADevice) SetSecret

func (d *ASADevice) SetSecret(secret string)

func (*ASADevice) SetTimeout

func (d *ASADevice) SetTimeout(timeout uint8)

type CSCODevice

type CSCODevice struct {
	Driver     driver.IDriver
	DeviceType string
	Prompt     string
	Secret     string
}

func (*CSCODevice) Connect

func (d *CSCODevice) Connect() error

func (*CSCODevice) Disconnect

func (d *CSCODevice) Disconnect()

func (*CSCODevice) SendCommand

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

func (*CSCODevice) SendConfigSet

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

func (*CSCODevice) SetSecret

func (d *CSCODevice) SetSecret(secret string)

func (*CSCODevice) SetTimeout

func (d *CSCODevice) SetTimeout(timeout uint8)

type IOSDevice

type IOSDevice struct {
	Driver driver.IDriver
	Prompt string
	// contains filtered or unexported fields
}

func (*IOSDevice) Connect

func (d *IOSDevice) Connect() error

func (*IOSDevice) Disconnect

func (d *IOSDevice) Disconnect()

func (*IOSDevice) SendCommand

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

func (*IOSDevice) SendConfigSet

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

func (*IOSDevice) SetSecret

func (d *IOSDevice) SetSecret(secret string)

func (*IOSDevice) SetTimeout

func (d *IOSDevice) SetTimeout(timeout uint8)

type IOSXRDevice

type IOSXRDevice struct {
	Driver driver.IDriver
	Prompt string
	// contains filtered or unexported fields
}

func (*IOSXRDevice) Connect

func (d *IOSXRDevice) Connect() error

func (*IOSXRDevice) Disconnect

func (d *IOSXRDevice) Disconnect()

func (*IOSXRDevice) SendCommand

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

func (*IOSXRDevice) SendConfigSet

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

func (*IOSXRDevice) SetSecret

func (d *IOSXRDevice) SetSecret(secret string)

func (*IOSXRDevice) SetTimeout

func (d *IOSXRDevice) SetTimeout(timeout uint8)

type NXOSDevice

type NXOSDevice struct {
	Driver driver.IDriver
	Prompt string
	// contains filtered or unexported fields
}

func (*NXOSDevice) Connect

func (d *NXOSDevice) Connect() error

func (*NXOSDevice) Disconnect

func (d *NXOSDevice) Disconnect()

func (*NXOSDevice) SendCommand

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

func (*NXOSDevice) SendConfigSet

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

func (*NXOSDevice) SetSecret

func (d *NXOSDevice) SetSecret(secret string)

func (*NXOSDevice) SetTimeout

func (d *NXOSDevice) SetTimeout(timeout uint8)

Jump to

Keyboard shortcuts

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