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

Method WithIDString

coderd/rbac/object.go:152–162  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

150}
151
152func (z Object) WithIDString(id string) Object {
153 return Object{
154 ID: id,
155 Owner: z.Owner,
156 OrgID: z.OrgID,
157 Type: z.Type,
158 ACLUserList: z.ACLUserList,
159 ACLGroupList: z.ACLGroupList,
160 AnyOrgOwner: z.AnyOrgOwner,
161 }
162}
163
164func (z Object) WithID(id uuid.UUID) Object {
165 return Object{

Callers 2

RBACObjectMethod · 0.80
RBACObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected