mirror of
https://github.com/coder/coder.git
synced 2026-06-04 21:48:22 +00:00
1f5788feff
Removes our pseudo rbac resources like `WorkspaceApplicationConnect` in favor of additional verbs like `ssh`. This is to make more intuitive permissions for building custom roles. The source of truth is now `policy.go`
19 lines
376 B
Go Template
19 lines
376 B
Go Template
// Code generated by rbacgen/main.go. DO NOT EDIT.
|
|
package codersdk
|
|
|
|
type RBACResource string
|
|
|
|
const (
|
|
{{- range $element := . }}
|
|
Resource{{ pascalCaseName $element.FunctionName }} RBACResource = "{{ $element.Type }}"
|
|
{{- end }}
|
|
)
|
|
|
|
type RBACAction string
|
|
|
|
const (
|
|
{{- range $element := actionsList }}
|
|
{{ $element.Enum }} RBACAction = "{{ $element.Value }}"
|
|
{{- end }}
|
|
)
|