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

Function NewStrictCachingAuthorizer

coderd/rbac/authz.go:315–319  ·  view source on GitHub ↗

NewStrictCachingAuthorizer is mainly just for testing.

(registry prometheus.Registerer)

Source from the content-addressed store, hash-verified

313
314// NewStrictCachingAuthorizer is mainly just for testing.
315func NewStrictCachingAuthorizer(registry prometheus.Registerer) Authorizer {
316 auth := NewAuthorizer(registry)
317 auth.strict = true
318 return Cacher(auth)
319}
320
321// NewStrictAuthorizer is for testing only. It skips the caching layer,
322// which is useful when every authorize call is unique (0% cache hit

Calls 2

NewAuthorizerFunction · 0.85
CacherFunction · 0.85

Tested by 15

dbauthzTestStoreFunction · 0.74
BenchmarkRBACAuthorizeFunction · 0.74
BenchmarkRBACFilterFunction · 0.74
TestOwnerExecFunction · 0.74
TestGetAuthorizedChatsFunction · 0.74
TestAsChatdFunction · 0.74
wrapDBAuthzFunction · 0.74