auth

package
v0.0.0-...-bc5dcac Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Address = "http://fritz.box"
)

Variables

View Source
var (
	ErrSessionInvalid           = errSessionInvalid()
	ErrInvalidHeaderContentType = errInvalidHeaderContentType()
	ErrUnsupportedChallenge     = errUnsupportedChallenge()
)

Functions

This section is empty.

Types

type BlockTimeError

type BlockTimeError struct {
	Duration int
	Message  string
}

func (*BlockTimeError) Error

func (e *BlockTimeError) Error() string

type Session

type Session string

func Auth

func Auth(username, password string) (*Session, error)

Auth will authenticate to the target FRITZOS device using default address and will return either session id, either error.

func AuthWithAddress

func AuthWithAddress(address, username, password string) (*Session, error)

func (*Session) Close

func (s *Session) Close() error

Close will logout from the authenticated device. Call is time limited to 30 seconds, after which it will terminate.

func (*Session) CloseWithAddress

func (s *Session) CloseWithAddress(address string) error

func (*Session) String

func (s *Session) String() string

Jump to

Keyboard shortcuts

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