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

Method WithID

coderd/rbac/object.go:164–174  ·  view source on GitHub ↗
(id uuid.UUID)

Source from the content-addressed store, hash-verified

162}
163
164func (z Object) WithID(id uuid.UUID) Object {
165 return Object{
166 ID: id.String(),
167 Owner: z.Owner,
168 OrgID: z.OrgID,
169 Type: z.Type,
170 ACLUserList: z.ACLUserList,
171 ACLGroupList: z.ACLGroupList,
172 AnyOrgOwner: z.AnyOrgOwner,
173 }
174}
175
176// InOrg adds an org OwnerID to the resource
177func (z Object) InOrg(orgID uuid.UUID) Object {

Callers 15

convertObjectsMethod · 0.45
benchmarkSetupFunction · 0.45
ResourceUserObjectFunction · 0.45
TestOwnerExecFunction · 0.45
TestRolePermissionsFunction · 0.45
TestAuthorizeScopeFunction · 0.45
TestScopeAllowListFunction · 0.45
TestRegoInputValueFunction · 0.45

Calls 1

StringMethod · 0.45