mock_casbin

package
v0.6.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package mock_casbin is a generated GoMock package.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL