pkg

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthentication = errors.New("could not authenticate")
View Source
var ErrAuthenticationProcessStart = errors.New("could not start authentication process")
View Source
var ErrGatewayUnknown = errors.New("unsupported gateway")

Functions

func AuthenticationError added in v0.1.9

func AuthenticationError(details string) error

func AuthenticationProcessStartError added in v0.1.9

func AuthenticationProcessStartError(details string) error

func GatewayUnknownError added in v0.1.9

func GatewayUnknownError(gateway string) error

func GetBody added in v0.1.9

func GetBody(resp *http.Response) string

Types

type GatewayI

type GatewayI interface {
	Login() error
	Reboot() error
}

func NewGateway

func NewGateway(gateway, username, password, ip string, dryRun bool) (GatewayI, error)

type NokiaGateway

type NokiaGateway struct {
	Username, Password, IP string
	DryRun                 bool
	// contains filtered or unexported fields
}

func (*NokiaGateway) Login

func (n *NokiaGateway) Login() error

func (*NokiaGateway) Reboot

func (n *NokiaGateway) Reboot() error

Jump to

Keyboard shortcuts

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