FakeAuthorizer is an Authorizer that will return an error based on the "ConditionalReturn" function. By default, **no error** is returned. Meaning 'FakeAuthorizer' by default will never return "unauthorized".
| 367 | // "ConditionalReturn" function. By default, **no error** is returned. |
| 368 | // Meaning 'FakeAuthorizer' by default will never return "unauthorized". |
| 369 | type FakeAuthorizer struct { |
| 370 | ConditionalReturn func(context.Context, rbac.Subject, policy.Action, rbac.Object) error |
| 371 | sqlFilter string |
| 372 | } |
| 373 | |
| 374 | var _ rbac.Authorizer = (*FakeAuthorizer)(nil) |
| 375 |
nothing calls this directly
no outgoing calls
no test coverage detected