audit

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAuditFile

func SetAuditFile(file string) error

Types

type AuditRecord

type AuditRecord struct {
	Timestamp time.Time
	UID       string
	OID       schema.OID
	Component string
	Operation string
	Details   Details
}

type AuditTrail

type AuditTrail interface {
	Write(record ...AuditRecord)
}

func MakeTrail

func MakeTrail() AuditTrail

type Details

type Details struct {
	ID          string
	Name        string
	Field       string
	Description string
	Before      string
	After       string
}

Jump to

Keyboard shortcuts

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