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

Struct RecordingAuthorizer

coderd/coderdtest/authorize.go:158–162  ·  view source on GitHub ↗

RecordingAuthorizer wraps any rbac.Authorizer and records all Authorize() calls made. This is useful for testing as these calls can later be asserted.

Source from the content-addressed store, hash-verified

156// RecordingAuthorizer wraps any rbac.Authorizer and records all Authorize()
157// calls made. This is useful for testing as these calls can later be asserted.
158type RecordingAuthorizer struct {
159 sync.RWMutex
160 Called []AuthCall
161 Wrapped rbac.Authorizer
162}
163
164type ActionObjectPair struct {
165 Action policy.Action

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected