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

Method WithAllowList

coderd/database/modelmethods.go:251–253  ·  view source on GitHub ↗

WithAllowList wraps the scopes with a database allow list, producing an ExpandableScope that always enforces the allow list overlay when expanded.

(list AllowList)

Source from the content-addressed store, hash-verified

249// WithAllowList wraps the scopes with a database allow list, producing an
250// ExpandableScope that always enforces the allow list overlay when expanded.
251func (s APIKeyScopes) WithAllowList(list AllowList) APIKeyScopeSet {
252 return APIKeyScopeSet{Scopes: s, AllowList: list}
253}
254
255// Has returns true if the slice contains the provided scope.
256func (s APIKeyScopes) Has(target APIKeyScope) bool {

Callers 1

TestAPIKeyScopesExpandFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestAPIKeyScopesExpandFunction · 0.64