Add missing file

This commit is contained in:
Lennart Kats 2024-06-02 13:18:42 +02:00
parent fc07725307
commit 4aa38b8c15
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 16 additions and 0 deletions

16
libs/diag/id.go Normal file
View File

@ -0,0 +1,16 @@
package diag
type ID string
// For select diagnostic messages we use IDs to identify them
// for support or tooling purposes.
// It is a non-goal to have an exhaustive list of IDs.
const (
// We have many subtly different permission errors.
// These are numbered for easy reference and tooling support.
PathPermissionDenied ID = "EPERM1"
ResourcePermissionDenied ID = "EPERM2"
CannotChangePathPermissions ID = "EPERM3"
RunAsDenied ID = "EPERM4"
PermissionNotIncluded ID = "EPERM5"
)