Check is an interface that defines a method for checking permissions. It requires an implementation of InvokeCheck that takes a context and a PermissionCheckRequest, and returns a PermissionCheckResponse and an error if any.
| 30 | // It requires an implementation of InvokeCheck that takes a context and a PermissionCheckRequest, |
| 31 | // and returns a PermissionCheckResponse and an error if any. |
| 32 | type Check interface { |
| 33 | Check(ctx context.Context, request *base.PermissionCheckRequest) (response *base.PermissionCheckResponse, err error) |
| 34 | } |
| 35 | |
| 36 | // Expand is an interface that defines a method for expanding permissions. |
| 37 | // It requires an implementation of InvokeExpand that takes a context and a PermissionExpandRequest, |
no outgoing calls
no test coverage detected