Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FritzBox ¶
type FritzBox struct { Host string User string Insecure bool Domain string VerificationURL *url.URL // contains filtered or unexported fields }
FritzBox holds general information about the FRITZ!Box to talk to
func (*FritzBox) CheckSession ¶
func (*FritzBox) PerformLogin ¶
PerformLogin performs a login and returns SessionInfo including the session id (SID) on success
func (*FritzBox) UploadCertificate ¶
UploadCertificate uploads certificate and privatekey, provided via data and installs it
func (*FritzBox) VerifyCertificate ¶
VerifyCertificate uses Go's http.Get with TLS verification to see if a valid certificate is actually installed.
type SessionInfo ¶
type SessionInfo struct { SID string `xml:"SID"` Challenge string `xml:"Challenge"` Blocktime string `xml:"Blocktime"` }
SessionInfo holds information about the current authenticated fritzbox session
We only need SID and Challenge currently.
Click to show internal directories.
Click to hide internal directories.