mocks

package
v1.2.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEnforcer

type IEnforcer struct {
	mock.Mock
}

IEnforcer is an autogenerated mock type for the IEnforcer type

func NewIEnforcer

func NewIEnforcer(t interface {
	mock.TestingT
	Cleanup(func())
},
) *IEnforcer

NewIEnforcer creates a new instance of IEnforcer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IEnforcer) AddFunction

func (_m *IEnforcer) AddFunction(name string, function govaluate.ExpressionFunction)

AddFunction provides a mock function with given fields: name, function

func (*IEnforcer) AddGroupingPolicies

func (_m *IEnforcer) AddGroupingPolicies(rules [][]string) (bool, error)

AddGroupingPolicies provides a mock function with given fields: rules

func (*IEnforcer) AddGroupingPoliciesEx

func (_m *IEnforcer) AddGroupingPoliciesEx(rules [][]string) (bool, error)

AddGroupingPoliciesEx provides a mock function with given fields: rules

func (*IEnforcer) AddGroupingPolicy

func (_m *IEnforcer) AddGroupingPolicy(params ...interface{}) (bool, error)

AddGroupingPolicy provides a mock function with given fields: params

func (*IEnforcer) AddNamedGroupingPolicies

func (_m *IEnforcer) AddNamedGroupingPolicies(ptype string, rules [][]string) (bool, error)

AddNamedGroupingPolicies provides a mock function with given fields: ptype, rules

func (*IEnforcer) AddNamedGroupingPoliciesEx

func (_m *IEnforcer) AddNamedGroupingPoliciesEx(ptype string, rules [][]string) (bool, error)

AddNamedGroupingPoliciesEx provides a mock function with given fields: ptype, rules

func (*IEnforcer) AddNamedGroupingPolicy

func (_m *IEnforcer) AddNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)

AddNamedGroupingPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) AddNamedPolicies

func (_m *IEnforcer) AddNamedPolicies(ptype string, rules [][]string) (bool, error)

AddNamedPolicies provides a mock function with given fields: ptype, rules

func (*IEnforcer) AddNamedPoliciesEx

func (_m *IEnforcer) AddNamedPoliciesEx(ptype string, rules [][]string) (bool, error)

AddNamedPoliciesEx provides a mock function with given fields: ptype, rules

func (*IEnforcer) AddNamedPolicy

func (_m *IEnforcer) AddNamedPolicy(ptype string, params ...interface{}) (bool, error)

AddNamedPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) AddPermissionForUser

func (_m *IEnforcer) AddPermissionForUser(user string, permission ...string) (bool, error)

AddPermissionForUser provides a mock function with given fields: user, permission

func (*IEnforcer) AddPermissionsForUser

func (_m *IEnforcer) AddPermissionsForUser(user string, permissions ...[]string) (bool, error)

AddPermissionsForUser provides a mock function with given fields: user, permissions

func (*IEnforcer) AddPolicies

func (_m *IEnforcer) AddPolicies(rules [][]string) (bool, error)

AddPolicies provides a mock function with given fields: rules

func (*IEnforcer) AddPoliciesEx

func (_m *IEnforcer) AddPoliciesEx(rules [][]string) (bool, error)

AddPoliciesEx provides a mock function with given fields: rules

func (*IEnforcer) AddPolicy

func (_m *IEnforcer) AddPolicy(params ...interface{}) (bool, error)

AddPolicy provides a mock function with given fields: params

func (*IEnforcer) AddRoleForUser

func (_m *IEnforcer) AddRoleForUser(user string, role string, domain ...string) (bool, error)

AddRoleForUser provides a mock function with given fields: user, role, domain

func (*IEnforcer) AddRoleForUserInDomain

func (_m *IEnforcer) AddRoleForUserInDomain(user string, role string, domain string) (bool, error)

AddRoleForUserInDomain provides a mock function with given fields: user, role, domain

func (*IEnforcer) BatchEnforce

func (_m *IEnforcer) BatchEnforce(requests [][]interface{}) ([]bool, error)

BatchEnforce provides a mock function with given fields: requests

func (*IEnforcer) BatchEnforceWithMatcher

func (_m *IEnforcer) BatchEnforceWithMatcher(matcher string, requests [][]interface{}) ([]bool, error)

BatchEnforceWithMatcher provides a mock function with given fields: matcher, requests

func (_m *IEnforcer) BuildRoleLinks() error

BuildRoleLinks provides a mock function with given fields:

func (*IEnforcer) ClearPolicy

func (_m *IEnforcer) ClearPolicy()

ClearPolicy provides a mock function with given fields:

func (*IEnforcer) DeleteAllUsersByDomain

func (_m *IEnforcer) DeleteAllUsersByDomain(domain string) (bool, error)

DeleteAllUsersByDomain provides a mock function with given fields: domain

func (*IEnforcer) DeleteDomains

func (_m *IEnforcer) DeleteDomains(domains ...string) (bool, error)

DeleteDomains provides a mock function with given fields: domains

func (*IEnforcer) DeletePermission

func (_m *IEnforcer) DeletePermission(permission ...string) (bool, error)

DeletePermission provides a mock function with given fields: permission

func (*IEnforcer) DeletePermissionForUser

func (_m *IEnforcer) DeletePermissionForUser(user string, permission ...string) (bool, error)

DeletePermissionForUser provides a mock function with given fields: user, permission

func (*IEnforcer) DeletePermissionsForUser

func (_m *IEnforcer) DeletePermissionsForUser(user string) (bool, error)

DeletePermissionsForUser provides a mock function with given fields: user

func (*IEnforcer) DeleteRole

func (_m *IEnforcer) DeleteRole(role string) (bool, error)

DeleteRole provides a mock function with given fields: role

func (*IEnforcer) DeleteRoleForUser

func (_m *IEnforcer) DeleteRoleForUser(user string, role string, domain ...string) (bool, error)

DeleteRoleForUser provides a mock function with given fields: user, role, domain

func (*IEnforcer) DeleteRoleForUserInDomain

func (_m *IEnforcer) DeleteRoleForUserInDomain(user string, role string, domain string) (bool, error)

DeleteRoleForUserInDomain provides a mock function with given fields: user, role, domain

func (*IEnforcer) DeleteRolesForUser

func (_m *IEnforcer) DeleteRolesForUser(user string, domain ...string) (bool, error)

DeleteRolesForUser provides a mock function with given fields: user, domain

func (*IEnforcer) DeleteRolesForUserInDomain

func (_m *IEnforcer) DeleteRolesForUserInDomain(user string, domain string) (bool, error)

DeleteRolesForUserInDomain provides a mock function with given fields: user, domain

func (*IEnforcer) DeleteUser

func (_m *IEnforcer) DeleteUser(user string) (bool, error)

DeleteUser provides a mock function with given fields: user

func (_m *IEnforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool)

EnableAutoBuildRoleLinks provides a mock function with given fields: autoBuildRoleLinks

func (*IEnforcer) EnableAutoNotifyWatcher

func (_m *IEnforcer) EnableAutoNotifyWatcher(enable bool)

EnableAutoNotifyWatcher provides a mock function with given fields: enable

func (*IEnforcer) EnableAutoSave

func (_m *IEnforcer) EnableAutoSave(autoSave bool)

EnableAutoSave provides a mock function with given fields: autoSave

func (*IEnforcer) EnableEnforce

func (_m *IEnforcer) EnableEnforce(enable bool)

EnableEnforce provides a mock function with given fields: enable

func (*IEnforcer) EnableLog

func (_m *IEnforcer) EnableLog(enable bool)

EnableLog provides a mock function with given fields: enable

func (*IEnforcer) Enforce

func (_m *IEnforcer) Enforce(rvals ...interface{}) (bool, error)

Enforce provides a mock function with given fields: rvals

func (*IEnforcer) EnforceEx

func (_m *IEnforcer) EnforceEx(rvals ...interface{}) (bool, []string, error)

EnforceEx provides a mock function with given fields: rvals

func (*IEnforcer) EnforceExWithMatcher

func (_m *IEnforcer) EnforceExWithMatcher(matcher string, rvals ...interface{}) (bool, []string, error)

EnforceExWithMatcher provides a mock function with given fields: matcher, rvals

func (*IEnforcer) EnforceWithMatcher

func (_m *IEnforcer) EnforceWithMatcher(matcher string, rvals ...interface{}) (bool, error)

EnforceWithMatcher provides a mock function with given fields: matcher, rvals

func (*IEnforcer) GetAdapter

func (_m *IEnforcer) GetAdapter() persist.Adapter

GetAdapter provides a mock function with given fields:

func (*IEnforcer) GetAllActions

func (_m *IEnforcer) GetAllActions() ([]string, error)

GetAllActions provides a mock function with given fields:

func (*IEnforcer) GetAllDomains

func (_m *IEnforcer) GetAllDomains() ([]string, error)

GetAllDomains provides a mock function with given fields:

func (*IEnforcer) GetAllNamedActions

func (_m *IEnforcer) GetAllNamedActions(ptype string) ([]string, error)

GetAllNamedActions provides a mock function with given fields: ptype

func (*IEnforcer) GetAllNamedObjects

func (_m *IEnforcer) GetAllNamedObjects(ptype string) ([]string, error)

GetAllNamedObjects provides a mock function with given fields: ptype

func (*IEnforcer) GetAllNamedRoles

func (_m *IEnforcer) GetAllNamedRoles(ptype string) ([]string, error)

GetAllNamedRoles provides a mock function with given fields: ptype

func (*IEnforcer) GetAllNamedSubjects

func (_m *IEnforcer) GetAllNamedSubjects(ptype string) ([]string, error)

GetAllNamedSubjects provides a mock function with given fields: ptype

func (*IEnforcer) GetAllObjects

func (_m *IEnforcer) GetAllObjects() ([]string, error)

GetAllObjects provides a mock function with given fields:

func (*IEnforcer) GetAllRoles

func (_m *IEnforcer) GetAllRoles() ([]string, error)

GetAllRoles provides a mock function with given fields:

func (*IEnforcer) GetAllRolesByDomain

func (_m *IEnforcer) GetAllRolesByDomain(domain string) ([]string, error)

GetAllRolesByDomain provides a mock function with given fields: domain

func (*IEnforcer) GetAllSubjects

func (_m *IEnforcer) GetAllSubjects() ([]string, error)

GetAllSubjects provides a mock function with given fields:

func (*IEnforcer) GetAllUsersByDomain

func (_m *IEnforcer) GetAllUsersByDomain(domain string) ([]string, error)

GetAllUsersByDomain provides a mock function with given fields: domain

func (*IEnforcer) GetFilteredGroupingPolicy

func (_m *IEnforcer) GetFilteredGroupingPolicy(fieldIndex int, fieldValues ...string) ([][]string, error)

GetFilteredGroupingPolicy provides a mock function with given fields: fieldIndex, fieldValues

func (*IEnforcer) GetFilteredNamedGroupingPolicy

func (_m *IEnforcer) GetFilteredNamedGroupingPolicy(ptype string, fieldIndex int, fieldValues ...string) ([][]string, error)

GetFilteredNamedGroupingPolicy provides a mock function with given fields: ptype, fieldIndex, fieldValues

func (*IEnforcer) GetFilteredNamedPolicy

func (_m *IEnforcer) GetFilteredNamedPolicy(ptype string, fieldIndex int, fieldValues ...string) ([][]string, error)

GetFilteredNamedPolicy provides a mock function with given fields: ptype, fieldIndex, fieldValues

func (*IEnforcer) GetFilteredPolicy

func (_m *IEnforcer) GetFilteredPolicy(fieldIndex int, fieldValues ...string) ([][]string, error)

GetFilteredPolicy provides a mock function with given fields: fieldIndex, fieldValues

func (*IEnforcer) GetGroupingPolicy

func (_m *IEnforcer) GetGroupingPolicy() ([][]string, error)

GetGroupingPolicy provides a mock function with given fields:

func (*IEnforcer) GetImplicitPermissionsForUser

func (_m *IEnforcer) GetImplicitPermissionsForUser(user string, domain ...string) ([][]string, error)

GetImplicitPermissionsForUser provides a mock function with given fields: user, domain

func (*IEnforcer) GetImplicitRolesForUser

func (_m *IEnforcer) GetImplicitRolesForUser(name string, domain ...string) ([]string, error)

GetImplicitRolesForUser provides a mock function with given fields: name, domain

func (*IEnforcer) GetImplicitUsersForPermission

func (_m *IEnforcer) GetImplicitUsersForPermission(permission ...string) ([]string, error)

GetImplicitUsersForPermission provides a mock function with given fields: permission

func (*IEnforcer) GetModel

func (_m *IEnforcer) GetModel() model.Model

GetModel provides a mock function with given fields:

func (*IEnforcer) GetNamedGroupingPolicy

func (_m *IEnforcer) GetNamedGroupingPolicy(ptype string) ([][]string, error)

GetNamedGroupingPolicy provides a mock function with given fields: ptype

func (*IEnforcer) GetNamedPolicy

func (_m *IEnforcer) GetNamedPolicy(ptype string) ([][]string, error)

GetNamedPolicy provides a mock function with given fields: ptype

func (*IEnforcer) GetPermissionsForUser

func (_m *IEnforcer) GetPermissionsForUser(user string, domain ...string) ([][]string, error)

GetPermissionsForUser provides a mock function with given fields: user, domain

func (*IEnforcer) GetPermissionsForUserInDomain

func (_m *IEnforcer) GetPermissionsForUserInDomain(user string, domain string) [][]string

GetPermissionsForUserInDomain provides a mock function with given fields: user, domain

func (*IEnforcer) GetPolicy

func (_m *IEnforcer) GetPolicy() ([][]string, error)

GetPolicy provides a mock function with given fields:

func (*IEnforcer) GetRoleManager

func (_m *IEnforcer) GetRoleManager() rbac.RoleManager

GetRoleManager provides a mock function with given fields:

func (*IEnforcer) GetRolesForUser

func (_m *IEnforcer) GetRolesForUser(name string, domain ...string) ([]string, error)

GetRolesForUser provides a mock function with given fields: name, domain

func (*IEnforcer) GetRolesForUserInDomain

func (_m *IEnforcer) GetRolesForUserInDomain(name string, domain string) []string

GetRolesForUserInDomain provides a mock function with given fields: name, domain

func (*IEnforcer) GetUsersForRole

func (_m *IEnforcer) GetUsersForRole(name string, domain ...string) ([]string, error)

GetUsersForRole provides a mock function with given fields: name, domain

func (*IEnforcer) GetUsersForRoleInDomain

func (_m *IEnforcer) GetUsersForRoleInDomain(name string, domain string) []string

GetUsersForRoleInDomain provides a mock function with given fields: name, domain

func (*IEnforcer) HasGroupingPolicy

func (_m *IEnforcer) HasGroupingPolicy(params ...interface{}) (bool, error)

HasGroupingPolicy provides a mock function with given fields: params

func (*IEnforcer) HasNamedGroupingPolicy

func (_m *IEnforcer) HasNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)

HasNamedGroupingPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) HasNamedPolicy

func (_m *IEnforcer) HasNamedPolicy(ptype string, params ...interface{}) (bool, error)

HasNamedPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) HasPermissionForUser

func (_m *IEnforcer) HasPermissionForUser(user string, permission ...string) (bool, error)

HasPermissionForUser provides a mock function with given fields: user, permission

func (*IEnforcer) HasPolicy

func (_m *IEnforcer) HasPolicy(params ...interface{}) (bool, error)

HasPolicy provides a mock function with given fields: params

func (*IEnforcer) HasRoleForUser

func (_m *IEnforcer) HasRoleForUser(name string, role string, domain ...string) (bool, error)

HasRoleForUser provides a mock function with given fields: name, role, domain

func (*IEnforcer) InitWithAdapter

func (_m *IEnforcer) InitWithAdapter(modelPath string, adapter persist.Adapter) error

InitWithAdapter provides a mock function with given fields: modelPath, adapter

func (*IEnforcer) InitWithFile

func (_m *IEnforcer) InitWithFile(modelPath string, policyPath string) error

InitWithFile provides a mock function with given fields: modelPath, policyPath

func (*IEnforcer) InitWithModelAndAdapter

func (_m *IEnforcer) InitWithModelAndAdapter(m model.Model, adapter persist.Adapter) error

InitWithModelAndAdapter provides a mock function with given fields: m, adapter

func (*IEnforcer) IsFiltered

func (_m *IEnforcer) IsFiltered() bool

IsFiltered provides a mock function with given fields:

func (*IEnforcer) LoadFilteredPolicy

func (_m *IEnforcer) LoadFilteredPolicy(filter interface{}) error

LoadFilteredPolicy provides a mock function with given fields: filter

func (*IEnforcer) LoadIncrementalFilteredPolicy

func (_m *IEnforcer) LoadIncrementalFilteredPolicy(filter interface{}) error

LoadIncrementalFilteredPolicy provides a mock function with given fields: filter

func (*IEnforcer) LoadModel

func (_m *IEnforcer) LoadModel() error

LoadModel provides a mock function with given fields:

func (*IEnforcer) LoadPolicy

func (_m *IEnforcer) LoadPolicy() error

LoadPolicy provides a mock function with given fields:

func (*IEnforcer) RemoveFilteredGroupingPolicy

func (_m *IEnforcer) RemoveFilteredGroupingPolicy(fieldIndex int, fieldValues ...string) (bool, error)

RemoveFilteredGroupingPolicy provides a mock function with given fields: fieldIndex, fieldValues

func (*IEnforcer) RemoveFilteredNamedGroupingPolicy

func (_m *IEnforcer) RemoveFilteredNamedGroupingPolicy(ptype string, fieldIndex int, fieldValues ...string) (bool, error)

RemoveFilteredNamedGroupingPolicy provides a mock function with given fields: ptype, fieldIndex, fieldValues

func (*IEnforcer) RemoveFilteredNamedPolicy

func (_m *IEnforcer) RemoveFilteredNamedPolicy(ptype string, fieldIndex int, fieldValues ...string) (bool, error)

RemoveFilteredNamedPolicy provides a mock function with given fields: ptype, fieldIndex, fieldValues

func (*IEnforcer) RemoveFilteredPolicy

func (_m *IEnforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...string) (bool, error)

RemoveFilteredPolicy provides a mock function with given fields: fieldIndex, fieldValues

func (*IEnforcer) RemoveGroupingPolicies

func (_m *IEnforcer) RemoveGroupingPolicies(rules [][]string) (bool, error)

RemoveGroupingPolicies provides a mock function with given fields: rules

func (*IEnforcer) RemoveGroupingPolicy

func (_m *IEnforcer) RemoveGroupingPolicy(params ...interface{}) (bool, error)

RemoveGroupingPolicy provides a mock function with given fields: params

func (*IEnforcer) RemoveNamedGroupingPolicies

func (_m *IEnforcer) RemoveNamedGroupingPolicies(ptype string, rules [][]string) (bool, error)

RemoveNamedGroupingPolicies provides a mock function with given fields: ptype, rules

func (*IEnforcer) RemoveNamedGroupingPolicy

func (_m *IEnforcer) RemoveNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)

RemoveNamedGroupingPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) RemoveNamedPolicies

func (_m *IEnforcer) RemoveNamedPolicies(ptype string, rules [][]string) (bool, error)

RemoveNamedPolicies provides a mock function with given fields: ptype, rules

func (*IEnforcer) RemoveNamedPolicy

func (_m *IEnforcer) RemoveNamedPolicy(ptype string, params ...interface{}) (bool, error)

RemoveNamedPolicy provides a mock function with given fields: ptype, params

func (*IEnforcer) RemovePolicies

func (_m *IEnforcer) RemovePolicies(rules [][]string) (bool, error)

RemovePolicies provides a mock function with given fields: rules

func (*IEnforcer) RemovePolicy

func (_m *IEnforcer) RemovePolicy(params ...interface{}) (bool, error)

RemovePolicy provides a mock function with given fields: params

func (*IEnforcer) SavePolicy

func (_m *IEnforcer) SavePolicy() error

SavePolicy provides a mock function with given fields:

func (*IEnforcer) SelfAddPolicies

func (_m *IEnforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error)

SelfAddPolicies provides a mock function with given fields: sec, ptype, rules

func (*IEnforcer) SelfAddPoliciesEx

func (_m *IEnforcer) SelfAddPoliciesEx(sec string, ptype string, rules [][]string) (bool, error)

SelfAddPoliciesEx provides a mock function with given fields: sec, ptype, rules

func (*IEnforcer) SelfAddPolicy

func (_m *IEnforcer) SelfAddPolicy(sec string, ptype string, rule []string) (bool, error)

SelfAddPolicy provides a mock function with given fields: sec, ptype, rule

func (*IEnforcer) SelfRemoveFilteredPolicy

func (_m *IEnforcer) SelfRemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) (bool, error)

SelfRemoveFilteredPolicy provides a mock function with given fields: sec, ptype, fieldIndex, fieldValues

func (*IEnforcer) SelfRemovePolicies

func (_m *IEnforcer) SelfRemovePolicies(sec string, ptype string, rules [][]string) (bool, error)

SelfRemovePolicies provides a mock function with given fields: sec, ptype, rules

func (*IEnforcer) SelfRemovePolicy

func (_m *IEnforcer) SelfRemovePolicy(sec string, ptype string, rule []string) (bool, error)

SelfRemovePolicy provides a mock function with given fields: sec, ptype, rule

func (*IEnforcer) SelfUpdatePolicies

func (_m *IEnforcer) SelfUpdatePolicies(sec string, ptype string, oldRules [][]string, newRules [][]string) (bool, error)

SelfUpdatePolicies provides a mock function with given fields: sec, ptype, oldRules, newRules

func (*IEnforcer) SelfUpdatePolicy

func (_m *IEnforcer) SelfUpdatePolicy(sec string, ptype string, oldRule []string, newRule []string) (bool, error)

SelfUpdatePolicy provides a mock function with given fields: sec, ptype, oldRule, newRule

func (*IEnforcer) SetAdapter

func (_m *IEnforcer) SetAdapter(adapter persist.Adapter)

SetAdapter provides a mock function with given fields: adapter

func (*IEnforcer) SetEffector

func (_m *IEnforcer) SetEffector(eft effector.Effector)

SetEffector provides a mock function with given fields: eft

func (*IEnforcer) SetModel

func (_m *IEnforcer) SetModel(m model.Model)

SetModel provides a mock function with given fields: m

func (*IEnforcer) SetRoleManager

func (_m *IEnforcer) SetRoleManager(rm rbac.RoleManager)

SetRoleManager provides a mock function with given fields: rm

func (*IEnforcer) SetWatcher

func (_m *IEnforcer) SetWatcher(watcher persist.Watcher) error

SetWatcher provides a mock function with given fields: watcher

func (*IEnforcer) UpdateFilteredPolicies

func (_m *IEnforcer) UpdateFilteredPolicies(newPolicies [][]string, fieldIndex int, fieldValues ...string) (bool, error)

UpdateFilteredPolicies provides a mock function with given fields: newPolicies, fieldIndex, fieldValues

func (*IEnforcer) UpdateGroupingPolicies

func (_m *IEnforcer) UpdateGroupingPolicies(oldRules [][]string, newRules [][]string) (bool, error)

UpdateGroupingPolicies provides a mock function with given fields: oldRules, newRules

func (*IEnforcer) UpdateGroupingPolicy

func (_m *IEnforcer) UpdateGroupingPolicy(oldRule []string, newRule []string) (bool, error)

UpdateGroupingPolicy provides a mock function with given fields: oldRule, newRule

func (*IEnforcer) UpdateNamedGroupingPolicies

func (_m *IEnforcer) UpdateNamedGroupingPolicies(ptype string, oldRules [][]string, newRules [][]string) (bool, error)

UpdateNamedGroupingPolicies provides a mock function with given fields: ptype, oldRules, newRules

func (*IEnforcer) UpdateNamedGroupingPolicy

func (_m *IEnforcer) UpdateNamedGroupingPolicy(ptype string, oldRule []string, newRule []string) (bool, error)

UpdateNamedGroupingPolicy provides a mock function with given fields: ptype, oldRule, newRule

func (*IEnforcer) UpdatePolicies

func (_m *IEnforcer) UpdatePolicies(oldPolicies [][]string, newPolicies [][]string) (bool, error)

UpdatePolicies provides a mock function with given fields: oldPolicies, newPolicies

func (*IEnforcer) UpdatePolicy

func (_m *IEnforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error)

UpdatePolicy provides a mock function with given fields: oldPolicy, newPolicy

Jump to

Keyboard shortcuts

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