auditlog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	CreatedAt *time.Time     `json:"created_at,omitempty" db:"created_at"`
	ID        string         `json:"id" db:"id"`
	OrgID     uint           `json:"org_id" db:"org_id"`
	OrgName   string         `json:"org_name" db:"org_name"`
	SourceIP  string         `json:"source_ip" db:"source_ip"`
	Endpoint  string         `json:"endpoint" db:"endpoint"`
	Action    string         `json:"action" db:"action"`
	Actor     AuditLogActor  `json:"actor" db:"actor"`
	Target    AuditLogTarget `json:"target,omitempty" db:"target"`
}

type AuditLogActor

type AuditLogActor struct {
	ApiKey string `json:"api_key,omitempty" db:"api_key"`
	Email  string `json:"email,omitempty" db:"email"`
}

type AuditLogExpanded added in v1.2.0

type AuditLogExpanded AuditLog

func (AuditLogExpanded) Summary added in v1.2.0

func (a AuditLogExpanded) Summary() (any, error)

type AuditLogSummary added in v1.2.0

type AuditLogSummary struct {
	Time         string `json:"time"`
	SourceIP     string `json:"source_ip"`
	Actor        string `json:"actor"`
	Action       string `json:"action"`
	Endpoint     string `json:"endpoint"`
	Organization string `json:"organization"`
}

type AuditLogTarget

type AuditLogTarget map[string]interface{}

Jump to

Keyboard shortcuts

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