mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 20:01:31 +00:00
66f04f7afe
Fixes Go Report Card gofmt score from 52% to 100%. Pure formatting changes — no logic modifications. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
725 B
Go
28 lines
725 B
Go
package domain
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
// AuditEvent records an action taken in the control plane.
|
|
type AuditEvent struct {
|
|
ID string `json:"id"`
|
|
Actor string `json:"actor"`
|
|
ActorType ActorType `json:"actor_type"`
|
|
Action string `json:"action"`
|
|
ResourceType string `json:"resource_type"`
|
|
ResourceID string `json:"resource_id"`
|
|
Details json.RawMessage `json:"details"`
|
|
Timestamp time.Time `json:"timestamp"`
|
|
}
|
|
|
|
// ActorType represents the entity performing an action.
|
|
type ActorType string
|
|
|
|
const (
|
|
ActorTypeUser ActorType = "User"
|
|
ActorTypeSystem ActorType = "System"
|
|
ActorTypeAgent ActorType = "Agent"
|
|
)
|