Documentation
¶
Index ¶
- Variables
- func AuthenticationError(details string) error
- func AuthenticationProcessStartError(details string) error
- func Base64urlEscape(b64 string) string
- func GetBody(resp *http.Response) string
- func HTTPRequestSuccessful(resp *http.Response) bool
- func LogHTTPResponseFields(resp *http.Response) logrus.Fields
- func Random16bytes() string
- func Sha256Hash(val1, val2 string) string
- func Sha256Url(val1, val2 string) string
- type GatewayI
- type NokiaGateway
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 ErrRebootFailed = errors.New("reboot failed")
Functions ¶
func AuthenticationError ¶ added in v0.1.9
func AuthenticationProcessStartError ¶ added in v0.1.9
func Base64urlEscape ¶ added in v0.2.0
func HTTPRequestSuccessful ¶ added in v0.2.0
func LogHTTPResponseFields ¶ added in v0.2.0
func Random16bytes ¶ added in v0.2.0
func Random16bytes() string
func Sha256Hash ¶ added in v0.2.0
Types ¶
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
Click to show internal directories.
Click to hide internal directories.