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

Method Groups

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

Groups should return a map from group UUIDs (as strings) to the role they are being assigned. Additionally, it should return a string that will be used as the field name for the ValidationErrors returned from Validate.

()

Source from the content-addressed store, hash-verified

20 // are being assigned. Additionally, it should return a string that will be
21 // used as the field name for the ValidationErrors returned from Validate.
22 Groups() (map[string]Role, string)
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

Callers 5

ValidateFunction · 0.65
fetchUsersAndGroupsFunction · 0.65
TestEnterpriseMembersFunction · 0.65
TestGroupFunction · 0.65
TestGroupsFunction · 0.65

Calls

no outgoing calls

Tested by 3

TestEnterpriseMembersFunction · 0.52
TestGroupFunction · 0.52
TestGroupsFunction · 0.52