pkg

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAuthentication = errors.New("could not authenticate")
View Source
var ErrNokiaAuthenticationProcessStart = errors.New("could not start authentication process")
View Source
var ErrRebootFailed = errors.New("reboot failed")

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 Base64urlEscape added in v0.2.0

func Base64urlEscape(b64 string) string

func GetBody added in v0.1.9

func GetBody(resp *http.Response) string

func HTTPRequestSuccessful added in v0.2.0

func HTTPRequestSuccessful(resp *http.Response) bool

func LogHTTPResponseFields added in v0.2.0

func LogHTTPResponseFields(resp *http.Response) logrus.Fields

func Random16bytes added in v0.2.0

func Random16bytes() string

func Sha256Hash added in v0.2.0

func Sha256Hash(val1, val2 string) string

func Sha256Url added in v0.2.0

func Sha256Url(val1, val2 string) string

Types

type ArcadyanGateway added in v0.3.1

type ArcadyanGateway struct {
	Username, Password, IP string
	// contains filtered or unexported fields
}

func NewArcadyanGateway added in v0.3.1

func NewArcadyanGateway(username, password, ip string) *ArcadyanGateway

func (*ArcadyanGateway) Login added in v0.3.1

func (a *ArcadyanGateway) Login() error

func (*ArcadyanGateway) Reboot added in v0.3.1

func (a *ArcadyanGateway) Reboot(dryRun bool) error

type GatewayI

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

type NokiaGateway

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

func NewNokiaGateway added in v0.2.0

func NewNokiaGateway(username, password, ip string) *NokiaGateway

func (*NokiaGateway) Login

func (n *NokiaGateway) Login() error

func (*NokiaGateway) Reboot

func (n *NokiaGateway) Reboot(dryRun bool) error

Jump to

Keyboard shortcuts

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