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