MCPcopy Index your code
hub / github.com/coder/coder / BuiltinScopeNames

Function BuiltinScopeNames

coderd/rbac/scopes.go:123–130  ·  view source on GitHub ↗

BuiltinScopeNames returns the list of built-in high-level scope names defined in this package (e.g., "all", "application_connect"). The result is sorted for deterministic ordering in code generation and tests.

()

Source from the content-addressed store, hash-verified

121// defined in this package (e.g., "all", "application_connect"). The result
122// is sorted for deterministic ordering in code generation and tests.
123func BuiltinScopeNames() []ScopeName {
124 names := make([]ScopeName, 0, len(builtinScopes))
125 for name := range builtinScopes {
126 names = append(names, name)
127 }
128 slices.Sort(names)
129 return names
130}
131
132// Composite coder:* scopes expand to multiple low-level resource:action permissions
133// at Site level. These names are persisted in the DB and expanded during

Callers 3

expectedFromRBACFunction · 0.92
collectAllScopeNamesFunction · 0.92
generateRbacObjectsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected