models

package
v0.0.0-...-66da4ae Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

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

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

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

type LogsStopAction struct {
	Id  string `json:"id" structs:"id"`
	Pid string `json:"pid" structs:"pid"`
}

type OTPJson

type OTPJson struct {
	OTP    string `json:"otp" structs:"otp"`
	Secret string `json:"secret" structs:"secret"`
}

type SocketAction

type SocketAction struct {
	Action  string      `json:"action" structs:"action"`
	Payload interface{} `json:"payload" structs:"payload"`
}

type Status2FA

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

type Task

type Task struct {
	ID        string      `json:"id" structs:"id"`
	Action    string      `json:"action" structs:"action"`
	Data      interface{} `json:"data" structs:"data"`
	Extra     interface{} `json:"extra" structs:"extra"`
	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

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"`
	Extra  interface{} `json:"extra" structs:"extra"`
	Parent string      `json:"parent" structs:"parent"`
}

type UserAuthorizations

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"`
}

Jump to

Keyboard shortcuts

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