From 4aa38b8c157de8e18d528fd14e1159fb542d56bd Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Sun, 2 Jun 2024 13:18:42 +0200 Subject: [PATCH] Add missing file --- libs/diag/id.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libs/diag/id.go diff --git a/libs/diag/id.go b/libs/diag/id.go new file mode 100644 index 000000000..44af3c932 --- /dev/null +++ b/libs/diag/id.go @@ -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" +)