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

Method All

coderd/rbac/object.go:141–150  ·  view source on GitHub ↗

All returns an object matching all resources of the same type.

()

Source from the content-addressed store, hash-verified

139
140// All returns an object matching all resources of the same type.
141func (z Object) All() Object {
142 return Object{
143 Owner: "",
144 OrgID: "",
145 Type: z.Type,
146 ACLUserList: map[string][]policy.Action{},
147 ACLGroupList: map[string][]policy.Action{},
148 AnyOrgOwner: z.AnyOrgOwner,
149 }
150}
151
152func (z Object) WithIDString(id string) Object {
153 return Object{

Calls

no outgoing calls

Tested by 6

TestAuthorizeDomainFunction · 0.64
TestAuthorizeLevelsFunction · 0.64
TestAuthorizeScopeFunction · 0.64
TestTemplateMethod · 0.64
TestWorkspaceMethod · 0.64
TestPrebuildsMethod · 0.64