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

Method Has

coderd/database/modelmethods.go:256–258  ·  view source on GitHub ↗

Has returns true if the slice contains the provided scope.

(target APIKeyScope)

Source from the content-addressed store, hash-verified

254
255// Has returns true if the slice contains the provided scope.
256func (s APIKeyScopes) Has(target APIKeyScope) bool {
257 return slices.Contains(s, target)
258}
259
260// expandRBACScope merges the permissions of all scopes in the list into a
261// single RBAC scope. If the list is empty, it defaults to rbac.ScopeAll for

Callers 10

convertAPIKeyFunction · 0.45
provisionerJobLogsMethod · 0.45
workspaceAgentLogsMethod · 0.45
parseQueryParamSetFunction · 0.45
RunFunction · 0.45
TestGenerateFunction · 0.45
WorkspacesFunction · 0.45
TestGitAskpassFunction · 0.45

Calls 1

ContainsMethod · 0.45

Tested by 3

TestGenerateFunction · 0.36
TestGitAskpassFunction · 0.36