pkg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthentication = errors.New("could not authenticate")
	ErrNotImplemented = errors.New("command not implemented")
)
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 EchoOut added in v0.5.0

func EchoOut(str 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) Info added in v0.5.0

func (a *ArcadyanGateway) Info() error

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

func (*ArcadyanGateway) Request added in v0.5.0

func (a *ArcadyanGateway) Request(method, path string, loginFirst bool, details bool) error

type GatewayI

type GatewayI interface {
	Login() error
	Reboot(dryRun bool) error
	Request(method, path string, loginFirst bool, details bool) error
	Info() 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) Info added in v0.5.0

func (n *NokiaGateway) Info() error

func (*NokiaGateway) Login

func (n *NokiaGateway) Login() error

func (*NokiaGateway) Reboot

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

func (*NokiaGateway) Request added in v0.5.0

func (n *NokiaGateway) Request(_, _ string, _ bool, _ bool) error

Jump to

Keyboard shortcuts

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