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

TypeAlias RoleIdentifiers

coderd/rbac/roles.go:50–50  ·  view source on GitHub ↗

RoleIdentifiers is a list of user assignable role names. The role names must be in the builtInRoles map. Any non-user assignable roles will generate an error on Expand.

Source from the content-addressed store, hash-verified

48// in the builtInRoles map. Any non-user assignable roles will generate an
49// error on Expand.
50type RoleIdentifiers []RoleIdentifier
51
52func (names RoleIdentifiers) Expand() ([]Role, error) {
53 return rolesByNames(names)

Callers 1

AssertRBACFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected