Files
gitea/models/audit/scopes.go
bircni da37b7916b feat: Add audit logging (#38189)
Co-authored-by: bircni <bircni@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-09-12 08:15:23 +00:00

16 lines
477 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package audit
// ScopeType identifies the unit an audit event belongs to (for filtering in UI).
// Target-specific details live in Metadata, not as typed objects in the audit package.
type ScopeType string
const (
ScopeSystem ScopeType = "system"
ScopeUser ScopeType = "user"
ScopeOrganization ScopeType = "organization"
ScopeRepository ScopeType = "repository"
)