mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user