Logs: Replace status string literals with generic constants

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-10-21 15:08:10 +02:00
parent cd7fa6adca
commit 69c816d616
8 changed files with 27 additions and 22 deletions

View file

@ -2,18 +2,22 @@ package status
// Generic outcomes for use in system and audit logs.
const (
Failed = "failed"
Denied = "denied"
Granted = "granted"
Added = "added"
Updated = "updated"
Created = "created"
Deleted = "deleted"
Succeeded = "succeeded"
NotFound = "not found"
Verified = "verified"
Activated = "activated"
Deactivated = "deactivated"
Joined = "joined"
Synced = "synced"
Failed = "failed"
Denied = "denied"
Granted = "granted"
Added = "added"
Updated = "updated"
Created = "created"
Deleted = "deleted"
Succeeded = "succeeded"
Verified = "verified"
Activated = "activated"
Deactivated = "deactivated"
Joined = "joined"
Synced = "synced"
Skipped = "skipped"
NotFound = "not found"
Unsupported = "not supported"
RateLimited = "rate limit exceeded"
InsufficientStorage = "insufficient storage"
)