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

Method ValidateRole

coderd/rbac/acl/updatevalidator.go:25–25  ·  view source on GitHub ↗

ValidateRole should return an error that will be used in the ValidationError if the role is invalid for the corresponding resource type.

(role Role)

Source from the content-addressed store, hash-verified

23 // ValidateRole should return an error that will be used in the
24 // ValidationError if the role is invalid for the corresponding resource type.
25 ValidateRole(role Role) error
26}
27
28func Validate[Role codersdk.WorkspaceRole | codersdk.TemplateRole | codersdk.ChatRole](

Callers 1

ValidateFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected