Discover Packages
github.com/NethServer/ns8-core/core/api-server
models
package
Version:
v0.0.0-...-66da4ae
Opens a new window with list of versions in this module.
Published: Oct 23, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Audit struct {
ID int `json:"id" structs:"id"`
User string `json:"user" structs:"user"`
Action string `json:"action" structs:"action"`
Data string `json:"data" structs:"data"`
Timestamp time .Time `json:"timestamp" structs:"timestamp"`
}
type Event struct {
Name string `json:"name" structs:"name"`
Payload interface{} `json:"payload" structs:"payload"`
Timestamp time .Time `json:"timestamp" structs:"timestamp"`
Type string `json:"type" structs:"type"`
}
type LogsStartAction struct {
Id string `json:"id" structs:"id"`
Mode string `json:"mode" structs:"mode"`
Lines string `json:"lines" structs:"lines"`
Filter string `json:"filter" structs:"filter"`
From string `json:"from" structs:"from"`
To string `json:"to" structs:"to"`
Entity string `json:"entity" structs:"entity"`
EntityName string `json:"entity_name" structs:"entity_name"`
TimeZone string `json:"timezone" structs:"timezone"`
}
type LogsStopAction struct {
Id string `json:"id" structs:"id"`
Pid string `json:"pid" structs:"pid"`
}
type OTPJson struct {
OTP string `json:"otp" structs:"otp"`
Secret string `json:"secret" structs:"secret"`
}
type SocketAction struct {
Action string `json:"action" structs:"action"`
Payload interface{} `json:"payload" structs:"payload"`
}
type Status2FA struct {
Status bool `json:"status" structs:"status"`
}
type Task struct {
ID string `json:"id" structs:"id"`
Action string `json:"action" structs:"action"`
Data interface{} `json:"data" structs:"data"`
Queue string `json:"queue" structs:"queue"`
User string `json:"user" structs:"user"`
Timestamp time .Time `json:"timestamp" structs:"timestamp"`
Parent string `json:"parent" structs:"parent"`
}
type TaskJSON struct {
ID string `json:"id" structs:"id" example:"null"`
Action string `json:"action" structs:"action" example:"list-modules"`
Data interface{} `json:"data" structs:"data"`
Parent string `json:"parent" structs:"parent"`
}
type UserAuthorizations struct {
Username string `json:"username" structs:"username"`
Role string `json:"role" structs:"role"`
Actions []string `json:"actions" structs:"actions"`
OtpPass bool `json:"otppass" structs:"otppass"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.