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

Struct fakePreparedAuthorizer

coderd/coderdtest/authorize.go:409–414  ·  view source on GitHub ↗

fakePreparedAuthorizer is the prepared version of a FakeAuthorizer. It will return the same error as the original FakeAuthorizer.

Source from the content-addressed store, hash-verified

407// fakePreparedAuthorizer is the prepared version of a FakeAuthorizer. It will
408// return the same error as the original FakeAuthorizer.
409type fakePreparedAuthorizer struct {
410 sync.RWMutex
411 Original *FakeAuthorizer
412 Subject rbac.Subject
413 Action policy.Action
414}
415
416func (f *fakePreparedAuthorizer) Authorize(ctx context.Context, object rbac.Object) error {
417 return f.Original.Authorize(ctx, f.Subject, f.Action, object)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected