Documentation ¶
Overview ¶
Package mock_casbin is a generated GoMock package.
Index ¶
- type MockEnforcer
- func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
- func (m *MockEnforcer) Enforce(emailId, resource, action, resourceItem string) bool
- func (m *MockEnforcer) EnforceByEmail(emailId, resource, action, resourceItem string) bool
- func (m *MockEnforcer) EnforceByEmailInBatch(emailId, resource, action string, vals []string) map[string]bool
- func (m *MockEnforcer) EnforceErr(emailId, resource, action, resourceItem string) error
- func (m *MockEnforcer) GetCacheDump() string
- func (m *MockEnforcer) InvalidateCache(emailId string) bool
- func (m *MockEnforcer) InvalidateCompleteCache()
- func (m *MockEnforcer) ReloadPolicy() error
- type MockEnforcerMockRecorder
- func (mr *MockEnforcerMockRecorder) Enforce(emailId, resource, action, resourceItem interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) EnforceByEmail(emailId, resource, action, resourceItem interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) EnforceByEmailInBatch(emailId, resource, action, vals interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) EnforceErr(emailId, resource, action, resourceItem interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) GetCacheDump() *gomock.Call
- func (mr *MockEnforcerMockRecorder) InvalidateCache(emailId interface{}) *gomock.Call
- func (mr *MockEnforcerMockRecorder) InvalidateCompleteCache() *gomock.Call
- func (mr *MockEnforcerMockRecorder) ReloadPolicy() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEnforcer ¶
type MockEnforcer struct {
// contains filtered or unexported fields
}
MockEnforcer is a mock of Enforcer interface.
func NewMockEnforcer ¶
func NewMockEnforcer(ctrl *gomock.Controller) *MockEnforcer
NewMockEnforcer creates a new mock instance.
func (*MockEnforcer) EXPECT ¶
func (m *MockEnforcer) EXPECT() *MockEnforcerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnforcer) Enforce ¶
func (m *MockEnforcer) Enforce(emailId, resource, action, resourceItem string) bool
Enforce mocks base method.
func (*MockEnforcer) EnforceByEmail ¶
func (m *MockEnforcer) EnforceByEmail(emailId, resource, action, resourceItem string) bool
EnforceByEmail mocks base method.
func (*MockEnforcer) EnforceByEmailInBatch ¶
func (m *MockEnforcer) EnforceByEmailInBatch(emailId, resource, action string, vals []string) map[string]bool
EnforceByEmailInBatch mocks base method.
func (*MockEnforcer) EnforceErr ¶
func (m *MockEnforcer) EnforceErr(emailId, resource, action, resourceItem string) error
EnforceErr mocks base method.
func (*MockEnforcer) GetCacheDump ¶
func (m *MockEnforcer) GetCacheDump() string
GetCacheDump mocks base method.
func (*MockEnforcer) InvalidateCache ¶
func (m *MockEnforcer) InvalidateCache(emailId string) bool
InvalidateCache mocks base method.
func (*MockEnforcer) InvalidateCompleteCache ¶
func (m *MockEnforcer) InvalidateCompleteCache()
InvalidateCompleteCache mocks base method.
func (*MockEnforcer) ReloadPolicy ¶
func (m *MockEnforcer) ReloadPolicy() error
ReloadPolicy mocks base method.
type MockEnforcerMockRecorder ¶
type MockEnforcerMockRecorder struct {
// contains filtered or unexported fields
}
MockEnforcerMockRecorder is the mock recorder for MockEnforcer.
func (*MockEnforcerMockRecorder) Enforce ¶
func (mr *MockEnforcerMockRecorder) Enforce(emailId, resource, action, resourceItem interface{}) *gomock.Call
Enforce indicates an expected call of Enforce.
func (*MockEnforcerMockRecorder) EnforceByEmail ¶
func (mr *MockEnforcerMockRecorder) EnforceByEmail(emailId, resource, action, resourceItem interface{}) *gomock.Call
EnforceByEmail indicates an expected call of EnforceByEmail.
func (*MockEnforcerMockRecorder) EnforceByEmailInBatch ¶
func (mr *MockEnforcerMockRecorder) EnforceByEmailInBatch(emailId, resource, action, vals interface{}) *gomock.Call
EnforceByEmailInBatch indicates an expected call of EnforceByEmailInBatch.
func (*MockEnforcerMockRecorder) EnforceErr ¶
func (mr *MockEnforcerMockRecorder) EnforceErr(emailId, resource, action, resourceItem interface{}) *gomock.Call
EnforceErr indicates an expected call of EnforceErr.
func (*MockEnforcerMockRecorder) GetCacheDump ¶
func (mr *MockEnforcerMockRecorder) GetCacheDump() *gomock.Call
GetCacheDump indicates an expected call of GetCacheDump.
func (*MockEnforcerMockRecorder) InvalidateCache ¶
func (mr *MockEnforcerMockRecorder) InvalidateCache(emailId interface{}) *gomock.Call
InvalidateCache indicates an expected call of InvalidateCache.
func (*MockEnforcerMockRecorder) InvalidateCompleteCache ¶
func (mr *MockEnforcerMockRecorder) InvalidateCompleteCache() *gomock.Call
InvalidateCompleteCache indicates an expected call of InvalidateCompleteCache.
func (*MockEnforcerMockRecorder) ReloadPolicy ¶
func (mr *MockEnforcerMockRecorder) ReloadPolicy() *gomock.Call
ReloadPolicy indicates an expected call of ReloadPolicy.