Documentation ¶
Index ¶
- type Gate
- func (_m *Gate) After(...)
- func (_m *Gate) Allows(ability string, arguments map[string]interface{}) bool
- func (_m *Gate) Any(abilities []string, arguments map[string]interface{}) bool
- func (_m *Gate) Before(...)
- func (_m *Gate) Define(ability string, ...)
- func (_m *Gate) Denies(ability string, arguments map[string]interface{}) bool
- func (_m *Gate) Inspect(ability string, arguments map[string]interface{}) *access.Response
- func (_m *Gate) None(abilities []string, arguments map[string]interface{}) bool
- func (_m *Gate) WithContext(ctx context.Context) access.Gate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gate ¶
Gate is an autogenerated mock type for the Gate type
func NewGate ¶
func NewGate(t mockConstructorTestingTNewGate) *Gate
NewGate creates a new instance of Gate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Gate) After ¶
func (_m *Gate) After(callback func(context.Context, string, map[string]interface{}, *access.Response) *access.Response)
After provides a mock function with given fields: callback
func (*Gate) Before ¶
func (_m *Gate) Before(callback func(context.Context, string, map[string]interface{}) *access.Response)
Before provides a mock function with given fields: callback
func (*Gate) Define ¶
func (_m *Gate) Define(ability string, callback func(context.Context, map[string]interface{}) *access.Response)
Define provides a mock function with given fields: ability, callback
Click to show internal directories.
Click to hide internal directories.