Authorize will authorize the given subject to perform the given action on the given object. Authorize is pure and deterministic with respect to its arguments and the surrounding object.
(ctx context.Context, subject Subject, action policy.Action, object Object)
| 198 | // on the given object. Authorize is pure and deterministic with respect to |
| 199 | // its arguments and the surrounding object. |
| 200 | Authorize(ctx context.Context, subject Subject, action policy.Action, object Object) error |
| 201 | Prepare(ctx context.Context, subject Subject, action policy.Action, objectType string) (PreparedAuthorized, error) |
| 202 | } |
| 203 |
no outgoing calls