domain

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-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 AuditEvent

type AuditEvent struct {
	ID             string
	OrganizationID string
	ActorID        string // user ID or system identifier
	ActorType      string // "user" | "system" | "api_key"
	Action         string // e.g. "deployment.created", "user.invited"
	ResourceType   string // e.g. "deployment", "organization"
	ResourceID     string
	IPAddress      string
	UserAgent      string
	Outcome        AuditOutcome
	Metadata       map[string]any
	OccurredAt     time.Time
}

AuditEvent records a security-relevant action in the system. All state-mutating API calls should produce an audit event.

type AuditOutcome

type AuditOutcome string

AuditOutcome indicates whether the action succeeded or was denied.

const (
	AuditOutcomeSuccess AuditOutcome = "success"
	AuditOutcomeDenied  AuditOutcome = "denied"
	AuditOutcomeFailure AuditOutcome = "failure"
)

Jump to

Keyboard shortcuts

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