Pair is on the RecordingAuthorizer to be easy to find and keep the pkg interface smaller.
(action policy.Action, object rbac.Objecter)
| 169 | // Pair is on the RecordingAuthorizer to be easy to find and keep the pkg |
| 170 | // interface smaller. |
| 171 | func (*RecordingAuthorizer) Pair(action policy.Action, object rbac.Objecter) ActionObjectPair { |
| 172 | return ActionObjectPair{ |
| 173 | Action: action, |
| 174 | Object: object.RBACObject(), |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | // AllAsserted returns an error if all calls to Authorize() have not been |
| 179 | // asserted and checked. This is useful for testing to ensure that all |