Versions in this module Expand all Collapse all v1 v1.15.0 Sep 9, 2024 Changes in this version + type Gate struct + func NewGate(t interface{ ... }) *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(callback func(context.Context, string, map[string]interface{}) access.Response) + func (_m *Gate) Define(ability string, ...) + func (_m *Gate) Denies(ability string, arguments map[string]interface{}) bool + func (_m *Gate) EXPECT() *Gate_Expecter + 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 + type Gate_After_Call struct + func (_c *Gate_After_Call) Return() *Gate_After_Call + func (_c *Gate_After_Call) Run(run func(...)) *Gate_After_Call + func (_c *Gate_After_Call) RunAndReturn(run func(...)) *Gate_After_Call + type Gate_Allows_Call struct + func (_c *Gate_Allows_Call) Return(_a0 bool) *Gate_Allows_Call + func (_c *Gate_Allows_Call) Run(run func(ability string, arguments map[string]interface{})) *Gate_Allows_Call + func (_c *Gate_Allows_Call) RunAndReturn(run func(string, map[string]interface{}) bool) *Gate_Allows_Call + type Gate_Any_Call struct + func (_c *Gate_Any_Call) Return(_a0 bool) *Gate_Any_Call + func (_c *Gate_Any_Call) Run(run func(abilities []string, arguments map[string]interface{})) *Gate_Any_Call + func (_c *Gate_Any_Call) RunAndReturn(run func([]string, map[string]interface{}) bool) *Gate_Any_Call + type Gate_Before_Call struct + func (_c *Gate_Before_Call) Return() *Gate_Before_Call + func (_c *Gate_Before_Call) Run(...) *Gate_Before_Call + func (_c *Gate_Before_Call) RunAndReturn(...) *Gate_Before_Call + type Gate_Define_Call struct + func (_c *Gate_Define_Call) Return() *Gate_Define_Call + func (_c *Gate_Define_Call) Run(run func(ability string, ...)) *Gate_Define_Call + func (_c *Gate_Define_Call) RunAndReturn(...) *Gate_Define_Call + type Gate_Denies_Call struct + func (_c *Gate_Denies_Call) Return(_a0 bool) *Gate_Denies_Call + func (_c *Gate_Denies_Call) Run(run func(ability string, arguments map[string]interface{})) *Gate_Denies_Call + func (_c *Gate_Denies_Call) RunAndReturn(run func(string, map[string]interface{}) bool) *Gate_Denies_Call + type Gate_Expecter struct + func (_e *Gate_Expecter) After(callback interface{}) *Gate_After_Call + func (_e *Gate_Expecter) Allows(ability interface{}, arguments interface{}) *Gate_Allows_Call + func (_e *Gate_Expecter) Any(abilities interface{}, arguments interface{}) *Gate_Any_Call + func (_e *Gate_Expecter) Before(callback interface{}) *Gate_Before_Call + func (_e *Gate_Expecter) Define(ability interface{}, callback interface{}) *Gate_Define_Call + func (_e *Gate_Expecter) Denies(ability interface{}, arguments interface{}) *Gate_Denies_Call + func (_e *Gate_Expecter) Inspect(ability interface{}, arguments interface{}) *Gate_Inspect_Call + func (_e *Gate_Expecter) None(abilities interface{}, arguments interface{}) *Gate_None_Call + func (_e *Gate_Expecter) WithContext(ctx interface{}) *Gate_WithContext_Call + type Gate_Inspect_Call struct + func (_c *Gate_Inspect_Call) Return(_a0 access.Response) *Gate_Inspect_Call + func (_c *Gate_Inspect_Call) Run(run func(ability string, arguments map[string]interface{})) *Gate_Inspect_Call + func (_c *Gate_Inspect_Call) RunAndReturn(run func(string, map[string]interface{}) access.Response) *Gate_Inspect_Call + type Gate_None_Call struct + func (_c *Gate_None_Call) Return(_a0 bool) *Gate_None_Call + func (_c *Gate_None_Call) Run(run func(abilities []string, arguments map[string]interface{})) *Gate_None_Call + func (_c *Gate_None_Call) RunAndReturn(run func([]string, map[string]interface{}) bool) *Gate_None_Call + type Gate_WithContext_Call struct + func (_c *Gate_WithContext_Call) Return(_a0 access.Gate) *Gate_WithContext_Call + func (_c *Gate_WithContext_Call) Run(run func(ctx context.Context)) *Gate_WithContext_Call + func (_c *Gate_WithContext_Call) RunAndReturn(run func(context.Context) access.Gate) *Gate_WithContext_Call + type Response struct + func NewResponse(t interface{ ... }) *Response + func (_m *Response) Allowed() bool + func (_m *Response) EXPECT() *Response_Expecter + func (_m *Response) Message() string + type Response_Allowed_Call struct + func (_c *Response_Allowed_Call) Return(_a0 bool) *Response_Allowed_Call + func (_c *Response_Allowed_Call) Run(run func()) *Response_Allowed_Call + func (_c *Response_Allowed_Call) RunAndReturn(run func() bool) *Response_Allowed_Call + type Response_Expecter struct + func (_e *Response_Expecter) Allowed() *Response_Allowed_Call + func (_e *Response_Expecter) Message() *Response_Message_Call + type Response_Message_Call struct + func (_c *Response_Message_Call) Return(_a0 string) *Response_Message_Call + func (_c *Response_Message_Call) Run(run func()) *Response_Message_Call + func (_c *Response_Message_Call) RunAndReturn(run func() string) *Response_Message_Call