2024-11-15 23:35:21 +05:30
|
|
|
// Code generated by typegen/main.go. DO NOT EDIT.
|
2024-07-23 05:07:52 -10:00
|
|
|
|
|
|
|
|
import type { RBACAction, RBACResource } from "./typesGenerated";
|
|
|
|
|
|
|
|
|
|
// RBACResourceActions maps RBAC resources to their possible actions.
|
|
|
|
|
// Descriptions are included to document the purpose of each action.
|
|
|
|
|
// Source is in 'coderd/rbac/policy/policy.go'.
|
|
|
|
|
export const RBACResourceActions: Partial<
|
|
|
|
|
Record<RBACResource, Partial<Record<RBACAction, string>>>
|
|
|
|
|
> = {
|
|
|
|
|
{{- range $element := . }}
|
|
|
|
|
{{- if eq $element.Type "*" }}{{ continue }}{{ end }}
|
|
|
|
|
{{ $element.Type }}: {
|
|
|
|
|
{{- range $actionValue, $actionDescription := $element.Actions }}
|
|
|
|
|
{{ $actionValue }}: "{{ $actionDescription }}",
|
|
|
|
|
{{- end }}
|
|
|
|
|
},
|
|
|
|
|
{{- end }}
|
|
|
|
|
};
|