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

Method Valid

coderd/rbac/scopes_constants_gen.go:182–356  ·  view source on GitHub ↗

Valid reports whether the ScopeName matches one of the known scope values. This includes both builtin scope names and generated low-level scopes. Builtins are sourced from rbac.BuiltinScopeNames() at generation time to ensure changes in rbac/scopes.go remain in sync here.

()

Source from the content-addressed store, hash-verified

180// Builtins are sourced from rbac.BuiltinScopeNames() at generation time to
181// ensure changes in rbac/scopes.go remain in sync here.
182func (e ScopeName) Valid() bool {
183 switch e {
184 case ScopeName("coder:all"),
185 ScopeName("coder:application_connect"),
186 ScopeName("no_user_data"),
187 ScopeAiModelPriceRead,
188 ScopeAiModelPriceUpdate,
189 ScopeAiProviderCreate,
190 ScopeAiProviderDelete,
191 ScopeAiProviderRead,
192 ScopeAiProviderUpdate,
193 ScopeAiSeatCreate,
194 ScopeAiSeatRead,
195 ScopeAibridgeInterceptionCreate,
196 ScopeAibridgeInterceptionRead,
197 ScopeAibridgeInterceptionUpdate,
198 ScopeApiKeyCreate,
199 ScopeApiKeyDelete,
200 ScopeApiKeyRead,
201 ScopeApiKeyUpdate,
202 ScopeAssignOrgRoleAssign,
203 ScopeAssignOrgRoleCreate,
204 ScopeAssignOrgRoleDelete,
205 ScopeAssignOrgRoleRead,
206 ScopeAssignOrgRoleUnassign,
207 ScopeAssignOrgRoleUpdate,
208 ScopeAssignRoleAssign,
209 ScopeAssignRoleRead,
210 ScopeAssignRoleUnassign,
211 ScopeAuditLogCreate,
212 ScopeAuditLogRead,
213 ScopeBoundaryUsageDelete,
214 ScopeBoundaryUsageRead,
215 ScopeBoundaryUsageUpdate,
216 ScopeChatCreate,
217 ScopeChatDelete,
218 ScopeChatRead,
219 ScopeChatShare,
220 ScopeChatUpdate,
221 ScopeConnectionLogRead,
222 ScopeConnectionLogUpdate,
223 ScopeCryptoKeyCreate,
224 ScopeCryptoKeyDelete,
225 ScopeCryptoKeyRead,
226 ScopeCryptoKeyUpdate,
227 ScopeDebugInfoRead,
228 ScopeDeploymentConfigRead,
229 ScopeDeploymentConfigUpdate,
230 ScopeDeploymentStatsRead,
231 ScopeFileCreate,
232 ScopeFileRead,
233 ScopeGroupCreate,
234 ScopeGroupDelete,
235 ScopeGroupRead,
236 ScopeGroupUpdate,
237 ScopeGroupMemberRead,
238 ScopeIdpsyncSettingsRead,
239 ScopeIdpsyncSettingsUpdate,

Callers

nothing calls this directly

Calls 1

ScopeNameTypeAlias · 0.85

Tested by

no test coverage detected