Documentation ¶
Index ¶
- func PKCS7Padding(data []byte) []byte
- func PKCS7Unpadding(data []byte) ([]byte, error)
- type HandshakeData
- type KlapEncryptionSession
- type Tapo
- func (d *Tapo) DeviceInfo() (response *types.ResponseSpec, err error)
- func (d *Tapo) GenerateAuthHashV2() []byte
- func (d *Tapo) GenerateSeedAuthHash(localSeed []byte, remoteSeed []byte, authHash []byte, handshakeStage int) []byte
- func (d *Tapo) GetEnergyUsage() (response *types.ResponseSpec, err error)
- func (d *Tapo) Handshake() error
- func (d *Tapo) Handshake1() (handshakeData HandshakeData, err error)
- func (d *Tapo) Handshake2(handshakeData *HandshakeData) error
- func (d *Tapo) PerformRequest(request *types.RequestSpec) (response *types.ResponseSpec, err error)
- func (d *Tapo) TurnOff() (response *types.ResponseSpec, err error)
- func (d *Tapo) TurnOn() (response *types.ResponseSpec, err error)
- type TapoOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS7Padding ¶
func PKCS7Unpadding ¶
Types ¶
type HandshakeData ¶
type HandshakeData struct { LocalSeed []byte // OK RemoteSeed []byte // OK AuthHash []byte // OK RemoteSeedAuthHash []byte // OK Cookies []*http.Cookie // OK Session *KlapEncryptionSession // OK EncodedCredentialsLocalSeed []byte // TODO REVIEW }
HandshakeData represents TODO
type KlapEncryptionSession ¶
type KlapEncryptionSession struct {
// contains filtered or unexported fields
}
KlapEncryptionSession representa una sesión de cifrado y su estado interno.
func NewKlapEncryptionSession ¶
func NewKlapEncryptionSession(localSeed, remoteSeed, userHash string) *KlapEncryptionSession
NewKlapEncryptionSession crea una nueva instancia de KlapEncryptionSession.
type Tapo ¶
type Tapo struct {
// contains filtered or unexported fields
}
func (*Tapo) DeviceInfo ¶
func (d *Tapo) DeviceInfo() (response *types.ResponseSpec, err error)
DeviceInfo TODO
func (*Tapo) GenerateAuthHashV2 ¶
GenerateAuthHashV2 TODO
func (*Tapo) GenerateSeedAuthHash ¶
func (d *Tapo) GenerateSeedAuthHash(localSeed []byte, remoteSeed []byte, authHash []byte, handshakeStage int) []byte
GenerateSeedAuthHash TODO
func (*Tapo) GetEnergyUsage ¶
func (d *Tapo) GetEnergyUsage() (response *types.ResponseSpec, err error)
GetEnergyUsage TODO
func (*Tapo) Handshake1 ¶
func (d *Tapo) Handshake1() (handshakeData HandshakeData, err error)
Handshake1 TODO
func (*Tapo) Handshake2 ¶
func (d *Tapo) Handshake2(handshakeData *HandshakeData) error
Handshake2 TODO
func (*Tapo) PerformRequest ¶
func (d *Tapo) PerformRequest(request *types.RequestSpec) (response *types.ResponseSpec, err error)
PerformRequest TODO
type TapoOptions ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.