fix: add workspace_proxy type to auditlog friendly strings (#9194)

* fix: add workspace_proxy type to auditlog friendly strings
* add unit test and organization type
This commit is contained in:
Steven Masley
2023-08-21 10:53:41 -05:00
committed by GitHub
parent 07188b123a
commit b2ca3ebaa3
6 changed files with 38 additions and 4 deletions
+6
View File
@@ -24,6 +24,8 @@ const (
ResourceTypeGroup ResourceType = "group"
ResourceTypeLicense ResourceType = "license"
ResourceTypeConvertLogin ResourceType = "convert_login"
ResourceTypeWorkspaceProxy ResourceType = "workspace_proxy"
ResourceTypeOrganization ResourceType = "organization"
)
func (r ResourceType) FriendlyString() string {
@@ -50,6 +52,10 @@ func (r ResourceType) FriendlyString() string {
return "license"
case ResourceTypeConvertLogin:
return "login type conversion"
case ResourceTypeWorkspaceProxy:
return "workspace proxy"
case ResourceTypeOrganization:
return "organization"
default:
return "unknown"
}