Documentation
¶
Index ¶
- Constants
- func CanAdd[T TAuthable](a auth.OpAuth, u T) error
- func CanDelete[T TAuthable](a auth.OpAuth, u T) error
- func CanUpdate[T TAuthable](a auth.OpAuth, u T, field string, value any) error
- func CanView[T TAuthable](a auth.OpAuth, u T, field string, value any) error
- type LogEntry
- type Logs
- func (ll *Logs) AsObjects(start, max int, auth auth.OpAuth) []schema.Object
- func (ll *Logs) Clone() *Logs
- func (ll *Logs) List() []LogEntry
- func (ll *Logs) Load(blob json.RawMessage) error
- func (ll Logs) Print()
- func (ll *Logs) Received(records ...audit.AuditRecord)
- func (ll Logs) Save() (json.RawMessage, error)
- func (ll *Logs) UpdateByOID(auth auth.OpAuth, oid schema.OID, value string) ([]interface{}, error)
- func (ll Logs) Validate() error
- type TAuthable
Constants ¶
View Source
const ControllerDeviceID = schema.ControllerDeviceID
View Source
const ControllerName = schema.ControllerName
View Source
const LogDetails = schema.LogDetails
View Source
const LogField = schema.LogField
View Source
const LogItem = schema.LogItem
View Source
const LogItemID = schema.LogItemID
View Source
const LogItemName = schema.LogItemName
View Source
const LogTimestamp = schema.LogTimestamp
View Source
const LogUID = schema.LogUID
View Source
const LogsFirst = schema.LogsFirst
View Source
const LogsLast = schema.LogsLast
View Source
const LogsOID = schema.LogsOID
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogEntry ¶
type LogEntry struct {
catalog.CatalogLogEntry
Timestamp time.Time `json:"timestamp"`
UID string `json:"uid"`
Item string `json:"item"`
ItemID string `json:"item-id"`
ItemName string `json:"item-name"`
Field string `json:"field"`
Details string `json:"details"`
}
func NewLogEntry ¶
func (LogEntry) AsRuleEntity ¶
Click to show internal directories.
Click to hide internal directories.