models

package
v0.0.0-...-300d8f5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: GPL-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTPJson

type OTPJson struct {
	Username string `json:"username" structs:"username"`
	Token    string `json:"token" structs:"token"`
	OTP      string `json:"otp" structs:"otp"`
}

type Status2FA

type Status2FA struct {
	Status bool `json:"status" structs:"status"`
}

type UBusCallJSON

type UBusCallJSON struct {
	Path    string      `json:"path" structs:"path"`
	Method  string      `json:"method" structs:"method"`
	Payload interface{} `json:"payload" structs:"payload"`
}

type UserAuthorizations

type UserAuthorizations struct {
	Username      string   `json:"username" structs:"username"`
	Role          string   `json:"role" structs:"role"`
	Actions       []string `json:"actions" structs:"actions"`
	SudoRequested bool     `json:"sudo_requested" structs:"sudo_requested"`
}

type UserLogin

type UserLogin struct {
	Username string `json:"username" structs:"username"`
	Password string `json:"password" structs:"password"`
	Timeout  int    `json:"timeout" structs:"timeout"`
}

Jump to

Keyboard shortcuts

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