Documentation ¶
Index ¶
- type IEnforcer
- func (_m *IEnforcer) AddFunction(name string, function govaluate.ExpressionFunction)
- func (_m *IEnforcer) AddGroupingPolicies(rules [][]string) (bool, error)
- func (_m *IEnforcer) AddGroupingPoliciesEx(rules [][]string) (bool, error)
- func (_m *IEnforcer) AddGroupingPolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) AddNamedGroupingPolicies(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) AddNamedGroupingPoliciesEx(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) AddNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) AddNamedPolicies(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) AddNamedPoliciesEx(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) AddNamedPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) AddPermissionForUser(user string, permission ...string) (bool, error)
- func (_m *IEnforcer) AddPermissionsForUser(user string, permissions ...[]string) (bool, error)
- func (_m *IEnforcer) AddPolicies(rules [][]string) (bool, error)
- func (_m *IEnforcer) AddPoliciesEx(rules [][]string) (bool, error)
- func (_m *IEnforcer) AddPolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) AddRoleForUser(user string, role string, domain ...string) (bool, error)
- func (_m *IEnforcer) AddRoleForUserInDomain(user string, role string, domain string) (bool, error)
- func (_m *IEnforcer) BatchEnforce(requests [][]interface{}) ([]bool, error)
- func (_m *IEnforcer) BatchEnforceWithMatcher(matcher string, requests [][]interface{}) ([]bool, error)
- func (_m *IEnforcer) BuildRoleLinks() error
- func (_m *IEnforcer) ClearPolicy()
- func (_m *IEnforcer) DeleteAllUsersByDomain(domain string) (bool, error)
- func (_m *IEnforcer) DeleteDomains(domains ...string) (bool, error)
- func (_m *IEnforcer) DeletePermission(permission ...string) (bool, error)
- func (_m *IEnforcer) DeletePermissionForUser(user string, permission ...string) (bool, error)
- func (_m *IEnforcer) DeletePermissionsForUser(user string) (bool, error)
- func (_m *IEnforcer) DeleteRole(role string) (bool, error)
- func (_m *IEnforcer) DeleteRoleForUser(user string, role string, domain ...string) (bool, error)
- func (_m *IEnforcer) DeleteRoleForUserInDomain(user string, role string, domain string) (bool, error)
- func (_m *IEnforcer) DeleteRolesForUser(user string, domain ...string) (bool, error)
- func (_m *IEnforcer) DeleteRolesForUserInDomain(user string, domain string) (bool, error)
- func (_m *IEnforcer) DeleteUser(user string) (bool, error)
- func (_m *IEnforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool)
- func (_m *IEnforcer) EnableAutoNotifyWatcher(enable bool)
- func (_m *IEnforcer) EnableAutoSave(autoSave bool)
- func (_m *IEnforcer) EnableEnforce(enable bool)
- func (_m *IEnforcer) EnableLog(enable bool)
- func (_m *IEnforcer) Enforce(rvals ...interface{}) (bool, error)
- func (_m *IEnforcer) EnforceEx(rvals ...interface{}) (bool, []string, error)
- func (_m *IEnforcer) EnforceExWithMatcher(matcher string, rvals ...interface{}) (bool, []string, error)
- func (_m *IEnforcer) EnforceWithMatcher(matcher string, rvals ...interface{}) (bool, error)
- func (_m *IEnforcer) GetAdapter() persist.Adapter
- func (_m *IEnforcer) GetAllActions() ([]string, error)
- func (_m *IEnforcer) GetAllDomains() ([]string, error)
- func (_m *IEnforcer) GetAllNamedActions(ptype string) ([]string, error)
- func (_m *IEnforcer) GetAllNamedObjects(ptype string) ([]string, error)
- func (_m *IEnforcer) GetAllNamedRoles(ptype string) ([]string, error)
- func (_m *IEnforcer) GetAllNamedSubjects(ptype string) ([]string, error)
- func (_m *IEnforcer) GetAllObjects() ([]string, error)
- func (_m *IEnforcer) GetAllRoles() ([]string, error)
- func (_m *IEnforcer) GetAllRolesByDomain(domain string) ([]string, error)
- func (_m *IEnforcer) GetAllSubjects() ([]string, error)
- func (_m *IEnforcer) GetAllUsersByDomain(domain string) ([]string, error)
- func (_m *IEnforcer) GetFilteredGroupingPolicy(fieldIndex int, fieldValues ...string) ([][]string, error)
- func (_m *IEnforcer) GetFilteredNamedGroupingPolicy(ptype string, fieldIndex int, fieldValues ...string) ([][]string, error)
- func (_m *IEnforcer) GetFilteredNamedPolicy(ptype string, fieldIndex int, fieldValues ...string) ([][]string, error)
- func (_m *IEnforcer) GetFilteredPolicy(fieldIndex int, fieldValues ...string) ([][]string, error)
- func (_m *IEnforcer) GetGroupingPolicy() ([][]string, error)
- func (_m *IEnforcer) GetImplicitPermissionsForUser(user string, domain ...string) ([][]string, error)
- func (_m *IEnforcer) GetImplicitRolesForUser(name string, domain ...string) ([]string, error)
- func (_m *IEnforcer) GetImplicitUsersForPermission(permission ...string) ([]string, error)
- func (_m *IEnforcer) GetModel() model.Model
- func (_m *IEnforcer) GetNamedGroupingPolicy(ptype string) ([][]string, error)
- func (_m *IEnforcer) GetNamedPolicy(ptype string) ([][]string, error)
- func (_m *IEnforcer) GetPermissionsForUser(user string, domain ...string) ([][]string, error)
- func (_m *IEnforcer) GetPermissionsForUserInDomain(user string, domain string) [][]string
- func (_m *IEnforcer) GetPolicy() ([][]string, error)
- func (_m *IEnforcer) GetRoleManager() rbac.RoleManager
- func (_m *IEnforcer) GetRolesForUser(name string, domain ...string) ([]string, error)
- func (_m *IEnforcer) GetRolesForUserInDomain(name string, domain string) []string
- func (_m *IEnforcer) GetUsersForRole(name string, domain ...string) ([]string, error)
- func (_m *IEnforcer) GetUsersForRoleInDomain(name string, domain string) []string
- func (_m *IEnforcer) HasGroupingPolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) HasNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) HasNamedPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) HasPermissionForUser(user string, permission ...string) (bool, error)
- func (_m *IEnforcer) HasPolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) HasRoleForUser(name string, role string, domain ...string) (bool, error)
- func (_m *IEnforcer) InitWithAdapter(modelPath string, adapter persist.Adapter) error
- func (_m *IEnforcer) InitWithFile(modelPath string, policyPath string) error
- func (_m *IEnforcer) InitWithModelAndAdapter(m model.Model, adapter persist.Adapter) error
- func (_m *IEnforcer) IsFiltered() bool
- func (_m *IEnforcer) LoadFilteredPolicy(filter interface{}) error
- func (_m *IEnforcer) LoadIncrementalFilteredPolicy(filter interface{}) error
- func (_m *IEnforcer) LoadModel() error
- func (_m *IEnforcer) LoadPolicy() error
- func (_m *IEnforcer) RemoveFilteredGroupingPolicy(fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) RemoveFilteredNamedGroupingPolicy(ptype string, fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) RemoveFilteredNamedPolicy(ptype string, fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) RemoveGroupingPolicies(rules [][]string) (bool, error)
- func (_m *IEnforcer) RemoveGroupingPolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) RemoveNamedGroupingPolicies(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) RemoveNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) RemoveNamedPolicies(ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) RemoveNamedPolicy(ptype string, params ...interface{}) (bool, error)
- func (_m *IEnforcer) RemovePolicies(rules [][]string) (bool, error)
- func (_m *IEnforcer) RemovePolicy(params ...interface{}) (bool, error)
- func (_m *IEnforcer) SavePolicy() error
- func (_m *IEnforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) SelfAddPoliciesEx(sec string, ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) SelfAddPolicy(sec string, ptype string, rule []string) (bool, error)
- func (_m *IEnforcer) SelfRemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) SelfRemovePolicies(sec string, ptype string, rules [][]string) (bool, error)
- func (_m *IEnforcer) SelfRemovePolicy(sec string, ptype string, rule []string) (bool, error)
- func (_m *IEnforcer) SelfUpdatePolicies(sec string, ptype string, oldRules [][]string, newRules [][]string) (bool, error)
- func (_m *IEnforcer) SelfUpdatePolicy(sec string, ptype string, oldRule []string, newRule []string) (bool, error)
- func (_m *IEnforcer) SetAdapter(adapter persist.Adapter)
- func (_m *IEnforcer) SetEffector(eft effector.Effector)
- func (_m *IEnforcer) SetModel(m model.Model)
- func (_m *IEnforcer) SetRoleManager(rm rbac.RoleManager)
- func (_m *IEnforcer) SetWatcher(watcher persist.Watcher) error
- func (_m *IEnforcer) UpdateFilteredPolicies(newPolicies [][]string, fieldIndex int, fieldValues ...string) (bool, error)
- func (_m *IEnforcer) UpdateGroupingPolicies(oldRules [][]string, newRules [][]string) (bool, error)
- func (_m *IEnforcer) UpdateGroupingPolicy(oldRule []string, newRule []string) (bool, error)
- func (_m *IEnforcer) UpdateNamedGroupingPolicies(ptype string, oldRules [][]string, newRules [][]string) (bool, error)
- func (_m *IEnforcer) UpdateNamedGroupingPolicy(ptype string, oldRule []string, newRule []string) (bool, error)
- func (_m *IEnforcer) UpdatePolicies(oldPolicies [][]string, newPolicies [][]string) (bool, error)
- func (_m *IEnforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEnforcer ¶
IEnforcer is an autogenerated mock type for the IEnforcer type
func NewIEnforcer ¶
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 ¶
AddGroupingPolicies provides a mock function with given fields: rules
func (*IEnforcer) AddGroupingPoliciesEx ¶
AddGroupingPoliciesEx provides a mock function with given fields: rules
func (*IEnforcer) AddGroupingPolicy ¶
AddGroupingPolicy provides a mock function with given fields: params
func (*IEnforcer) AddNamedGroupingPolicies ¶
AddNamedGroupingPolicies provides a mock function with given fields: ptype, rules
func (*IEnforcer) AddNamedGroupingPoliciesEx ¶
AddNamedGroupingPoliciesEx provides a mock function with given fields: ptype, rules
func (*IEnforcer) AddNamedGroupingPolicy ¶
AddNamedGroupingPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) AddNamedPolicies ¶
AddNamedPolicies provides a mock function with given fields: ptype, rules
func (*IEnforcer) AddNamedPoliciesEx ¶
AddNamedPoliciesEx provides a mock function with given fields: ptype, rules
func (*IEnforcer) AddNamedPolicy ¶
AddNamedPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) AddPermissionForUser ¶
AddPermissionForUser provides a mock function with given fields: user, permission
func (*IEnforcer) AddPermissionsForUser ¶
AddPermissionsForUser provides a mock function with given fields: user, permissions
func (*IEnforcer) AddPolicies ¶
AddPolicies provides a mock function with given fields: rules
func (*IEnforcer) AddPoliciesEx ¶
AddPoliciesEx provides a mock function with given fields: rules
func (*IEnforcer) AddRoleForUser ¶
AddRoleForUser provides a mock function with given fields: user, role, domain
func (*IEnforcer) AddRoleForUserInDomain ¶
AddRoleForUserInDomain provides a mock function with given fields: user, role, domain
func (*IEnforcer) BatchEnforce ¶
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 (*IEnforcer) BuildRoleLinks ¶
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 ¶
DeleteAllUsersByDomain provides a mock function with given fields: domain
func (*IEnforcer) DeleteDomains ¶
DeleteDomains provides a mock function with given fields: domains
func (*IEnforcer) DeletePermission ¶
DeletePermission provides a mock function with given fields: permission
func (*IEnforcer) DeletePermissionForUser ¶
DeletePermissionForUser provides a mock function with given fields: user, permission
func (*IEnforcer) DeletePermissionsForUser ¶
DeletePermissionsForUser provides a mock function with given fields: user
func (*IEnforcer) DeleteRole ¶
DeleteRole provides a mock function with given fields: role
func (*IEnforcer) DeleteRoleForUser ¶
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 ¶
DeleteRolesForUser provides a mock function with given fields: user, domain
func (*IEnforcer) DeleteRolesForUserInDomain ¶
DeleteRolesForUserInDomain provides a mock function with given fields: user, domain
func (*IEnforcer) DeleteUser ¶
DeleteUser provides a mock function with given fields: user
func (*IEnforcer) EnableAutoBuildRoleLinks ¶
EnableAutoBuildRoleLinks provides a mock function with given fields: autoBuildRoleLinks
func (*IEnforcer) EnableAutoNotifyWatcher ¶
EnableAutoNotifyWatcher provides a mock function with given fields: enable
func (*IEnforcer) EnableAutoSave ¶
EnableAutoSave provides a mock function with given fields: autoSave
func (*IEnforcer) EnableEnforce ¶
EnableEnforce provides a mock function with given fields: enable
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 ¶
EnforceWithMatcher provides a mock function with given fields: matcher, rvals
func (*IEnforcer) GetAdapter ¶
GetAdapter provides a mock function with given fields:
func (*IEnforcer) GetAllActions ¶
GetAllActions provides a mock function with given fields:
func (*IEnforcer) GetAllDomains ¶
GetAllDomains provides a mock function with given fields:
func (*IEnforcer) GetAllNamedActions ¶
GetAllNamedActions provides a mock function with given fields: ptype
func (*IEnforcer) GetAllNamedObjects ¶
GetAllNamedObjects provides a mock function with given fields: ptype
func (*IEnforcer) GetAllNamedRoles ¶
GetAllNamedRoles provides a mock function with given fields: ptype
func (*IEnforcer) GetAllNamedSubjects ¶
GetAllNamedSubjects provides a mock function with given fields: ptype
func (*IEnforcer) GetAllObjects ¶
GetAllObjects provides a mock function with given fields:
func (*IEnforcer) GetAllRoles ¶
GetAllRoles provides a mock function with given fields:
func (*IEnforcer) GetAllRolesByDomain ¶
GetAllRolesByDomain provides a mock function with given fields: domain
func (*IEnforcer) GetAllSubjects ¶
GetAllSubjects provides a mock function with given fields:
func (*IEnforcer) GetAllUsersByDomain ¶
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 ¶
GetFilteredPolicy provides a mock function with given fields: fieldIndex, fieldValues
func (*IEnforcer) GetGroupingPolicy ¶
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 ¶
GetImplicitRolesForUser provides a mock function with given fields: name, domain
func (*IEnforcer) GetImplicitUsersForPermission ¶
GetImplicitUsersForPermission provides a mock function with given fields: permission
func (*IEnforcer) GetNamedGroupingPolicy ¶
GetNamedGroupingPolicy provides a mock function with given fields: ptype
func (*IEnforcer) GetNamedPolicy ¶
GetNamedPolicy provides a mock function with given fields: ptype
func (*IEnforcer) GetPermissionsForUser ¶
GetPermissionsForUser provides a mock function with given fields: user, domain
func (*IEnforcer) GetPermissionsForUserInDomain ¶
GetPermissionsForUserInDomain provides a mock function with given fields: user, domain
func (*IEnforcer) GetRoleManager ¶
func (_m *IEnforcer) GetRoleManager() rbac.RoleManager
GetRoleManager provides a mock function with given fields:
func (*IEnforcer) GetRolesForUser ¶
GetRolesForUser provides a mock function with given fields: name, domain
func (*IEnforcer) GetRolesForUserInDomain ¶
GetRolesForUserInDomain provides a mock function with given fields: name, domain
func (*IEnforcer) GetUsersForRole ¶
GetUsersForRole provides a mock function with given fields: name, domain
func (*IEnforcer) GetUsersForRoleInDomain ¶
GetUsersForRoleInDomain provides a mock function with given fields: name, domain
func (*IEnforcer) HasGroupingPolicy ¶
HasGroupingPolicy provides a mock function with given fields: params
func (*IEnforcer) HasNamedGroupingPolicy ¶
HasNamedGroupingPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) HasNamedPolicy ¶
HasNamedPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) HasPermissionForUser ¶
HasPermissionForUser provides a mock function with given fields: user, permission
func (*IEnforcer) HasRoleForUser ¶
HasRoleForUser provides a mock function with given fields: name, role, domain
func (*IEnforcer) InitWithAdapter ¶
InitWithAdapter provides a mock function with given fields: modelPath, adapter
func (*IEnforcer) InitWithFile ¶
InitWithFile provides a mock function with given fields: modelPath, policyPath
func (*IEnforcer) InitWithModelAndAdapter ¶
InitWithModelAndAdapter provides a mock function with given fields: m, adapter
func (*IEnforcer) IsFiltered ¶
IsFiltered provides a mock function with given fields:
func (*IEnforcer) LoadFilteredPolicy ¶
LoadFilteredPolicy provides a mock function with given fields: filter
func (*IEnforcer) LoadIncrementalFilteredPolicy ¶
LoadIncrementalFilteredPolicy provides a mock function with given fields: filter
func (*IEnforcer) LoadPolicy ¶
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 ¶
RemoveFilteredPolicy provides a mock function with given fields: fieldIndex, fieldValues
func (*IEnforcer) RemoveGroupingPolicies ¶
RemoveGroupingPolicies provides a mock function with given fields: rules
func (*IEnforcer) RemoveGroupingPolicy ¶
RemoveGroupingPolicy provides a mock function with given fields: params
func (*IEnforcer) RemoveNamedGroupingPolicies ¶
RemoveNamedGroupingPolicies provides a mock function with given fields: ptype, rules
func (*IEnforcer) RemoveNamedGroupingPolicy ¶
RemoveNamedGroupingPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) RemoveNamedPolicies ¶
RemoveNamedPolicies provides a mock function with given fields: ptype, rules
func (*IEnforcer) RemoveNamedPolicy ¶
RemoveNamedPolicy provides a mock function with given fields: ptype, params
func (*IEnforcer) RemovePolicies ¶
RemovePolicies provides a mock function with given fields: rules
func (*IEnforcer) RemovePolicy ¶
RemovePolicy provides a mock function with given fields: params
func (*IEnforcer) SavePolicy ¶
SavePolicy provides a mock function with given fields:
func (*IEnforcer) SelfAddPolicies ¶
SelfAddPolicies provides a mock function with given fields: sec, ptype, rules
func (*IEnforcer) SelfAddPoliciesEx ¶
SelfAddPoliciesEx provides a mock function with given fields: sec, ptype, rules
func (*IEnforcer) SelfAddPolicy ¶
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 ¶
SelfRemovePolicies provides a mock function with given fields: sec, ptype, rules
func (*IEnforcer) SelfRemovePolicy ¶
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 ¶
SetAdapter provides a mock function with given fields: adapter
func (*IEnforcer) SetEffector ¶
SetEffector provides a mock function with given fields: eft
func (*IEnforcer) SetRoleManager ¶
func (_m *IEnforcer) SetRoleManager(rm rbac.RoleManager)
SetRoleManager provides a mock function with given fields: rm
func (*IEnforcer) SetWatcher ¶
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 ¶
UpdateGroupingPolicies provides a mock function with given fields: oldRules, newRules
func (*IEnforcer) UpdateGroupingPolicy ¶
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 ¶
UpdatePolicies provides a mock function with given fields: oldPolicies, newPolicies