SYMBOL INDEX (1396 symbols across 111 files) FILE: .github/scripts/benchmark_formatter.py function strip_worker_suffix (line 12) | def strip_worker_suffix(text: str) -> str: function get_icon (line 15) | def get_icon(diff_val: float) -> str: function clean_superscripts (line 22) | def clean_superscripts(text: str) -> str: function parse_val (line 25) | def parse_val(token: str): function extract_two_numbers (line 64) | def extract_two_numbers(tokens): function append_aligned (line 182) | def append_aligned(left_part, content): FILE: abac_test.go type testResource (line 25) | type testResource struct function newTestResource (line 30) | func newTestResource(name string, owner string) testResource { function TestABACModel (line 37) | func TestABACModel(t *testing.T) { function TestABACMapRequest (line 53) | func TestABACMapRequest(t *testing.T) { function TestABACTypes (line 75) | func TestABACTypes(t *testing.T) { function TestABACJsonRequest (line 106) | func TestABACJsonRequest(t *testing.T) { type testSub (line 150) | type testSub struct function newTestSubject (line 155) | func newTestSubject(name string, age int) testSub { function TestABACNotUsingPolicy (line 162) | func TestABACNotUsingPolicy(t *testing.T) { function TestABACPolicy (line 173) | func TestABACPolicy(t *testing.T) { FILE: ai_api.go type AIConfig (line 30) | type AIConfig struct type aiMessage (line 42) | type aiMessage struct type aiChatRequest (line 48) | type aiChatRequest struct type aiChatResponse (line 54) | type aiChatResponse struct method SetAIConfig (line 64) | func (e *Enforcer) SetAIConfig(config AIConfig) { method Explain (line 73) | func (e *Enforcer) Explain(rvals ...interface{}) (string, error) { method buildExplainContext (line 97) | func (e *Enforcer) buildExplainContext(rvals []interface{}, result bool,... method callAIAPI (line 147) | func (e *Enforcer) callAIAPI(explainContext string) (string, error) { FILE: ai_api_test.go function TestExplainWithoutConfig (line 27) | func TestExplainWithoutConfig(t *testing.T) { function TestExplainWithMockAPI (line 43) | func TestExplainWithMockAPI(t *testing.T) { function TestExplainDenied (line 121) | func TestExplainDenied(t *testing.T) { function TestExplainAPIError (line 173) | func TestExplainAPIError(t *testing.T) { function TestBuildExplainContext (line 215) | func TestBuildExplainContext(t *testing.T) { FILE: biba_test.go function testEnforceBiba (line 21) | func testEnforceBiba(t *testing.T, e *Enforcer, sub string, subLevel flo... function TestBibaModel (line 30) | func TestBibaModel(t *testing.T) { FILE: blp_test.go function testEnforceBLP (line 21) | func testEnforceBLP(t *testing.T, e *Enforcer, sub string, subLevel floa... function TestBLPModel (line 30) | func TestBLPModel(t *testing.T) { FILE: config/config.go type ConfigInterface (line 40) | type ConfigInterface interface type Config (line 51) | type Config struct method AddConfig (line 75) | func (c *Config) AddConfig(section string, option string, value string... method parse (line 90) | func (c *Config) parse(fname string) (err error) { method parseBuffer (line 101) | func (c *Config) parseBuffer(buf *bufio.Reader) error { method write (line 169) | func (c *Config) write(section string, lineNum int, b *bytes.Buffer) e... method Bool (line 189) | func (c *Config) Bool(key string) (bool, error) { method Int (line 194) | func (c *Config) Int(key string) (int, error) { method Int64 (line 199) | func (c *Config) Int64(key string) (int64, error) { method Float64 (line 204) | func (c *Config) Float64(key string) (float64, error) { method String (line 209) | func (c *Config) String(key string) string { method Strings (line 215) | func (c *Config) Strings(key string) []string { method Set (line 224) | func (c *Config) Set(key string, value string) error { method get (line 247) | func (c *Config) get(key string) string { function NewConfig (line 57) | func NewConfig(confName string) (ConfigInterface, error) { function NewConfigFromText (line 66) | func NewConfigFromText(text string) (ConfigInterface, error) { FILE: config/config_test.go function TestGet (line 21) | func TestGet(t *testing.T) { FILE: constant/constants.go constant ActionIndex (line 18) | ActionIndex = "act" constant DomainIndex (line 19) | DomainIndex = "dom" constant SubjectIndex (line 20) | SubjectIndex = "sub" constant ObjectIndex (line 21) | ObjectIndex = "obj" constant PriorityIndex (line 22) | PriorityIndex = "priority" constant AllowOverrideEffect (line 26) | AllowOverrideEffect = "some(where (p_eft == allow))" constant DenyOverrideEffect (line 27) | DenyOverrideEffect = "!some(where (p_eft == deny))" constant AllowAndDenyEffect (line 28) | AllowAndDenyEffect = "some(where (p_eft == allow)) && !some(where (p_... constant PriorityEffect (line 29) | PriorityEffect = "priority(p_eft) || deny" constant SubjectPriorityEffect (line 30) | SubjectPriorityEffect = "subjectPriority(p_eft) || deny" FILE: constraint_test.go function TestConstraintSOD (line 25) | func TestConstraintSOD(t *testing.T) { function TestConstraintSODMax (line 78) | func TestConstraintSODMax(t *testing.T) { function TestConstraintRoleMax (line 125) | func TestConstraintRoleMax(t *testing.T) { function TestConstraintRolePre (line 178) | func TestConstraintRolePre(t *testing.T) { function TestConstraintWithoutRBAC (line 231) | func TestConstraintWithoutRBAC(t *testing.T) { function TestConstraintParsingError (line 258) | func TestConstraintParsingError(t *testing.T) { function TestConstraintRollback (line 288) | func TestConstraintRollback(t *testing.T) { FILE: detector/default_detector.go type rangeableRM (line 26) | type rangeableRM interface type DefaultDetector (line 32) | type DefaultDetector struct method Check (line 42) | func (d *DefaultDetector) Check(rm rbac.RoleManager) error { method buildGraph (line 71) | func (d *DefaultDetector) buildGraph(rm rbac.RoleManager) (graph map[s... method detectCycle (line 109) | func (d *DefaultDetector) detectCycle( function NewDefaultDetector (line 35) | func NewDefaultDetector() *DefaultDetector { FILE: detector/default_detector_test.go function TestDefaultDetector_NilRoleManager (line 25) | func TestDefaultDetector_NilRoleManager(t *testing.T) { function TestDefaultDetector_NoCycle (line 39) | func TestDefaultDetector_NoCycle(t *testing.T) { function TestDefaultDetector_SimpleCycle (line 53) | func TestDefaultDetector_SimpleCycle(t *testing.T) { function TestDefaultDetector_ComplexCycle (line 75) | func TestDefaultDetector_ComplexCycle(t *testing.T) { function TestDefaultDetector_SelfLoop (line 98) | func TestDefaultDetector_SelfLoop(t *testing.T) { function TestDefaultDetector_MultipleCycles (line 115) | func TestDefaultDetector_MultipleCycles(t *testing.T) { function TestDefaultDetector_DisconnectedComponents (line 137) | func TestDefaultDetector_DisconnectedComponents(t *testing.T) { function TestDefaultDetector_ComplexGraphWithCycle (line 155) | func TestDefaultDetector_ComplexGraphWithCycle(t *testing.T) { function TestDefaultDetector_LongCycle (line 178) | func TestDefaultDetector_LongCycle(t *testing.T) { function TestDefaultDetector_EmptyRoleManager (line 200) | func TestDefaultDetector_EmptyRoleManager(t *testing.T) { function TestDefaultDetector_LargeGraphNoCycle (line 211) | func TestDefaultDetector_LargeGraphNoCycle(t *testing.T) { function TestDefaultDetector_LargeGraphWithCycle (line 230) | func TestDefaultDetector_LargeGraphWithCycle(t *testing.T) { function TestDefaultDetector_PerformanceLargeGraph (line 257) | func TestDefaultDetector_PerformanceLargeGraph(t *testing.T) { function TestDefaultDetector_MultipleInheritance (line 293) | func TestDefaultDetector_MultipleInheritance(t *testing.T) { function TestDefaultDetector_DiamondPattern (line 309) | func TestDefaultDetector_DiamondPattern(t *testing.T) { function TestDefaultDetector_DiamondPatternWithCycle (line 325) | func TestDefaultDetector_DiamondPatternWithCycle(t *testing.T) { FILE: detector/detector.go type Detector (line 20) | type Detector interface FILE: effector/default_effector.go type DefaultEffector (line 24) | type DefaultEffector struct method MergeEffects (line 34) | func (e *DefaultEffector) MergeEffects(expr string, effects []Effect, ... function NewDefaultEffector (line 28) | func NewDefaultEffector() *DefaultEffector { FILE: effector/effector.go type Effect (line 18) | type Effect constant Allow (line 22) | Allow Effect = iota constant Indeterminate (line 23) | Indeterminate constant Deny (line 24) | Deny type Effector (line 28) | type Effector interface FILE: enforcer.go type Enforcer (line 38) | type Enforcer struct method InitWithFile (line 141) | func (e *Enforcer) InitWithFile(modelPath string, policyPath string) e... method InitWithAdapter (line 147) | func (e *Enforcer) InitWithAdapter(modelPath string, adapter persist.A... method InitWithModelAndAdapter (line 163) | func (e *Enforcer) InitWithModelAndAdapter(m model.Model, adapter pers... method initialize (line 184) | func (e *Enforcer) initialize() { method LoadModel (line 206) | func (e *Enforcer) LoadModel() error { method GetModel (line 222) | func (e *Enforcer) GetModel() model.Model { method SetModel (line 227) | func (e *Enforcer) SetModel(m model.Model) { method GetAdapter (line 235) | func (e *Enforcer) GetAdapter() persist.Adapter { method SetAdapter (line 240) | func (e *Enforcer) SetAdapter(adapter persist.Adapter) { method SetWatcher (line 245) | func (e *Enforcer) SetWatcher(watcher persist.Watcher) error { method GetRoleManager (line 257) | func (e *Enforcer) GetRoleManager() rbac.RoleManager { method GetNamedRoleManager (line 268) | func (e *Enforcer) GetNamedRoleManager(ptype string) rbac.RoleManager { method SetRoleManager (line 279) | func (e *Enforcer) SetRoleManager(rm rbac.RoleManager) { method SetNamedRoleManager (line 285) | func (e *Enforcer) SetNamedRoleManager(ptype string, rm rbac.RoleManag... method SetEffector (line 291) | func (e *Enforcer) SetEffector(eft effector.Effector) { method SetLogger (line 296) | func (e *Enforcer) SetLogger(logger log.Logger) { method SetDetector (line 301) | func (e *Enforcer) SetDetector(d detector.Detector) { method SetDetectors (line 306) | func (e *Enforcer) SetDetectors(detectors []detector.Detector) { method RunDetections (line 313) | func (e *Enforcer) RunDetections() error { method ClearPolicy (line 352) | func (e *Enforcer) ClearPolicy() { method LoadPolicy (line 363) | func (e *Enforcer) LoadPolicy() error { method loadPolicyFromAdapter (line 388) | func (e *Enforcer) loadPolicyFromAdapter(baseModel model.Model) (model... method applyModifiedModel (line 407) | func (e *Enforcer) applyModifiedModel(newModel model.Model) error { method rebuildRoleLinks (line 435) | func (e *Enforcer) rebuildRoleLinks(newModel model.Model) error { method rebuildConditionalRoleLinks (line 453) | func (e *Enforcer) rebuildConditionalRoleLinks(newModel model.Model) e... method loadFilteredPolicy (line 470) | func (e *Enforcer) loadFilteredPolicy(filter interface{}) error { method LoadFilteredPolicy (line 506) | func (e *Enforcer) LoadFilteredPolicy(filter interface{}) error { method LoadIncrementalFilteredPolicy (line 513) | func (e *Enforcer) LoadIncrementalFilteredPolicy(filter interface{}) e... method IsFiltered (line 518) | func (e *Enforcer) IsFiltered() bool { method SavePolicy (line 527) | func (e *Enforcer) SavePolicy() error { method getDomainTokens (line 556) | func (e *Enforcer) getDomainTokens() (rDomainToken, pDomainToken strin... method registerDomainMatchingFunc (line 567) | func (e *Enforcer) registerDomainMatchingFunc(ptype string) { method initRmMap (line 583) | func (e *Enforcer) initRmMap() { method EnableEnforce (line 611) | func (e *Enforcer) EnableEnforce(enable bool) { method EnableAutoNotifyWatcher (line 616) | func (e *Enforcer) EnableAutoNotifyWatcher(enable bool) { method EnableAutoNotifyDispatcher (line 621) | func (e *Enforcer) EnableAutoNotifyDispatcher(enable bool) { method EnableAutoSave (line 626) | func (e *Enforcer) EnableAutoSave(autoSave bool) { method EnableAutoBuildRoleLinks (line 631) | func (e *Enforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool) { method EnableAcceptJsonRequest (line 636) | func (e *Enforcer) EnableAcceptJsonRequest(acceptJsonRequest bool) { method BuildRoleLinks (line 641) | func (e *Enforcer) BuildRoleLinks() error { method BuildIncrementalRoleLinks (line 657) | func (e *Enforcer) BuildIncrementalRoleLinks(op model.PolicyOp, ptype ... method BuildIncrementalConditionalRoleLinks (line 663) | func (e *Enforcer) BuildIncrementalConditionalRoleLinks(op model.Polic... method invalidateMatcherMap (line 678) | func (e *Enforcer) invalidateMatcherMap() { method enforce (line 683) | func (e *Enforcer) enforce(matcher string, explains *[]string, rvals .... method getAndStoreMatcherExpression (line 909) | func (e *Enforcer) getAndStoreMatcherExpression(hasEval bool, expStrin... method Enforce (line 927) | func (e *Enforcer) Enforce(rvals ...interface{}) (bool, error) { method EnforceWithMatcher (line 932) | func (e *Enforcer) EnforceWithMatcher(matcher string, rvals ...interfa... method EnforceEx (line 937) | func (e *Enforcer) EnforceEx(rvals ...interface{}) (bool, []string, er... method EnforceExWithMatcher (line 944) | func (e *Enforcer) EnforceExWithMatcher(matcher string, rvals ...inter... method BatchEnforce (line 951) | func (e *Enforcer) BatchEnforce(requests [][]interface{}) ([]bool, err... method BatchEnforceWithMatcher (line 964) | func (e *Enforcer) BatchEnforceWithMatcher(matcher string, requests []... method AddNamedMatchingFunc (line 977) | func (e *Enforcer) AddNamedMatchingFunc(ptype, name string, fn rbac.Ma... method AddNamedDomainMatchingFunc (line 986) | func (e *Enforcer) AddNamedDomainMatchingFunc(ptype, name string, fn r... method AddNamedLinkConditionFunc (line 1000) | func (e *Enforcer) AddNamedLinkConditionFunc(ptype, user, role string,... method AddNamedDomainLinkConditionFunc (line 1010) | func (e *Enforcer) AddNamedDomainLinkConditionFunc(ptype, user, role s... method SetNamedLinkConditionFuncParams (line 1019) | func (e *Enforcer) SetNamedLinkConditionFuncParams(ptype, user, role s... method SetNamedDomainLinkConditionFuncParams (line 1029) | func (e *Enforcer) SetNamedDomainLinkConditionFuncParams(ptype, user, ... type EnforceContext (line 64) | type EnforceContext struct method GetCacheKey (line 71) | func (e EnforceContext) GetCacheKey() string { function NewEnforcer (line 85) | func NewEnforcer(params ...interface{}) (*Enforcer, error) { function NewEnforceContext (line 669) | func NewEnforceContext(suffix string) EnforceContext { type enforceParameters (line 1038) | type enforceParameters struct method Get (line 1047) | func (p enforceParameters) Get(name string) (interface{}, error) { function generateEvalFunction (line 1070) | func generateEvalFunction(functions map[string]govaluate.ExpressionFunct... FILE: enforcer_backslash_test.go function TestBackslashHandlingConsistency (line 28) | func TestBackslashHandlingConsistency(t *testing.T) { FILE: enforcer_cached.go type CachedEnforcer (line 27) | type CachedEnforcer struct method EnableCache (line 55) | func (e *CachedEnforcer) EnableCache(enableCache bool) { method Enforce (line 65) | func (e *CachedEnforcer) Enforce(rvals ...interface{}) (bool, error) { method LoadPolicy (line 90) | func (e *CachedEnforcer) LoadPolicy() error { method RemovePolicy (line 99) | func (e *CachedEnforcer) RemovePolicy(params ...interface{}) (bool, er... method RemovePolicies (line 111) | func (e *CachedEnforcer) RemovePolicies(rules [][]string) (bool, error) { method getCachedResult (line 129) | func (e *CachedEnforcer) getCachedResult(key string) (res bool, err er... method SetExpireTime (line 135) | func (e *CachedEnforcer) SetExpireTime(expireTime time.Duration) { method SetCache (line 139) | func (e *CachedEnforcer) SetCache(c cache.Cache) { method setCachedResult (line 143) | func (e *CachedEnforcer) setCachedResult(key string, res bool, extra .... method getKey (line 149) | func (e *CachedEnforcer) getKey(params ...interface{}) (string, bool) { method InvalidateCache (line 154) | func (e *CachedEnforcer) InvalidateCache() error { method ClearPolicy (line 177) | func (e *CachedEnforcer) ClearPolicy() { type CacheableParam (line 35) | type CacheableParam interface function NewCachedEnforcer (line 40) | func NewCachedEnforcer(params ...interface{}) (*CachedEnforcer, error) { function GetCacheKey (line 160) | func GetCacheKey(params ...interface{}) (string, bool) { FILE: enforcer_cached_b_test.go function BenchmarkCachedRaw (line 22) | func BenchmarkCachedRaw(b *testing.B) { function BenchmarkCachedBasicModel (line 28) | func BenchmarkCachedBasicModel(b *testing.B) { function BenchmarkCachedRBACModel (line 37) | func BenchmarkCachedRBACModel(b *testing.B) { function BenchmarkCachedRBACModelSmall (line 46) | func BenchmarkCachedRBACModelSmall(b *testing.B) { function BenchmarkCachedRBACModelMedium (line 69) | func BenchmarkCachedRBACModelMedium(b *testing.B) { function BenchmarkCachedRBACModelLarge (line 99) | func BenchmarkCachedRBACModelLarge(b *testing.B) { function BenchmarkCachedRBACModelWithResourceRoles (line 128) | func BenchmarkCachedRBACModelWithResourceRoles(b *testing.B) { function BenchmarkCachedRBACModelWithDomains (line 137) | func BenchmarkCachedRBACModelWithDomains(b *testing.B) { function BenchmarkCachedABACModel (line 146) | func BenchmarkCachedABACModel(b *testing.B) { function BenchmarkCachedKeyMatchModel (line 156) | func BenchmarkCachedKeyMatchModel(b *testing.B) { function BenchmarkCachedRBACModelWithDeny (line 165) | func BenchmarkCachedRBACModelWithDeny(b *testing.B) { function BenchmarkCachedPriorityModel (line 174) | func BenchmarkCachedPriorityModel(b *testing.B) { function BenchmarkCachedWithEnforceContext (line 183) | func BenchmarkCachedWithEnforceContext(b *testing.B) { function BenchmarkCachedRBACModelMediumParallel (line 192) | func BenchmarkCachedRBACModelMediumParallel(b *testing.B) { FILE: enforcer_cached_gfunction_test.go function TestCachedGFunctionAfterAddingGroupingPolicy (line 23) | func TestCachedGFunctionAfterAddingGroupingPolicy(t *testing.T) { function TestCachedGFunctionWithMultipleEnforceCalls (line 68) | func TestCachedGFunctionWithMultipleEnforceCalls(t *testing.T) { function TestCachedGFunctionAfterRemovingGroupingPolicy (line 114) | func TestCachedGFunctionAfterRemovingGroupingPolicy(t *testing.T) { function TestCachedGFunctionAfterBuildRoleLinks (line 156) | func TestCachedGFunctionAfterBuildRoleLinks(t *testing.T) { FILE: enforcer_cached_synced.go type SyncedCachedEnforcer (line 26) | type SyncedCachedEnforcer struct method EnableCache (line 50) | func (e *SyncedCachedEnforcer) EnableCache(enableCache bool) { method Enforce (line 60) | func (e *SyncedCachedEnforcer) Enforce(rvals ...interface{}) (bool, er... method LoadPolicy (line 85) | func (e *SyncedCachedEnforcer) LoadPolicy() error { method AddPolicy (line 94) | func (e *SyncedCachedEnforcer) AddPolicy(params ...interface{}) (bool,... method AddPolicies (line 101) | func (e *SyncedCachedEnforcer) AddPolicies(rules [][]string) (bool, er... method RemovePolicy (line 108) | func (e *SyncedCachedEnforcer) RemovePolicy(params ...interface{}) (bo... method RemovePolicies (line 115) | func (e *SyncedCachedEnforcer) RemovePolicies(rules [][]string) (bool,... method getCachedResult (line 122) | func (e *SyncedCachedEnforcer) getCachedResult(key string) (res bool, ... method SetExpireTime (line 126) | func (e *SyncedCachedEnforcer) SetExpireTime(expireTime time.Duration) { method SetCache (line 133) | func (e *SyncedCachedEnforcer) SetCache(c cache.Cache) { method setCachedResult (line 139) | func (e *SyncedCachedEnforcer) setCachedResult(key string, res bool, e... method getKey (line 143) | func (e *SyncedCachedEnforcer) getKey(params ...interface{}) (string, ... method InvalidateCache (line 148) | func (e *SyncedCachedEnforcer) InvalidateCache() error { method checkOneAndRemoveCache (line 152) | func (e *SyncedCachedEnforcer) checkOneAndRemoveCache(params ...interf... method checkManyAndRemoveCache (line 164) | func (e *SyncedCachedEnforcer) checkManyAndRemoveCache(rules [][]strin... function NewSyncedCachedEnforcer (line 35) | func NewSyncedCachedEnforcer(params ...interface{}) (*SyncedCachedEnforc... FILE: enforcer_cached_synced_test.go function testSyncEnforceCache (line 23) | func testSyncEnforceCache(t *testing.T, e *SyncedCachedEnforcer, sub str... function TestSyncCache (line 30) | func TestSyncCache(t *testing.T) { FILE: enforcer_cached_test.go function testEnforceCache (line 19) | func testEnforceCache(t *testing.T, e *CachedEnforcer, sub string, obj i... function TestCache (line 26) | func TestCache(t *testing.T) { FILE: enforcer_context.go type ContextEnforcer (line 28) | type ContextEnforcer struct method LoadPolicyCtx (line 56) | func (e *ContextEnforcer) LoadPolicyCtx(ctx context.Context) error { method loadPolicyFromAdapterCtx (line 68) | func (e *ContextEnforcer) loadPolicyFromAdapterCtx(ctx context.Context... method IsFilteredCtx (line 134) | func (e *ContextEnforcer) IsFilteredCtx(ctx context.Context) bool { method SavePolicyCtx (line 142) | func (e *ContextEnforcer) SavePolicyCtx(ctx context.Context) error { method AddPolicyCtx (line 162) | func (e *ContextEnforcer) AddPolicyCtx(ctx context.Context, params ...... method AddPoliciesCtx (line 167) | func (e *ContextEnforcer) AddPoliciesCtx(ctx context.Context, rules []... method AddNamedPolicyCtx (line 172) | func (e *ContextEnforcer) AddNamedPolicyCtx(ctx context.Context, ptype... method AddNamedPoliciesCtx (line 186) | func (e *ContextEnforcer) AddNamedPoliciesCtx(ctx context.Context, pty... method AddPoliciesExCtx (line 190) | func (e *ContextEnforcer) AddPoliciesExCtx(ctx context.Context, rules ... method AddNamedPoliciesExCtx (line 194) | func (e *ContextEnforcer) AddNamedPoliciesExCtx(ctx context.Context, p... method RemovePolicyCtx (line 199) | func (e *ContextEnforcer) RemovePolicyCtx(ctx context.Context, params ... method RemoveNamedPolicyCtx (line 204) | func (e *ContextEnforcer) RemoveNamedPolicyCtx(ctx context.Context, pt... method RemovePoliciesCtx (line 217) | func (e *ContextEnforcer) RemovePoliciesCtx(ctx context.Context, rules... method RemoveNamedPoliciesCtx (line 222) | func (e *ContextEnforcer) RemoveNamedPoliciesCtx(ctx context.Context, ... method RemoveFilteredPolicyCtx (line 227) | func (e *ContextEnforcer) RemoveFilteredPolicyCtx(ctx context.Context,... method RemoveFilteredNamedPolicyCtx (line 232) | func (e *ContextEnforcer) RemoveFilteredNamedPolicyCtx(ctx context.Con... method UpdatePolicyCtx (line 237) | func (e *ContextEnforcer) UpdatePolicyCtx(ctx context.Context, oldPoli... method UpdateNamedPolicyCtx (line 242) | func (e *ContextEnforcer) UpdateNamedPolicyCtx(ctx context.Context, pt... method UpdatePoliciesCtx (line 247) | func (e *ContextEnforcer) UpdatePoliciesCtx(ctx context.Context, oldPo... method UpdateNamedPoliciesCtx (line 252) | func (e *ContextEnforcer) UpdateNamedPoliciesCtx(ctx context.Context, ... method UpdateFilteredPoliciesCtx (line 257) | func (e *ContextEnforcer) UpdateFilteredPoliciesCtx(ctx context.Contex... method UpdateFilteredNamedPoliciesCtx (line 262) | func (e *ContextEnforcer) UpdateFilteredNamedPoliciesCtx(ctx context.C... method AddGroupingPolicyCtx (line 269) | func (e *ContextEnforcer) AddGroupingPolicyCtx(ctx context.Context, pa... method AddGroupingPoliciesCtx (line 274) | func (e *ContextEnforcer) AddGroupingPoliciesCtx(ctx context.Context, ... method AddGroupingPoliciesExCtx (line 278) | func (e *ContextEnforcer) AddGroupingPoliciesExCtx(ctx context.Context... method AddNamedGroupingPolicyCtx (line 283) | func (e *ContextEnforcer) AddNamedGroupingPolicyCtx(ctx context.Contex... method AddNamedGroupingPoliciesCtx (line 300) | func (e *ContextEnforcer) AddNamedGroupingPoliciesCtx(ctx context.Cont... method AddNamedGroupingPoliciesExCtx (line 304) | func (e *ContextEnforcer) AddNamedGroupingPoliciesExCtx(ctx context.Co... method RemoveGroupingPolicyCtx (line 309) | func (e *ContextEnforcer) RemoveGroupingPolicyCtx(ctx context.Context,... method RemoveNamedGroupingPolicyCtx (line 314) | func (e *ContextEnforcer) RemoveNamedGroupingPolicyCtx(ctx context.Con... method RemoveGroupingPoliciesCtx (line 332) | func (e *ContextEnforcer) RemoveGroupingPoliciesCtx(ctx context.Contex... method RemoveNamedGroupingPoliciesCtx (line 337) | func (e *ContextEnforcer) RemoveNamedGroupingPoliciesCtx(ctx context.C... method RemoveFilteredGroupingPolicyCtx (line 342) | func (e *ContextEnforcer) RemoveFilteredGroupingPolicyCtx(ctx context.... method RemoveFilteredNamedGroupingPolicyCtx (line 347) | func (e *ContextEnforcer) RemoveFilteredNamedGroupingPolicyCtx(ctx con... method UpdateGroupingPolicyCtx (line 352) | func (e *ContextEnforcer) UpdateGroupingPolicyCtx(ctx context.Context,... method UpdateNamedGroupingPolicyCtx (line 357) | func (e *ContextEnforcer) UpdateNamedGroupingPolicyCtx(ctx context.Con... method UpdateGroupingPoliciesCtx (line 362) | func (e *ContextEnforcer) UpdateGroupingPoliciesCtx(ctx context.Contex... method UpdateNamedGroupingPoliciesCtx (line 367) | func (e *ContextEnforcer) UpdateNamedGroupingPoliciesCtx(ctx context.C... method SelfAddPolicyCtx (line 374) | func (e *ContextEnforcer) SelfAddPolicyCtx(ctx context.Context, sec st... method SelfAddPoliciesCtx (line 379) | func (e *ContextEnforcer) SelfAddPoliciesCtx(ctx context.Context, sec ... method SelfAddPoliciesExCtx (line 383) | func (e *ContextEnforcer) SelfAddPoliciesExCtx(ctx context.Context, se... method SelfRemovePolicyCtx (line 388) | func (e *ContextEnforcer) SelfRemovePolicyCtx(ctx context.Context, sec... method SelfRemovePoliciesCtx (line 393) | func (e *ContextEnforcer) SelfRemovePoliciesCtx(ctx context.Context, s... method SelfRemoveFilteredPolicyCtx (line 398) | func (e *ContextEnforcer) SelfRemoveFilteredPolicyCtx(ctx context.Cont... method SelfUpdatePolicyCtx (line 403) | func (e *ContextEnforcer) SelfUpdatePolicyCtx(ctx context.Context, sec... method SelfUpdatePoliciesCtx (line 408) | func (e *ContextEnforcer) SelfUpdatePoliciesCtx(ctx context.Context, s... method addPolicyWithoutNotifyCtx (line 415) | func (e *ContextEnforcer) addPolicyWithoutNotifyCtx(ctx context.Contex... method addPoliciesWithoutNotifyCtx (line 449) | func (e *ContextEnforcer) addPoliciesWithoutNotifyCtx(ctx context.Cont... method removePolicyWithoutNotifyCtx (line 490) | func (e *ContextEnforcer) removePolicyWithoutNotifyCtx(ctx context.Con... method removePoliciesWithoutNotifyCtx (line 519) | func (e *ContextEnforcer) removePoliciesWithoutNotifyCtx(ctx context.C... method removeFilteredPolicyWithoutNotifyCtx (line 551) | func (e *ContextEnforcer) removeFilteredPolicyWithoutNotifyCtx(ctx con... method updatePolicyWithoutNotifyCtx (line 584) | func (e *ContextEnforcer) updatePolicyWithoutNotifyCtx(ctx context.Con... method updatePoliciesWithoutNotifyCtx (line 615) | func (e *ContextEnforcer) updatePoliciesWithoutNotifyCtx(ctx context.C... method addPolicyCtx (line 651) | func (e *ContextEnforcer) addPolicyCtx(ctx context.Context, sec string... method addPoliciesCtx (line 670) | func (e *ContextEnforcer) addPoliciesCtx(ctx context.Context, sec stri... method updatePolicyCtx (line 689) | func (e *ContextEnforcer) updatePolicyCtx(ctx context.Context, sec str... method updatePoliciesCtx (line 708) | func (e *ContextEnforcer) updatePoliciesCtx(ctx context.Context, sec s... method removePolicyCtx (line 727) | func (e *ContextEnforcer) removePolicyCtx(ctx context.Context, sec str... method removePoliciesCtx (line 746) | func (e *ContextEnforcer) removePoliciesCtx(ctx context.Context, sec s... method removeFilteredPolicyCtx (line 766) | func (e *ContextEnforcer) removeFilteredPolicyCtx(ctx context.Context,... method updateFilteredPoliciesCtx (line 785) | func (e *ContextEnforcer) updateFilteredPoliciesCtx(ctx context.Contex... method updateFilteredPoliciesWithoutNotifyCtx (line 805) | func (e *ContextEnforcer) updateFilteredPoliciesWithoutNotifyCtx(ctx c... function NewContextEnforcer (line 34) | func NewContextEnforcer(params ...interface{}) (IEnforcerContext, error) { method LoadFilteredPolicyCtx (line 88) | func (e *Enforcer) LoadFilteredPolicyCtx(ctx context.Context, filter int... method LoadIncrementalFilteredPolicyCtx (line 94) | func (e *Enforcer) LoadIncrementalFilteredPolicyCtx(ctx context.Context,... method loadFilteredPolicyCtx (line 98) | func (e *Enforcer) loadFilteredPolicyCtx(ctx context.Context, filter int... FILE: enforcer_context_interface.go type IEnforcerContext (line 19) | type IEnforcerContext interface FILE: enforcer_context_test.go function TestIEnforcerContext_BasicOperations (line 23) | func TestIEnforcerContext_BasicOperations(t *testing.T) { function TestIEnforcerContext_RBACOperations (line 58) | func TestIEnforcerContext_RBACOperations(t *testing.T) { function TestIEnforcerContext_BatchOperations (line 99) | func TestIEnforcerContext_BatchOperations(t *testing.T) { function TestIEnforcerContext_ContextCancellation (line 128) | func TestIEnforcerContext_ContextCancellation(t *testing.T) { function TestIEnforcerContext_ContextTimeout (line 143) | func TestIEnforcerContext_ContextTimeout(t *testing.T) { function TestIEnforcerContext_GroupingPolicyOperations (line 160) | func TestIEnforcerContext_GroupingPolicyOperations(t *testing.T) { function TestIEnforcerContext_UpdateOperations (line 185) | func TestIEnforcerContext_UpdateOperations(t *testing.T) { function TestIEnforcerContext_SelfMethods (line 209) | func TestIEnforcerContext_SelfMethods(t *testing.T) { FILE: enforcer_distributed.go type DistributedEnforcer (line 9) | type DistributedEnforcer struct method SetDispatcher (line 25) | func (d *DistributedEnforcer) SetDispatcher(dispatcher persist.Dispatc... method AddPoliciesSelf (line 31) | func (d *DistributedEnforcer) AddPoliciesSelf(shouldPersist func() boo... method RemovePoliciesSelf (line 69) | func (d *DistributedEnforcer) RemovePoliciesSelf(shouldPersist func() ... method RemoveFilteredPolicySelf (line 97) | func (d *DistributedEnforcer) RemoveFilteredPolicySelf(shouldPersist f... method ClearPolicySelf (line 124) | func (d *DistributedEnforcer) ClearPolicySelf(shouldPersist func() boo... method UpdatePolicySelf (line 140) | func (d *DistributedEnforcer) UpdatePolicySelf(shouldPersist func() bo... method UpdatePoliciesSelf (line 170) | func (d *DistributedEnforcer) UpdatePoliciesSelf(shouldPersist func() ... method UpdateFilteredPoliciesSelf (line 200) | func (d *DistributedEnforcer) UpdateFilteredPoliciesSelf(shouldPersist... function NewDistributedEnforcer (line 13) | func NewDistributedEnforcer(params ...interface{}) (*DistributedEnforcer... FILE: enforcer_interface.go type IEnforcer (line 30) | type IEnforcer interface type IDistributedEnforcer (line 168) | type IDistributedEnforcer interface FILE: enforcer_json_test.go function TestInvalidJsonRequest (line 10) | func TestInvalidJsonRequest(t *testing.T) { FILE: enforcer_synced.go type SyncedEnforcer (line 29) | type SyncedEnforcer struct method GetLock (line 51) | func (e *SyncedEnforcer) GetLock() *sync.RWMutex { method GetRoleManager (line 56) | func (e *SyncedEnforcer) GetRoleManager() rbac.RoleManager { method GetNamedRoleManager (line 63) | func (e *SyncedEnforcer) GetNamedRoleManager(ptype string) rbac.RoleMa... method SetRoleManager (line 70) | func (e *SyncedEnforcer) SetRoleManager(rm rbac.RoleManager) { method SetNamedRoleManager (line 77) | func (e *SyncedEnforcer) SetNamedRoleManager(ptype string, rm rbac.Rol... method IsAutoLoadingRunning (line 84) | func (e *SyncedEnforcer) IsAutoLoadingRunning() bool { method StartAutoLoadPolicy (line 89) | func (e *SyncedEnforcer) StartAutoLoadPolicy(d time.Duration) { method StopAutoLoadPolicy (line 118) | func (e *SyncedEnforcer) StopAutoLoadPolicy() { method SetWatcher (line 125) | func (e *SyncedEnforcer) SetWatcher(watcher persist.Watcher) error { method LoadModel (line 132) | func (e *SyncedEnforcer) LoadModel() error { method ClearPolicy (line 139) | func (e *SyncedEnforcer) ClearPolicy() { method LoadPolicy (line 146) | func (e *SyncedEnforcer) LoadPolicy() error { method LoadFilteredPolicy (line 163) | func (e *SyncedEnforcer) LoadFilteredPolicy(filter interface{}) error { method LoadIncrementalFilteredPolicy (line 170) | func (e *SyncedEnforcer) LoadIncrementalFilteredPolicy(filter interfac... method SavePolicy (line 177) | func (e *SyncedEnforcer) SavePolicy() error { method BuildRoleLinks (line 184) | func (e *SyncedEnforcer) BuildRoleLinks() error { method Enforce (line 191) | func (e *SyncedEnforcer) Enforce(rvals ...interface{}) (bool, error) { method EnforceWithMatcher (line 198) | func (e *SyncedEnforcer) EnforceWithMatcher(matcher string, rvals ...i... method EnforceEx (line 205) | func (e *SyncedEnforcer) EnforceEx(rvals ...interface{}) (bool, []stri... method EnforceExWithMatcher (line 212) | func (e *SyncedEnforcer) EnforceExWithMatcher(matcher string, rvals ..... method BatchEnforce (line 219) | func (e *SyncedEnforcer) BatchEnforce(requests [][]interface{}) ([]boo... method BatchEnforceWithMatcher (line 226) | func (e *SyncedEnforcer) BatchEnforceWithMatcher(matcher string, reque... method GetAllSubjects (line 233) | func (e *SyncedEnforcer) GetAllSubjects() ([]string, error) { method GetAllNamedSubjects (line 240) | func (e *SyncedEnforcer) GetAllNamedSubjects(ptype string) ([]string, ... method GetAllObjects (line 247) | func (e *SyncedEnforcer) GetAllObjects() ([]string, error) { method GetAllNamedObjects (line 254) | func (e *SyncedEnforcer) GetAllNamedObjects(ptype string) ([]string, e... method GetAllActions (line 261) | func (e *SyncedEnforcer) GetAllActions() ([]string, error) { method GetAllNamedActions (line 268) | func (e *SyncedEnforcer) GetAllNamedActions(ptype string) ([]string, e... method GetAllRoles (line 275) | func (e *SyncedEnforcer) GetAllRoles() ([]string, error) { method GetAllNamedRoles (line 282) | func (e *SyncedEnforcer) GetAllNamedRoles(ptype string) ([]string, err... method GetAllUsers (line 289) | func (e *SyncedEnforcer) GetAllUsers() ([]string, error) { method GetPolicy (line 296) | func (e *SyncedEnforcer) GetPolicy() ([][]string, error) { method GetFilteredPolicy (line 303) | func (e *SyncedEnforcer) GetFilteredPolicy(fieldIndex int, fieldValues... method GetNamedPolicy (line 310) | func (e *SyncedEnforcer) GetNamedPolicy(ptype string) ([][]string, err... method GetFilteredNamedPolicy (line 317) | func (e *SyncedEnforcer) GetFilteredNamedPolicy(ptype string, fieldInd... method GetGroupingPolicy (line 324) | func (e *SyncedEnforcer) GetGroupingPolicy() ([][]string, error) { method GetFilteredGroupingPolicy (line 331) | func (e *SyncedEnforcer) GetFilteredGroupingPolicy(fieldIndex int, fie... method GetNamedGroupingPolicy (line 338) | func (e *SyncedEnforcer) GetNamedGroupingPolicy(ptype string) ([][]str... method GetFilteredNamedGroupingPolicy (line 345) | func (e *SyncedEnforcer) GetFilteredNamedGroupingPolicy(ptype string, ... method HasPolicy (line 352) | func (e *SyncedEnforcer) HasPolicy(params ...interface{}) (bool, error) { method HasNamedPolicy (line 359) | func (e *SyncedEnforcer) HasNamedPolicy(ptype string, params ...interf... method AddPolicy (line 368) | func (e *SyncedEnforcer) AddPolicy(params ...interface{}) (bool, error) { method AddPolicies (line 377) | func (e *SyncedEnforcer) AddPolicies(rules [][]string) (bool, error) { method AddPoliciesEx (line 386) | func (e *SyncedEnforcer) AddPoliciesEx(rules [][]string) (bool, error) { method AddNamedPolicy (line 395) | func (e *SyncedEnforcer) AddNamedPolicy(ptype string, params ...interf... method AddNamedPolicies (line 404) | func (e *SyncedEnforcer) AddNamedPolicies(ptype string, rules [][]stri... method AddNamedPoliciesEx (line 413) | func (e *SyncedEnforcer) AddNamedPoliciesEx(ptype string, rules [][]st... method RemovePolicy (line 420) | func (e *SyncedEnforcer) RemovePolicy(params ...interface{}) (bool, er... method UpdatePolicy (line 427) | func (e *SyncedEnforcer) UpdatePolicy(oldPolicy []string, newPolicy []... method UpdateNamedPolicy (line 433) | func (e *SyncedEnforcer) UpdateNamedPolicy(ptype string, p1 []string, ... method UpdatePolicies (line 440) | func (e *SyncedEnforcer) UpdatePolicies(oldPolices [][]string, newPoli... method UpdateNamedPolicies (line 446) | func (e *SyncedEnforcer) UpdateNamedPolicies(ptype string, p1 [][]stri... method UpdateFilteredPolicies (line 452) | func (e *SyncedEnforcer) UpdateFilteredPolicies(newPolicies [][]string... method UpdateFilteredNamedPolicies (line 458) | func (e *SyncedEnforcer) UpdateFilteredNamedPolicies(ptype string, new... method RemovePolicies (line 465) | func (e *SyncedEnforcer) RemovePolicies(rules [][]string) (bool, error) { method RemoveFilteredPolicy (line 472) | func (e *SyncedEnforcer) RemoveFilteredPolicy(fieldIndex int, fieldVal... method RemoveNamedPolicy (line 479) | func (e *SyncedEnforcer) RemoveNamedPolicy(ptype string, params ...int... method RemoveNamedPolicies (line 486) | func (e *SyncedEnforcer) RemoveNamedPolicies(ptype string, rules [][]s... method RemoveFilteredNamedPolicy (line 493) | func (e *SyncedEnforcer) RemoveFilteredNamedPolicy(ptype string, field... method HasGroupingPolicy (line 500) | func (e *SyncedEnforcer) HasGroupingPolicy(params ...interface{}) (boo... method HasNamedGroupingPolicy (line 507) | func (e *SyncedEnforcer) HasNamedGroupingPolicy(ptype string, params .... method AddGroupingPolicy (line 516) | func (e *SyncedEnforcer) AddGroupingPolicy(params ...interface{}) (boo... method AddGroupingPolicies (line 525) | func (e *SyncedEnforcer) AddGroupingPolicies(rules [][]string) (bool, ... method AddGroupingPoliciesEx (line 534) | func (e *SyncedEnforcer) AddGroupingPoliciesEx(rules [][]string) (bool... method AddNamedGroupingPolicy (line 543) | func (e *SyncedEnforcer) AddNamedGroupingPolicy(ptype string, params .... method AddNamedGroupingPolicies (line 552) | func (e *SyncedEnforcer) AddNamedGroupingPolicies(ptype string, rules ... method AddNamedGroupingPoliciesEx (line 561) | func (e *SyncedEnforcer) AddNamedGroupingPoliciesEx(ptype string, rule... method RemoveGroupingPolicy (line 568) | func (e *SyncedEnforcer) RemoveGroupingPolicy(params ...interface{}) (... method RemoveGroupingPolicies (line 575) | func (e *SyncedEnforcer) RemoveGroupingPolicies(rules [][]string) (boo... method RemoveFilteredGroupingPolicy (line 582) | func (e *SyncedEnforcer) RemoveFilteredGroupingPolicy(fieldIndex int, ... method RemoveNamedGroupingPolicy (line 589) | func (e *SyncedEnforcer) RemoveNamedGroupingPolicy(ptype string, param... method RemoveNamedGroupingPolicies (line 596) | func (e *SyncedEnforcer) RemoveNamedGroupingPolicies(ptype string, rul... method UpdateGroupingPolicy (line 602) | func (e *SyncedEnforcer) UpdateGroupingPolicy(oldRule []string, newRul... method UpdateGroupingPolicies (line 608) | func (e *SyncedEnforcer) UpdateGroupingPolicies(oldRules [][]string, n... method UpdateNamedGroupingPolicy (line 614) | func (e *SyncedEnforcer) UpdateNamedGroupingPolicy(ptype string, oldRu... method UpdateNamedGroupingPolicies (line 620) | func (e *SyncedEnforcer) UpdateNamedGroupingPolicies(ptype string, old... method RemoveFilteredNamedGroupingPolicy (line 627) | func (e *SyncedEnforcer) RemoveFilteredNamedGroupingPolicy(ptype strin... method AddFunction (line 634) | func (e *SyncedEnforcer) AddFunction(name string, function govaluate.E... method SelfAddPolicy (line 640) | func (e *SyncedEnforcer) SelfAddPolicy(sec string, ptype string, rule ... method SelfAddPolicies (line 646) | func (e *SyncedEnforcer) SelfAddPolicies(sec string, ptype string, rul... method SelfAddPoliciesEx (line 652) | func (e *SyncedEnforcer) SelfAddPoliciesEx(sec string, ptype string, r... method SelfRemovePolicy (line 658) | func (e *SyncedEnforcer) SelfRemovePolicy(sec string, ptype string, ru... method SelfRemovePolicies (line 664) | func (e *SyncedEnforcer) SelfRemovePolicies(sec string, ptype string, ... method SelfRemoveFilteredPolicy (line 670) | func (e *SyncedEnforcer) SelfRemoveFilteredPolicy(sec string, ptype st... method SelfUpdatePolicy (line 676) | func (e *SyncedEnforcer) SelfUpdatePolicy(sec string, ptype string, ol... method SelfUpdatePolicies (line 682) | func (e *SyncedEnforcer) SelfUpdatePolicies(sec string, ptype string, ... function NewSyncedEnforcer (line 37) | func NewSyncedEnforcer(params ...interface{}) (*SyncedEnforcer, error) { FILE: enforcer_synced_test.go function testEnforceSync (line 26) | func testEnforceSync(t *testing.T, e *SyncedEnforcer, sub string, obj in... function TestSync (line 33) | func TestSync(t *testing.T) { function TestStopAutoLoadPolicy (line 60) | func TestStopAutoLoadPolicy(t *testing.T) { function testSyncedEnforcerGetPolicy (line 74) | func testSyncedEnforcerGetPolicy(t *testing.T, e *SyncedEnforcer, res []... function TestSyncedEnforcerSelfAddPolicy (line 88) | func TestSyncedEnforcerSelfAddPolicy(t *testing.T) { function TestSyncedEnforcerSelfAddPolicies (line 112) | func TestSyncedEnforcerSelfAddPolicies(t *testing.T) { function TestSyncedEnforcerSelfAddPoliciesEx (line 140) | func TestSyncedEnforcerSelfAddPoliciesEx(t *testing.T) { function TestSyncedEnforcerSelfRemovePolicy (line 177) | func TestSyncedEnforcerSelfRemovePolicy(t *testing.T) { function TestSyncedEnforcerSelfRemovePolicies (line 215) | func TestSyncedEnforcerSelfRemovePolicies(t *testing.T) { function TestSyncedEnforcerSelfRemoveFilteredPolicy (line 256) | func TestSyncedEnforcerSelfRemoveFilteredPolicy(t *testing.T) { function TestSyncedEnforcerSelfUpdatePolicy (line 297) | func TestSyncedEnforcerSelfUpdatePolicy(t *testing.T) { function TestSyncedEnforcerSelfUpdatePolicies (line 352) | func TestSyncedEnforcerSelfUpdatePolicies(t *testing.T) { function TestSyncedEnforcerAddPoliciesEx (line 406) | func TestSyncedEnforcerAddPoliciesEx(t *testing.T) { function TestSyncedEnforcerAddNamedPoliciesEx (line 432) | func TestSyncedEnforcerAddNamedPoliciesEx(t *testing.T) { function testSyncedEnforcerGetUsers (line 474) | func testSyncedEnforcerGetUsers(t *testing.T, e *SyncedEnforcer, res []s... function TestSyncedEnforcerAddGroupingPoliciesEx (line 495) | func TestSyncedEnforcerAddGroupingPoliciesEx(t *testing.T) { function TestSyncedEnforcerAddNamedGroupingPoliciesEx (line 515) | func TestSyncedEnforcerAddNamedGroupingPoliciesEx(t *testing.T) { FILE: enforcer_test.go function TestKeyMatchModelInMemory (line 28) | func TestKeyMatchModelInMemory(t *testing.T) { function TestKeyMatchWithRBACInDomain (line 87) | func TestKeyMatchWithRBACInDomain(t *testing.T) { function TestKeyMatchModelInMemoryDeny (line 92) | func TestKeyMatchModelInMemoryDeny(t *testing.T) { function TestRBACModelInMemoryIndeterminate (line 106) | func TestRBACModelInMemoryIndeterminate(t *testing.T) { function TestRBACModelInMemory (line 121) | func TestRBACModelInMemory(t *testing.T) { function TestRBACModelInMemory2 (line 147) | func TestRBACModelInMemory2(t *testing.T) { function TestNotUsedRBACModelInMemory (line 188) | func TestNotUsedRBACModelInMemory(t *testing.T) { function TestMatcherUsingInOperator (line 211) | func TestMatcherUsingInOperator(t *testing.T) { function TestMatcherUsingInOperatorBracket (line 224) | func TestMatcherUsingInOperatorBracket(t *testing.T) { function TestReloadPolicy (line 236) | func TestReloadPolicy(t *testing.T) { function TestSavePolicy (line 243) | func TestSavePolicy(t *testing.T) { function TestClearPolicy (line 249) | func TestClearPolicy(t *testing.T) { function TestEnableEnforce (line 255) | func TestEnableEnforce(t *testing.T) { function TestEnableLog (line 279) | func TestEnableLog(t *testing.T) { function TestEnableAutoSave (line 294) | func TestEnableAutoSave(t *testing.T) { function TestInitWithAdapter (line 331) | func TestInitWithAdapter(t *testing.T) { function TestRoleLinks (line 345) | func TestRoleLinks(t *testing.T) { function TestEnforceConcurrency (line 352) | func TestEnforceConcurrency(t *testing.T) { function TestGetAndSetModel (line 376) | func TestGetAndSetModel(t *testing.T) { function TestGetAndSetAdapterInMem (line 387) | func TestGetAndSetAdapterInMem(t *testing.T) { function TestSetAdapterFromFile (line 402) | func TestSetAdapterFromFile(t *testing.T) { function TestInitEmpty (line 414) | func TestInitEmpty(t *testing.T) { function testEnforceEx (line 431) | func testEnforceEx(t *testing.T, e *Enforcer, sub, obj, act interface{},... function TestEnforceEx (line 440) | func TestEnforceEx(t *testing.T) { function TestEnforceExLog (line 478) | func TestEnforceExLog(t *testing.T) { function testBatchEnforce (line 493) | func testBatchEnforce(t *testing.T, e *Enforcer, requests [][]interface{... function TestBatchEnforce (line 506) | func TestBatchEnforce(t *testing.T) { function TestSubjectPriority (line 512) | func TestSubjectPriority(t *testing.T) { function TestSubjectPriorityWithDomain (line 522) | func TestSubjectPriorityWithDomain(t *testing.T) { function TestSubjectPriorityInFilter (line 532) | func TestSubjectPriorityInFilter(t *testing.T) { function TestMultiplePolicyDefinitions (line 551) | func TestMultiplePolicyDefinitions(t *testing.T) { function TestPriorityExplicit (line 564) | func TestPriorityExplicit(t *testing.T) { function TestFailedToLoadPolicy (line 598) | func TestFailedToLoadPolicy(t *testing.T) { function TestReloadPolicyWithFunc (line 609) | func TestReloadPolicyWithFunc(t *testing.T) { function TestEvalPriority (line 619) | func TestEvalPriority(t *testing.T) { function TestLinkConditionFunc (line 626) | func TestLinkConditionFunc(t *testing.T) { function TestEnforcerWithDefaultDetector (line 730) | func TestEnforcerWithDefaultDetector(t *testing.T) { function TestEnforcerRunDetections (line 745) | func TestEnforcerRunDetections(t *testing.T) { function TestEnforcerSetDetector (line 772) | func TestEnforcerSetDetector(t *testing.T) { function TestEnforcerSetDetectors (line 787) | func TestEnforcerSetDetectors(t *testing.T) { FILE: enforcer_transactional.go type TransactionalEnforcer (line 30) | type TransactionalEnforcer struct method BeginTransaction (line 52) | func (te *TransactionalEnforcer) BeginTransaction(ctx context.Context)... method GetTransaction (line 83) | func (te *TransactionalEnforcer) GetTransaction(id string) *Transaction { method IsTransactionActive (line 91) | func (te *TransactionalEnforcer) IsTransactionActive(id string) bool { method WithTransaction (line 101) | func (te *TransactionalEnforcer) WithTransaction(ctx context.Context, ... function NewTransactionalEnforcer (line 39) | func NewTransactionalEnforcer(params ...interface{}) (*TransactionalEnfo... FILE: error_test.go function TestPathError (line 23) | func TestPathError(t *testing.T) { function TestEnforcerParamError (line 33) | func TestEnforcerParamError(t *testing.T) { function TestModelError (line 51) | func TestModelError(t *testing.T) { function TestEnforceError (line 71) | func TestEnforceError(t *testing.T) { function TestNoError (line 91) | func TestNoError(t *testing.T) { function TestModelNoError (line 116) | func TestModelNoError(t *testing.T) { function TestMockAdapterErrors (line 130) | func TestMockAdapterErrors(t *testing.T) { FILE: errors/constraint_errors.go type ConstraintViolationError (line 31) | type ConstraintViolationError struct method Error (line 36) | func (e *ConstraintViolationError) Error() string { function NewConstraintViolationError (line 41) | func NewConstraintViolationError(constraintName, message string) error { FILE: filter_test.go function TestInitFilteredAdapter (line 24) | func TestInitFilteredAdapter(t *testing.T) { function TestLoadFilteredPolicy (line 34) | func TestLoadFilteredPolicy(t *testing.T) { function TestLoadMoreTypeFilteredPolicy (line 69) | func TestLoadMoreTypeFilteredPolicy(t *testing.T) { function TestAppendFilteredPolicy (line 109) | func TestAppendFilteredPolicy(t *testing.T) { function TestFilteredPolicyInvalidFilter (line 149) | func TestFilteredPolicyInvalidFilter(t *testing.T) { function TestFilteredPolicyEmptyFilter (line 160) | func TestFilteredPolicyEmptyFilter(t *testing.T) { function TestUnsupportedFilteredPolicy (line 177) | func TestUnsupportedFilteredPolicy(t *testing.T) { function TestFilteredAdapterEmptyFilepath (line 189) | func TestFilteredAdapterEmptyFilepath(t *testing.T) { function TestFilteredAdapterInvalidFilepath (line 200) | func TestFilteredAdapterInvalidFilepath(t *testing.T) { FILE: frontend.go function CasbinJsGetPermissionForUser (line 22) | func CasbinJsGetPermissionForUser(e IEnforcer, user string) (string, err... FILE: frontend_old.go function CasbinJsGetPermissionForUserOld (line 19) | func CasbinJsGetPermissionForUserOld(e IEnforcer, user string) ([]byte, ... FILE: frontend_old_test.go function contains (line 22) | func contains(arr []string, target string) bool { function TestCasbinJsGetPermissionForUserOld (line 31) | func TestCasbinJsGetPermissionForUserOld(t *testing.T) { FILE: frontend_test.go function TestCasbinJsGetPermissionForUser (line 25) | func TestCasbinJsGetPermissionForUser(t *testing.T) { FILE: internal_api.go constant notImplemented (line 27) | notImplemented = "not implemented" method shouldPersist (line 30) | func (e *Enforcer) shouldPersist() bool { method shouldNotify (line 34) | func (e *Enforcer) shouldNotify() bool { method validateConstraintsForGroupingPolicy (line 40) | func (e *Enforcer) validateConstraintsForGroupingPolicy() error { method addPolicyWithoutNotify (line 45) | func (e *Enforcer) addPolicyWithoutNotify(sec string, ptype string, rule... method addPoliciesWithoutNotify (line 86) | func (e *Enforcer) addPoliciesWithoutNotify(sec string, ptype string, ru... method removePolicyWithoutNotify (line 132) | func (e *Enforcer) removePolicyWithoutNotify(sec string, ptype string, r... method updatePolicyWithoutNotify (line 165) | func (e *Enforcer) updatePolicyWithoutNotify(sec string, ptype string, o... method updatePoliciesWithoutNotify (line 201) | func (e *Enforcer) updatePoliciesWithoutNotify(sec string, ptype string,... method removePoliciesWithoutNotify (line 243) | func (e *Enforcer) removePoliciesWithoutNotify(sec string, ptype string,... method removeFilteredPolicyWithoutNotify (line 280) | func (e *Enforcer) removeFilteredPolicyWithoutNotify(sec string, ptype s... method updateFilteredPoliciesWithoutNotify (line 317) | func (e *Enforcer) updateFilteredPoliciesWithoutNotify(sec string, ptype... method addPolicy (line 378) | func (e *Enforcer) addPolicy(sec string, ptype string, rule []string) (b... method addPolicies (line 403) | func (e *Enforcer) addPolicies(sec string, ptype string, rules [][]strin... method removePolicy (line 423) | func (e *Enforcer) removePolicy(sec string, ptype string, rule []string)... method updatePolicy (line 445) | func (e *Enforcer) updatePolicy(sec string, ptype string, oldRule []stri... method updatePolicies (line 464) | func (e *Enforcer) updatePolicies(sec string, ptype string, oldRules [][... method removePolicies (line 484) | func (e *Enforcer) removePolicies(sec string, ptype string, rules [][]st... method removeFilteredPolicy (line 504) | func (e *Enforcer) removeFilteredPolicy(sec string, ptype string, fieldI... method updateFilteredPolicies (line 523) | func (e *Enforcer) updateFilteredPolicies(sec string, ptype string, newR... method GetFieldIndex (line 543) | func (e *Enforcer) GetFieldIndex(ptype string, field string) (int, error) { method SetFieldIndex (line 547) | func (e *Enforcer) SetFieldIndex(ptype string, field string, index int) { FILE: lbac_test.go function testEnforceLBAC (line 21) | func testEnforceLBAC(t *testing.T, e *Enforcer, sub string, subConf, sub... function TestLBACModel (line 30) | func TestLBACModel(t *testing.T) { FILE: log/default_logger.go type DefaultLogger (line 26) | type DefaultLogger struct method SetOutput (line 43) | func (l *DefaultLogger) SetOutput(w io.Writer) { method SetEventTypes (line 51) | func (l *DefaultLogger) SetEventTypes(eventTypes []EventType) error { method OnBeforeEvent (line 61) | func (l *DefaultLogger) OnBeforeEvent(entry *LogEntry) error { method OnAfterEvent (line 81) | func (l *DefaultLogger) OnAfterEvent(entry *LogEntry) error { method SetLogCallback (line 108) | func (l *DefaultLogger) SetLogCallback(callback func(entry *LogEntry) ... method writeLog (line 114) | func (l *DefaultLogger) writeLog(entry *LogEntry) error { function NewDefaultLogger (line 34) | func NewDefaultLogger() *DefaultLogger { FILE: log/logger.go type Logger (line 18) | type Logger interface FILE: log/types.go type EventType (line 20) | type EventType constant EventEnforce (line 24) | EventEnforce EventType = "enforce" constant EventAddPolicy (line 25) | EventAddPolicy EventType = "addPolicy" constant EventRemovePolicy (line 26) | EventRemovePolicy EventType = "removePolicy" constant EventLoadPolicy (line 27) | EventLoadPolicy EventType = "loadPolicy" constant EventSavePolicy (line 28) | EventSavePolicy EventType = "savePolicy" type LogEntry (line 32) | type LogEntry struct FILE: logger_test.go function verifyBufferOutput (line 25) | func verifyBufferOutput(t *testing.T, logOutput string) { function verifyCallbackEntries (line 35) | func verifyCallbackEntries(t *testing.T, entries []*log.LogEntry) { function TestEnforcerWithDefaultLogger (line 68) | func TestEnforcerWithDefaultLogger(t *testing.T) { function TestSetEventTypes (line 139) | func TestSetEventTypes(t *testing.T) { function verifySelectiveBufferOutput (line 199) | func verifySelectiveBufferOutput(t *testing.T, logOutput string) { function verifySelectiveCallbackEntries (line 215) | func verifySelectiveCallbackEntries(t *testing.T, entries []*log.LogEntr... function checkEntryActiveStatus (line 234) | func checkEntryActiveStatus(t *testing.T, entry *log.LogEntry) { FILE: management_api.go method GetAllSubjects (line 28) | func (e *Enforcer) GetAllSubjects() ([]string, error) { method GetAllNamedSubjects (line 33) | func (e *Enforcer) GetAllNamedSubjects(ptype string) ([]string, error) { method GetAllObjects (line 42) | func (e *Enforcer) GetAllObjects() ([]string, error) { method GetAllNamedObjects (line 47) | func (e *Enforcer) GetAllNamedObjects(ptype string) ([]string, error) { method GetAllActions (line 56) | func (e *Enforcer) GetAllActions() ([]string, error) { method GetAllNamedActions (line 61) | func (e *Enforcer) GetAllNamedActions(ptype string) ([]string, error) { method GetAllRoles (line 70) | func (e *Enforcer) GetAllRoles() ([]string, error) { method GetAllNamedRoles (line 75) | func (e *Enforcer) GetAllNamedRoles(ptype string) ([]string, error) { method GetAllUsers (line 81) | func (e *Enforcer) GetAllUsers() ([]string, error) { method GetPolicy (line 97) | func (e *Enforcer) GetPolicy() ([][]string, error) { method GetFilteredPolicy (line 102) | func (e *Enforcer) GetFilteredPolicy(fieldIndex int, fieldValues ...stri... method GetNamedPolicy (line 107) | func (e *Enforcer) GetNamedPolicy(ptype string) ([][]string, error) { method GetFilteredNamedPolicy (line 112) | func (e *Enforcer) GetFilteredNamedPolicy(ptype string, fieldIndex int, ... method GetGroupingPolicy (line 117) | func (e *Enforcer) GetGroupingPolicy() ([][]string, error) { method GetFilteredGroupingPolicy (line 122) | func (e *Enforcer) GetFilteredGroupingPolicy(fieldIndex int, fieldValues... method GetNamedGroupingPolicy (line 127) | func (e *Enforcer) GetNamedGroupingPolicy(ptype string) ([][]string, err... method GetFilteredNamedGroupingPolicy (line 132) | func (e *Enforcer) GetFilteredNamedGroupingPolicy(ptype string, fieldInd... method GetFilteredNamedPolicyWithMatcher (line 137) | func (e *Enforcer) GetFilteredNamedPolicyWithMatcher(ptype string, match... method HasPolicy (line 215) | func (e *Enforcer) HasPolicy(params ...interface{}) (bool, error) { method HasNamedPolicy (line 220) | func (e *Enforcer) HasNamedPolicy(ptype string, params ...interface{}) (... method AddPolicy (line 236) | func (e *Enforcer) AddPolicy(params ...interface{}) (bool, error) { method AddPolicies (line 243) | func (e *Enforcer) AddPolicies(rules [][]string) (bool, error) { method AddPoliciesEx (line 250) | func (e *Enforcer) AddPoliciesEx(rules [][]string) (bool, error) { method AddNamedPolicy (line 257) | func (e *Enforcer) AddNamedPolicy(ptype string, params ...interface{}) (... method AddNamedPolicies (line 273) | func (e *Enforcer) AddNamedPolicies(ptype string, rules [][]string) (boo... method AddNamedPoliciesEx (line 280) | func (e *Enforcer) AddNamedPoliciesEx(ptype string, rules [][]string) (b... method RemovePolicy (line 285) | func (e *Enforcer) RemovePolicy(params ...interface{}) (bool, error) { method UpdatePolicy (line 290) | func (e *Enforcer) UpdatePolicy(oldPolicy []string, newPolicy []string) ... method UpdateNamedPolicy (line 294) | func (e *Enforcer) UpdateNamedPolicy(ptype string, p1 []string, p2 []str... method UpdatePolicies (line 299) | func (e *Enforcer) UpdatePolicies(oldPolices [][]string, newPolicies [][... method UpdateNamedPolicies (line 303) | func (e *Enforcer) UpdateNamedPolicies(ptype string, p1 [][]string, p2 [... method UpdateFilteredPolicies (line 307) | func (e *Enforcer) UpdateFilteredPolicies(newPolicies [][]string, fieldI... method UpdateFilteredNamedPolicies (line 311) | func (e *Enforcer) UpdateFilteredNamedPolicies(ptype string, newPolicies... method RemovePolicies (line 316) | func (e *Enforcer) RemovePolicies(rules [][]string) (bool, error) { method RemoveFilteredPolicy (line 321) | func (e *Enforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...s... method RemoveNamedPolicy (line 326) | func (e *Enforcer) RemoveNamedPolicy(ptype string, params ...interface{}... method RemoveNamedPolicies (line 339) | func (e *Enforcer) RemoveNamedPolicies(ptype string, rules [][]string) (... method RemoveFilteredNamedPolicy (line 344) | func (e *Enforcer) RemoveFilteredNamedPolicy(ptype string, fieldIndex in... method HasGroupingPolicy (line 349) | func (e *Enforcer) HasGroupingPolicy(params ...interface{}) (bool, error) { method HasNamedGroupingPolicy (line 354) | func (e *Enforcer) HasNamedGroupingPolicy(ptype string, params ...interf... method AddGroupingPolicy (line 370) | func (e *Enforcer) AddGroupingPolicy(params ...interface{}) (bool, error) { method AddGroupingPolicies (line 377) | func (e *Enforcer) AddGroupingPolicies(rules [][]string) (bool, error) { method AddGroupingPoliciesEx (line 384) | func (e *Enforcer) AddGroupingPoliciesEx(rules [][]string) (bool, error) { method AddNamedGroupingPolicy (line 391) | func (e *Enforcer) AddNamedGroupingPolicy(ptype string, params ...interf... method AddNamedGroupingPolicies (line 411) | func (e *Enforcer) AddNamedGroupingPolicies(ptype string, rules [][]stri... method AddNamedGroupingPoliciesEx (line 418) | func (e *Enforcer) AddNamedGroupingPoliciesEx(ptype string, rules [][]st... method RemoveGroupingPolicy (line 423) | func (e *Enforcer) RemoveGroupingPolicy(params ...interface{}) (bool, er... method RemoveGroupingPolicies (line 428) | func (e *Enforcer) RemoveGroupingPolicies(rules [][]string) (bool, error) { method RemoveFilteredGroupingPolicy (line 433) | func (e *Enforcer) RemoveFilteredGroupingPolicy(fieldIndex int, fieldVal... method RemoveNamedGroupingPolicy (line 438) | func (e *Enforcer) RemoveNamedGroupingPolicy(ptype string, params ...int... method RemoveNamedGroupingPolicies (line 456) | func (e *Enforcer) RemoveNamedGroupingPolicies(ptype string, rules [][]s... method UpdateGroupingPolicy (line 460) | func (e *Enforcer) UpdateGroupingPolicy(oldRule []string, newRule []stri... method UpdateGroupingPolicies (line 465) | func (e *Enforcer) UpdateGroupingPolicies(oldRules [][]string, newRules ... method UpdateNamedGroupingPolicy (line 469) | func (e *Enforcer) UpdateNamedGroupingPolicy(ptype string, oldRule []str... method UpdateNamedGroupingPolicies (line 473) | func (e *Enforcer) UpdateNamedGroupingPolicies(ptype string, oldRules []... method RemoveFilteredNamedGroupingPolicy (line 478) | func (e *Enforcer) RemoveFilteredNamedGroupingPolicy(ptype string, field... method AddFunction (line 483) | func (e *Enforcer) AddFunction(name string, function govaluate.Expressio... method SelfAddPolicy (line 487) | func (e *Enforcer) SelfAddPolicy(sec string, ptype string, rule []string... method SelfAddPolicies (line 491) | func (e *Enforcer) SelfAddPolicies(sec string, ptype string, rules [][]s... method SelfAddPoliciesEx (line 495) | func (e *Enforcer) SelfAddPoliciesEx(sec string, ptype string, rules [][... method SelfRemovePolicy (line 499) | func (e *Enforcer) SelfRemovePolicy(sec string, ptype string, rule []str... method SelfRemovePolicies (line 503) | func (e *Enforcer) SelfRemovePolicies(sec string, ptype string, rules []... method SelfRemoveFilteredPolicy (line 507) | func (e *Enforcer) SelfRemoveFilteredPolicy(sec string, ptype string, fi... method SelfUpdatePolicy (line 511) | func (e *Enforcer) SelfUpdatePolicy(sec string, ptype string, oldRule, n... method SelfUpdatePolicies (line 515) | func (e *Enforcer) SelfUpdatePolicies(sec string, ptype string, oldRules... FILE: management_api_b_test.go function BenchmarkHasPolicySmall (line 22) | func BenchmarkHasPolicySmall(b *testing.B) { function BenchmarkHasPolicyMedium (line 36) | func BenchmarkHasPolicyMedium(b *testing.B) { function BenchmarkHasPolicyLarge (line 54) | func BenchmarkHasPolicyLarge(b *testing.B) { function BenchmarkAddPolicySmall (line 73) | func BenchmarkAddPolicySmall(b *testing.B) { function BenchmarkAddPolicyMedium (line 87) | func BenchmarkAddPolicyMedium(b *testing.B) { function BenchmarkAddPolicyLarge (line 105) | func BenchmarkAddPolicyLarge(b *testing.B) { function BenchmarkRemovePolicySmall (line 124) | func BenchmarkRemovePolicySmall(b *testing.B) { function BenchmarkRemovePolicyMedium (line 138) | func BenchmarkRemovePolicyMedium(b *testing.B) { function BenchmarkRemovePolicyLarge (line 157) | func BenchmarkRemovePolicyLarge(b *testing.B) { FILE: management_api_test.go function testStringList (line 23) | func testStringList(t *testing.T, title string, f func() ([]string, erro... function TestGetList (line 37) | func TestGetList(t *testing.T) { function TestGetListWithDomains (line 47) | func TestGetListWithDomains(t *testing.T) { function testGetPolicy (line 57) | func testGetPolicy(t *testing.T, e *Enforcer, res [][]string) { function testGetFilteredPolicy (line 71) | func testGetFilteredPolicy(t *testing.T, e *Enforcer, fieldIndex int, re... function testGetFilteredNamedPolicyWithMatcher (line 85) | func testGetFilteredNamedPolicyWithMatcher(t *testing.T, e *Enforcer, pt... function testGetGroupingPolicy (line 99) | func testGetGroupingPolicy(t *testing.T, e *Enforcer, res [][]string) { function testGetFilteredGroupingPolicy (line 113) | func testGetFilteredGroupingPolicy(t *testing.T, e *Enforcer, fieldIndex... function testHasPolicy (line 127) | func testHasPolicy(t *testing.T, e *Enforcer, policy []string, res bool) { function testHasGroupingPolicy (line 141) | func testHasGroupingPolicy(t *testing.T, e *Enforcer, policy []string, r... function TestGetPolicyAPI (line 155) | func TestGetPolicyAPI(t *testing.T) { function TestModifyPolicyAPI (line 202) | func TestModifyPolicyAPI(t *testing.T) { function TestModifyGroupingPolicyAPI (line 283) | func TestModifyGroupingPolicyAPI(t *testing.T) { FILE: model/assertion.go type Assertion (line 27) | type Assertion struct method buildIncrementalRoleLinks (line 40) | func (ast *Assertion) buildIncrementalRoleLinks(rm rbac.RoleManager, o... method buildRoleLinks (line 70) | func (ast *Assertion) buildRoleLinks(rm rbac.RoleManager) error { method buildIncrementalConditionalRoleLinks (line 92) | func (ast *Assertion) buildIncrementalConditionalRoleLinks(condRM rbac... method buildConditionalRoleLinks (line 124) | func (ast *Assertion) buildConditionalRoleLinks(condRM rbac.Conditiona... method addConditionalRoleLink (line 150) | func (ast *Assertion) addConditionalRoleLink(rule []string, domainRule... method copy (line 167) | func (ast *Assertion) copy() *Assertion { FILE: model/constraint.go type ConstraintType (line 27) | type ConstraintType constant ConstraintTypeSOD (line 30) | ConstraintTypeSOD ConstraintType = iota constant ConstraintTypeSODMax (line 31) | ConstraintTypeSODMax constant ConstraintTypeRoleMax (line 32) | ConstraintTypeRoleMax constant ConstraintTypeRolePre (line 33) | ConstraintTypeRolePre type Constraint (line 37) | type Constraint struct function parseRolesArray (line 55) | func parseRolesArray(rolesStr string) ([]string, error) { function parseConstraint (line 73) | func parseConstraint(key, value string) (*Constraint, error) { method ValidateConstraints (line 133) | func (model Model) ValidateConstraints() error { method validateConstraint (line 166) | func (model Model) validateConstraint(constraint *Constraint, groupingPo... function buildUserRoleMap (line 182) | func buildUserRoleMap(groupingPolicy [][]string) map[string]map[string]b... method validateSOD (line 202) | func (model Model) validateSOD(constraint *Constraint, groupingPolicy []... method validateSODMax (line 222) | func (model Model) validateSODMax(constraint *Constraint, groupingPolicy... method validateRoleMax (line 244) | func (model Model) validateRoleMax(constraint *Constraint, groupingPolic... method validateRolePre (line 269) | func (model Model) validateRolePre(constraint *Constraint, groupingPolic... FILE: model/function.go type FunctionMap (line 25) | type FunctionMap struct method AddFunction (line 32) | func (fm *FunctionMap) AddFunction(name string, function govaluate.Exp... method GetFunctions (line 57) | func (fm *FunctionMap) GetFunctions() map[string]govaluate.ExpressionF... function LoadFunctionMap (line 37) | func LoadFunctionMap() FunctionMap { FILE: model/model.go type Model (line 32) | type Model method AddDef (line 70) | func (model Model) AddDef(sec string, key string, value string) bool { method LoadModel (line 163) | func (model Model) LoadModel(path string) error { method LoadModelFromText (line 173) | func (model Model) LoadModelFromText(text string) error { method loadModelFromConfig (line 187) | func (model Model) loadModelFromConfig(cfg config.ConfigInterface) err... method hasSection (line 209) | func (model Model) hasSection(sec string) bool { method GetAssertion (line 214) | func (model Model) GetAssertion(sec string, ptype string) (*Assertion,... method PrintModel (line 225) | func (model Model) PrintModel() { method SortPoliciesBySubjectHierarchy (line 229) | func (model Model) SortPoliciesBySubjectHierarchy() error { method SortPoliciesByPriority (line 321) | func (model Model) SortPoliciesByPriority() error { method ToText (line 351) | func (model Model) ToText() string { method Copy (line 395) | func (model Model) Copy() Model { method GetFieldIndex (line 409) | func (model Model) GetFieldIndex(ptype string, field string) (int, err... type AssertionMap (line 35) | type AssertionMap constant defaultDomain (line 37) | defaultDomain string = "" constant defaultSeparator (line 38) | defaultSeparator = "::" function loadAssertion (line 52) | func loadAssertion(model Model, cfg config.ConfigInterface, sec string, ... function getParamsToken (line 60) | func getParamsToken(value string) []string { function getKeySuffix (line 112) | func getKeySuffix(i int) string { function loadSection (line 120) | func loadSection(model Model, cfg config.ConfigInterface, sec string) { function NewModel (line 132) | func NewModel() Model { function NewModelFromFile (line 139) | func NewModelFromFile(path string) (Model, error) { function NewModelFromString (line 151) | func NewModelFromString(text string) (Model, error) { function getSubjectHierarchyMap (line 266) | func getSubjectHierarchyMap(policies [][]string) (map[string]int, error) { function getNameWithDomain (line 317) | func getNameWithDomain(domain string, name string) string { FILE: model/model_test.go type MockConfig (line 39) | type MockConfig struct method String (line 44) | func (mc *MockConfig) String(key string) string { function TestNewModel (line 48) | func TestNewModel(t *testing.T) { function TestNewModelFromFile (line 55) | func TestNewModelFromFile(t *testing.T) { function TestNewModelFromString (line 65) | func TestNewModelFromString(t *testing.T) { function TestLoadModelFromConfig (line 77) | func TestLoadModelFromConfig(t *testing.T) { function TestHasSection (line 97) | func TestHasSection(t *testing.T) { function TestModel_AddDef (line 114) | func TestModel_AddDef(t *testing.T) { function TestModelToTest (line 128) | func TestModelToTest(t *testing.T) { function testModelToText (line 133) | func testModelToText(t *testing.T, mData, mExpected string) { FILE: model/policy.go type PolicyOp (line 28) | type PolicyOp constant PolicyAdd (line 32) | PolicyAdd PolicyOp = iota constant PolicyRemove (line 33) | PolicyRemove constant DefaultSep (line 36) | DefaultSep = "," method BuildIncrementalRoleLinks (line 39) | func (model Model) BuildIncrementalRoleLinks(rmMap map[string]rbac.RoleM... method BuildRoleLinks (line 51) | func (model Model) BuildRoleLinks(rmMap map[string]rbac.RoleManager) err... method BuildIncrementalConditionalRoleLinks (line 66) | func (model Model) BuildIncrementalConditionalRoleLinks(condRmMap map[st... method BuildConditionalRoleLinks (line 78) | func (model Model) BuildConditionalRoleLinks(condRmMap map[string]rbac.C... method PrintPolicy (line 93) | func (model Model) PrintPolicy() { method ClearPolicy (line 98) | func (model Model) ClearPolicy() { method GetPolicy (line 111) | func (model Model) GetPolicy(sec string, ptype string) ([][]string, erro... method GetFilteredPolicy (line 120) | func (model Model) GetFilteredPolicy(sec string, ptype string, fieldInde... method HasPolicyEx (line 145) | func (model Model) HasPolicyEx(sec string, ptype string, rule []string) ... method HasPolicy (line 172) | func (model Model) HasPolicy(sec string, ptype string, rule []string) (b... method HasPolicies (line 182) | func (model Model) HasPolicies(sec string, ptype string, rules [][]strin... method AddPolicy (line 197) | func (model Model) AddPolicy(sec string, ptype string, rule []string) er... method AddPolicies (line 228) | func (model Model) AddPolicies(sec string, ptype string, rules [][]strin... method AddPoliciesWithAffected (line 234) | func (model Model) AddPoliciesWithAffected(sec string, ptype string, rul... method RemovePolicy (line 257) | func (model Model) RemovePolicy(sec string, ptype string, rule []string)... method UpdatePolicy (line 280) | func (model Model) UpdatePolicy(sec string, ptype string, oldRule []stri... method UpdatePolicies (line 299) | func (model Model) UpdatePolicies(sec string, ptype string, oldRules, ne... method RemovePolicies (line 340) | func (model Model) RemovePolicies(sec string, ptype string, rules [][]st... method RemovePoliciesWithAffected (line 346) | func (model Model) RemovePoliciesWithAffected(sec string, ptype string, ... method RemoveFilteredPolicy (line 369) | func (model Model) RemoveFilteredPolicy(sec string, ptype string, fieldI... method GetValuesForFieldInPolicy (line 405) | func (model Model) GetValuesForFieldInPolicy(sec string, ptype string, f... method GetValuesForFieldInPolicyAllTypes (line 423) | func (model Model) GetValuesForFieldInPolicyAllTypes(sec string, fieldIn... method GetValuesForFieldInPolicyAllTypesByName (line 440) | func (model Model) GetValuesForFieldInPolicyAllTypesByName(sec string, f... FILE: model_b_test.go function rawEnforce (line 24) | func rawEnforce(sub string, obj string, act string) bool { function BenchmarkRaw (line 34) | func BenchmarkRaw(b *testing.B) { function BenchmarkBasicModel (line 40) | func BenchmarkBasicModel(b *testing.B) { function BenchmarkRBACModel (line 49) | func BenchmarkRBACModel(b *testing.B) { function BenchmarkRBACModelSizes (line 58) | func BenchmarkRBACModelSizes(b *testing.B) { function BenchmarkRBACModelSmall (line 127) | func BenchmarkRBACModelSmall(b *testing.B) { function BenchmarkRBACModelMedium (line 152) | func BenchmarkRBACModelMedium(b *testing.B) { function BenchmarkRBACModelLarge (line 183) | func BenchmarkRBACModelLarge(b *testing.B) { function BenchmarkRBACModelWithResourceRoles (line 214) | func BenchmarkRBACModelWithResourceRoles(b *testing.B) { function BenchmarkRBACModelWithDomains (line 223) | func BenchmarkRBACModelWithDomains(b *testing.B) { function BenchmarkABACModel (line 232) | func BenchmarkABACModel(b *testing.B) { function BenchmarkABACRuleModel (line 242) | func BenchmarkABACRuleModel(b *testing.B) { function BenchmarkKeyMatchModel (line 256) | func BenchmarkKeyMatchModel(b *testing.B) { function BenchmarkRBACModelWithDeny (line 265) | func BenchmarkRBACModelWithDeny(b *testing.B) { function BenchmarkPriorityModel (line 274) | func BenchmarkPriorityModel(b *testing.B) { function BenchmarkRBACModelWithDomainPatternLarge (line 283) | func BenchmarkRBACModelWithDomainPatternLarge(b *testing.B) { FILE: model_test.go function testEnforce (line 26) | func testEnforce(t *testing.T, e *Enforcer, sub interface{}, obj interfa... function testEnforceWithoutUsers (line 35) | func testEnforceWithoutUsers(t *testing.T, e *Enforcer, obj string, act ... function testDomainEnforce (line 42) | func testDomainEnforce(t *testing.T, e *Enforcer, sub string, dom string... function TestBasicModel (line 51) | func TestBasicModel(t *testing.T) { function TestBasicModelWithoutSpaces (line 64) | func TestBasicModelWithoutSpaces(t *testing.T) { function TestBasicModelNoPolicy (line 77) | func TestBasicModelNoPolicy(t *testing.T) { function TestBasicModelWithRoot (line 90) | func TestBasicModelWithRoot(t *testing.T) { function TestBasicModelWithRootNoPolicy (line 107) | func TestBasicModelWithRootNoPolicy(t *testing.T) { function TestBasicModelWithoutUsers (line 124) | func TestBasicModelWithoutUsers(t *testing.T) { function TestBasicModelWithoutResources (line 133) | func TestBasicModelWithoutResources(t *testing.T) { function TestRBACModel (line 142) | func TestRBACModel(t *testing.T) { function TestRBACModelWithResourceRoles (line 155) | func TestRBACModelWithResourceRoles(t *testing.T) { function TestRBACModelWithDomains (line 168) | func TestRBACModelWithDomains(t *testing.T) { function TestRBACModelWithDomainsAtRuntime (line 181) | func TestRBACModelWithDomainsAtRuntime(t *testing.T) { function TestRBACModelWithDomainsAtRuntimeMockAdapter (line 226) | func TestRBACModelWithDomainsAtRuntimeMockAdapter(t *testing.T) { function TestRBACModelWithDomainTokenRename (line 244) | func TestRBACModelWithDomainTokenRename(t *testing.T) { function TestRBACModelWithDeny (line 325) | func TestRBACModelWithDeny(t *testing.T) { function TestRBACModelWithOnlyDeny (line 338) | func TestRBACModelWithOnlyDeny(t *testing.T) { function TestRBACModelWithCustomData (line 344) | func TestRBACModelWithCustomData(t *testing.T) { function TestRBACModelWithPattern (line 376) | func TestRBACModelWithPattern(t *testing.T) { function TestRBACModelWithDifferentTypesOfRoles (line 413) | func TestRBACModelWithDifferentTypesOfRoles(t *testing.T) { type testCustomRoleManager (line 442) | type testCustomRoleManager struct method Clear (line 447) | func (rm *testCustomRoleManager) Clear() error { return nil } method AddLink (line 448) | func (rm *testCustomRoleManager) AddLink(name1 string, name2 string, d... method BuildRelationship (line 451) | func (rm *testCustomRoleManager) BuildRelationship(name1 string, name2... method DeleteLink (line 454) | func (rm *testCustomRoleManager) DeleteLink(name1 string, name2 string... method HasLink (line 457) | func (rm *testCustomRoleManager) HasLink(name1 string, name2 string, d... method GetRoles (line 467) | func (rm *testCustomRoleManager) GetRoles(name string, domain ...strin... method GetUsers (line 470) | func (rm *testCustomRoleManager) GetUsers(name string, domain ...strin... method GetDomains (line 473) | func (rm *testCustomRoleManager) GetDomains(name string) ([]string, er... method GetAllDomains (line 476) | func (rm *testCustomRoleManager) GetAllDomains() ([]string, error) { method PrintRoles (line 479) | func (rm *testCustomRoleManager) PrintRoles() error { return nil } method Match (line 481) | func (rm *testCustomRoleManager) Match(str string, pattern string) boo... method AddMatchingFunc (line 482) | func (rm *testCustomRoleManager) AddMatchingFunc(name string, fn rbac.... method AddDomainMatchingFunc (line 483) | func (rm *testCustomRoleManager) AddDomainMatchingFunc(name string, fn... method AddLinkConditionFunc (line 485) | func (rm *testCustomRoleManager) AddLinkConditionFunc(userName, roleNa... method SetLinkConditionFuncParams (line 487) | func (rm *testCustomRoleManager) SetLinkConditionFuncParams(userName, ... method AddDomainLinkConditionFunc (line 489) | func (rm *testCustomRoleManager) AddDomainLinkConditionFunc(user strin... method SetDomainLinkConditionFuncParams (line 491) | func (rm *testCustomRoleManager) SetDomainLinkConditionFuncParams(user... method DeleteDomain (line 494) | func (rm *testCustomRoleManager) DeleteDomain(domain string) error { method GetImplicitRoles (line 498) | func (rm *testCustomRoleManager) GetImplicitRoles(name string, domain ... method GetImplicitUsers (line 502) | func (rm *testCustomRoleManager) GetImplicitUsers(name string, domain ... function NewRoleManager (line 444) | func NewRoleManager() rbac.RoleManager { function TestRBACModelWithCustomRoleManager (line 506) | func TestRBACModelWithCustomRoleManager(t *testing.T) { function TestKeyMatchModel (line 522) | func TestKeyMatchModel(t *testing.T) { function TestKeyMatch2Model (line 548) | func TestKeyMatch2Model(t *testing.T) { function CustomFunction (line 557) | func CustomFunction(key1 string, key2 string) bool { function CustomFunctionWrapper (line 567) | func CustomFunctionWrapper(args ...interface{}) (interface{}, error) { function TestKeyMatchCustomModel (line 574) | func TestKeyMatchCustomModel(t *testing.T) { function TestIPMatchModel (line 583) | func TestIPMatchModel(t *testing.T) { function TestGlobMatchModel (line 607) | func TestGlobMatchModel(t *testing.T) { function TestPriorityModel (line 626) | func TestPriorityModel(t *testing.T) { function TestPriorityModelIndeterminate (line 639) | func TestPriorityModelIndeterminate(t *testing.T) { function TestRBACModelInMultiLines (line 645) | func TestRBACModelInMultiLines(t *testing.T) { function TestCommentModel (line 658) | func TestCommentModel(t *testing.T) { function TestDomainMatchModel (line 670) | func TestDomainMatchModel(t *testing.T) { function TestAllMatchModel (line 686) | func TestAllMatchModel(t *testing.T) { function TestTemporalRolesModel (line 697) | func TestTemporalRolesModel(t *testing.T) { function TestTemporalRolesModelWithDomain (line 726) | func TestTemporalRolesModelWithDomain(t *testing.T) { function TestReBACModel (line 772) | func TestReBACModel(t *testing.T) { FILE: orbac_test.go function testEnforceOrBAC (line 32) | func testEnforceOrBAC(t *testing.T, e *Enforcer, sub string, org string,... function TestOrBACModel (line 41) | func TestOrBACModel(t *testing.T) { FILE: pbac_test.go function testEnforcePBAC (line 22) | func testEnforcePBAC(t *testing.T, e *Enforcer, sub interface{}, obj int... function TestPBACModel (line 34) | func TestPBACModel(t *testing.T) { FILE: persist/adapter.go function LoadPolicyLine (line 25) | func LoadPolicyLine(line string, m model.Model) error { function LoadPolicyArray (line 44) | func LoadPolicyArray(rule []string, m model.Model) error { type Adapter (line 64) | type Adapter interface FILE: persist/adapter_context.go type ContextAdapter (line 24) | type ContextAdapter interface FILE: persist/adapter_filtered.go type FilteredAdapter (line 22) | type FilteredAdapter interface FILE: persist/adapter_filtered_context.go type ContextFilteredAdapter (line 24) | type ContextFilteredAdapter interface FILE: persist/batch_adapter.go type BatchAdapter (line 18) | type BatchAdapter interface FILE: persist/batch_adapter_context.go type ContextBatchAdapter (line 20) | type ContextBatchAdapter interface FILE: persist/cache/cache.go type Cache (line 21) | type Cache interface FILE: persist/cache/cache_sync.go type SyncCache (line 22) | type SyncCache struct method Set (line 27) | func (c *SyncCache) Set(key string, value bool, extra ...interface{}) ... method Get (line 42) | func (c *SyncCache) Get(key string) (bool, error) { method Delete (line 59) | func (c *SyncCache) Delete(key string) error { method Clear (line 73) | func (c *SyncCache) Clear() error { function NewSyncCache (line 80) | func NewSyncCache() (Cache, error) { FILE: persist/cache/default-cache.go type cacheItem (line 19) | type cacheItem struct type DefaultCache (line 25) | type DefaultCache method Set (line 27) | func (c *DefaultCache) Set(key string, value bool, extra ...interface{... method Get (line 40) | func (c *DefaultCache) Get(key string) (bool, error) { method Delete (line 52) | func (c *DefaultCache) Delete(key string) error { method Clear (line 61) | func (c *DefaultCache) Clear() error { function NewDefaultCache (line 66) | func NewDefaultCache() (Cache, error) { FILE: persist/dispatcher.go type Dispatcher (line 18) | type Dispatcher interface FILE: persist/file-adapter/adapter.go type Adapter (line 31) | type Adapter struct method UpdatePolicy (line 35) | func (a *Adapter) UpdatePolicy(sec string, ptype string, oldRule, newR... method UpdatePolicies (line 39) | func (a *Adapter) UpdatePolicies(sec string, ptype string, oldRules, n... method UpdateFilteredPolicies (line 43) | func (a *Adapter) UpdateFilteredPolicies(sec string, ptype string, new... method LoadPolicy (line 53) | func (a *Adapter) LoadPolicy(model model.Model) error { method SavePolicy (line 62) | func (a *Adapter) SavePolicy(model model.Model) error { method loadPolicyFile (line 88) | func (a *Adapter) loadPolicyFile(model model.Model, handler func(strin... method savePolicyFile (line 106) | func (a *Adapter) savePolicyFile(text string) error { method AddPolicy (line 127) | func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) e... method AddPolicies (line 132) | func (a *Adapter) AddPolicies(sec string, ptype string, rules [][]stri... method RemovePolicy (line 137) | func (a *Adapter) RemovePolicy(sec string, ptype string, rule []string... method RemovePolicies (line 142) | func (a *Adapter) RemovePolicies(sec string, ptype string, rules [][]s... method RemoveFilteredPolicy (line 147) | func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, field... function NewAdapter (line 48) | func NewAdapter(filePath string) *Adapter { FILE: persist/file-adapter/adapter_context.go method UpdatePolicyCtx (line 23) | func (a *Adapter) UpdatePolicyCtx(ctx context.Context, sec string, ptype... method UpdatePoliciesCtx (line 31) | func (a *Adapter) UpdatePoliciesCtx(ctx context.Context, sec string, pty... method UpdateFilteredPoliciesCtx (line 39) | func (a *Adapter) UpdateFilteredPoliciesCtx(ctx context.Context, sec str... method LoadPolicyCtx (line 48) | func (a *Adapter) LoadPolicyCtx(ctx context.Context, model model.Model) ... method SavePolicyCtx (line 57) | func (a *Adapter) SavePolicyCtx(ctx context.Context, model model.Model) ... method AddPolicyCtx (line 66) | func (a *Adapter) AddPolicyCtx(ctx context.Context, sec string, ptype st... method AddPoliciesCtx (line 75) | func (a *Adapter) AddPoliciesCtx(ctx context.Context, sec string, ptype ... method RemovePolicyCtx (line 84) | func (a *Adapter) RemovePolicyCtx(ctx context.Context, sec string, ptype... method RemovePoliciesCtx (line 93) | func (a *Adapter) RemovePoliciesCtx(ctx context.Context, sec string, pty... method RemoveFilteredPolicyCtx (line 102) | func (a *Adapter) RemoveFilteredPolicyCtx(ctx context.Context, sec strin... function checkCtx (line 110) | func checkCtx(ctx context.Context) error { FILE: persist/file-adapter/adapter_filtered.go type FilteredAdapter (line 29) | type FilteredAdapter struct method LoadPolicy (line 55) | func (a *FilteredAdapter) LoadPolicy(model model.Model) error { method LoadFilteredPolicy (line 61) | func (a *FilteredAdapter) LoadFilteredPolicy(model model.Model, filter... method loadFilteredPolicyFile (line 80) | func (a *FilteredAdapter) loadFilteredPolicyFile(model model.Model, fi... method IsFiltered (line 104) | func (a *FilteredAdapter) IsFiltered() bool { method SavePolicy (line 109) | func (a *FilteredAdapter) SavePolicy(model model.Model) error { type Filter (line 36) | type Filter struct function NewFilteredAdapter (line 47) | func NewFilteredAdapter(filePath string) *FilteredAdapter { function filterLine (line 116) | func filterLine(line string, filter *Filter) bool { function filterWords (line 144) | func filterWords(line []string, filter []string) bool { FILE: persist/file-adapter/adapter_filtered_context.go method LoadPolicyCtx (line 24) | func (a *FilteredAdapter) LoadPolicyCtx(ctx context.Context, model model... method LoadFilteredPolicyCtx (line 33) | func (a *FilteredAdapter) LoadFilteredPolicyCtx(ctx context.Context, mod... method SavePolicyCtx (line 42) | func (a *FilteredAdapter) SavePolicyCtx(ctx context.Context, model model... method IsFilteredCtx (line 51) | func (a *FilteredAdapter) IsFilteredCtx(ctx context.Context) bool { FILE: persist/file-adapter/adapter_mock.go type AdapterMock (line 30) | type AdapterMock struct method LoadPolicy (line 43) | func (a *AdapterMock) LoadPolicy(model model.Model) error { method SavePolicy (line 49) | func (a *AdapterMock) SavePolicy(model model.Model) error { method loadPolicyFile (line 53) | func (a *AdapterMock) loadPolicyFile(model model.Model, handler func(s... method SetMockErr (line 77) | func (a *AdapterMock) SetMockErr(errorToSet string) { method GetMockErr (line 82) | func (a *AdapterMock) GetMockErr() error { method AddPolicy (line 91) | func (a *AdapterMock) AddPolicy(sec string, ptype string, rule []strin... method AddPolicies (line 96) | func (a *AdapterMock) AddPolicies(sec string, ptype string, rules [][]... method RemovePolicy (line 101) | func (a *AdapterMock) RemovePolicy(sec string, ptype string, rule []st... method RemovePolicies (line 106) | func (a *AdapterMock) RemovePolicies(sec string, ptype string, rules [... method UpdatePolicy (line 111) | func (a *AdapterMock) UpdatePolicy(sec string, ptype string, oldRule, ... method UpdatePolicies (line 115) | func (a *AdapterMock) UpdatePolicies(sec string, ptype string, oldRule... method RemoveFilteredPolicy (line 120) | func (a *AdapterMock) RemoveFilteredPolicy(sec string, ptype string, f... function NewAdapterMock (line 36) | func NewAdapterMock(filePath string) *AdapterMock { FILE: persist/persist_test.go function TestPersist (line 25) | func TestPersist(t *testing.T) { function testRuleCount (line 29) | func testRuleCount(t *testing.T, model model.Model, expected int, sec st... function TestDuplicateRuleInAdapter (line 38) | func TestDuplicateRuleInAdapter(t *testing.T) { FILE: persist/string-adapter/adapter.go type Adapter (line 29) | type Adapter struct method LoadPolicy (line 41) | func (a *Adapter) LoadPolicy(model model.Model) error { method SavePolicy (line 57) | func (a *Adapter) SavePolicy(model model.Model) error { method AddPolicy (line 79) | func (a *Adapter) AddPolicy(sec string, ptype string, rule []string) e... method RemovePolicy (line 84) | func (a *Adapter) RemovePolicy(sec string, ptype string, rule []string... method RemoveFilteredPolicy (line 90) | func (a *Adapter) RemoveFilteredPolicy(sec string, ptype string, field... function NewAdapter (line 34) | func NewAdapter(line string) *Adapter { FILE: persist/string-adapter/adapter_context.go method LoadPolicyCtx (line 24) | func (a *Adapter) LoadPolicyCtx(ctx context.Context, model model.Model) ... method SavePolicyCtx (line 33) | func (a *Adapter) SavePolicyCtx(ctx context.Context, model model.Model) ... method AddPolicyCtx (line 42) | func (a *Adapter) AddPolicyCtx(ctx context.Context, sec string, ptype st... method RemovePolicyCtx (line 51) | func (a *Adapter) RemovePolicyCtx(ctx context.Context, sec string, ptype... method RemoveFilteredPolicyCtx (line 60) | func (a *Adapter) RemoveFilteredPolicyCtx(ctx context.Context, sec strin... function checkCtx (line 68) | func checkCtx(ctx context.Context) error { FILE: persist/string-adapter/adapter_test.go function Test_KeyMatchRbac (line 24) | func Test_KeyMatchRbac(t *testing.T) { function Test_StringRbac (line 64) | func Test_StringRbac(t *testing.T) { FILE: persist/transaction.go type TransactionalAdapter (line 21) | type TransactionalAdapter interface type TransactionContext (line 30) | type TransactionContext interface type PolicyOperation (line 40) | type PolicyOperation struct type OperationType (line 49) | type OperationType constant OperationAdd (line 53) | OperationAdd OperationType = iota constant OperationRemove (line 55) | OperationRemove constant OperationUpdate (line 57) | OperationUpdate FILE: persist/update_adapter.go type UpdatableAdapter (line 18) | type UpdatableAdapter interface FILE: persist/update_adapter_context.go type ContextUpdatableAdapter (line 20) | type ContextUpdatableAdapter interface FILE: persist/watcher.go type Watcher (line 18) | type Watcher interface FILE: persist/watcher_ex.go type WatcherEx (line 20) | type WatcherEx interface FILE: persist/watcher_update.go type UpdatableWatcher (line 18) | type UpdatableWatcher interface FILE: rbac/context_role_manager.go type ContextRoleManager (line 22) | type ContextRoleManager interface FILE: rbac/default-role-manager/role_manager.go constant defaultDomain (line 25) | defaultDomain string = "" type Role (line 28) | type Role struct method addRole (line 50) | func (r *Role) addRole(role *Role) { method removeRole (line 55) | func (r *Role) removeRole(role *Role) { method addUser (line 61) | func (r *Role) addUser(user *Role) { method removeUser (line 66) | func (r *Role) removeUser(user *Role) { method addMatch (line 70) | func (r *Role) addMatch(role *Role) { method removeMatch (line 75) | func (r *Role) removeMatch(role *Role) { method removeMatches (line 80) | func (r *Role) removeMatches() { method rangeRoles (line 91) | func (r *Role) rangeRoles(fn func(key, value interface{}) bool) { method rangeUsers (line 105) | func (r *Role) rangeUsers(fn func(key, value interface{}) bool) { method getRoles (line 119) | func (r *Role) getRoles() []string { method getUsers (line 128) | func (r *Role) getUsers() []string { method addLinkConditionFunc (line 142) | func (r *Role) addLinkConditionFunc(role *Role, domain string, fn rbac... method getLinkConditionFunc (line 146) | func (r *Role) getLinkConditionFunc(role *Role, domain string) (rbac.L... method setLinkConditionFuncParams (line 154) | func (r *Role) setLinkConditionFuncParams(role *Role, domain string, p... method getLinkConditionFuncParams (line 158) | func (r *Role) getLinkConditionFuncParams(role *Role, domain string) (... function newRole (line 38) | func newRole(name string) *Role { type linkConditionFuncKey (line 137) | type linkConditionFuncKey struct type RoleManagerImpl (line 167) | type RoleManagerImpl struct method rebuild (line 193) | func (rm *RoleManagerImpl) rebuild() { method Match (line 202) | func (rm *RoleManagerImpl) Match(str string, pattern string) bool { method rangeMatchingRoles (line 214) | func (rm *RoleManagerImpl) rangeMatchingRoles(name string, isPattern b... method load (line 226) | func (rm *RoleManagerImpl) load(name interface{}) (value *Role, ok boo... method getRole (line 234) | func (rm *RoleManagerImpl) getRole(name string) (r *Role, created bool) { method removeRole (line 266) | func (rm *RoleManagerImpl) removeRole(name string) { method AddMatchingFunc (line 273) | func (rm *RoleManagerImpl) AddMatchingFunc(name string, fn rbac.Matchi... method AddDomainMatchingFunc (line 279) | func (rm *RoleManagerImpl) AddDomainMatchingFunc(name string, fn rbac.... method Clear (line 284) | func (rm *RoleManagerImpl) Clear() error { method AddLink (line 292) | func (rm *RoleManagerImpl) AddLink(name1 string, name2 string, domains... method DeleteLink (line 301) | func (rm *RoleManagerImpl) DeleteLink(name1 string, name2 string, doma... method HasLink (line 309) | func (rm *RoleManagerImpl) HasLink(name1 string, name2 string, domains... method hasLinkHelper (line 331) | func (rm *RoleManagerImpl) hasLinkHelper(targetName string, roles map[... method GetRoles (line 351) | func (rm *RoleManagerImpl) GetRoles(name string, domains ...string) ([... method GetUsers (line 361) | func (rm *RoleManagerImpl) GetUsers(name string, domain ...string) ([]... method GetImplicitRoles (line 370) | func (rm *RoleManagerImpl) GetImplicitRoles(name string, domain ...str... method GetImplicitUsers (line 385) | func (rm *RoleManagerImpl) GetImplicitUsers(name string, domain ...str... method getImplicitRolesHelper (line 400) | func (rm *RoleManagerImpl) getImplicitRolesHelper(roles map[string]*Ro... method getImplicitUsersHelper (line 422) | func (rm *RoleManagerImpl) getImplicitUsersHelper(users map[string]*Ro... method PrintRoles (line 444) | func (rm *RoleManagerImpl) PrintRoles() error { method GetDomains (line 450) | func (rm *RoleManagerImpl) GetDomains(name string) ([]string, error) { method GetAllDomains (line 456) | func (rm *RoleManagerImpl) GetAllDomains() ([]string, error) { method copyFrom (line 461) | func (rm *RoleManagerImpl) copyFrom(other *RoleManagerImpl) { method Range (line 479) | func (rm *RoleManagerImpl) Range(fn func(name1, name2 string, domain .... method BuildRelationship (line 484) | func (rm *RoleManagerImpl) BuildRelationship(name1 string, name2 strin... method DeleteDomain (line 749) | func (rm *RoleManagerImpl) DeleteDomain(domain string) error { function NewRoleManagerImpl (line 178) | func NewRoleManagerImpl(maxHierarchyLevel int) *RoleManagerImpl { function newRoleManagerWithMatchingFunc (line 186) | func newRoleManagerWithMatchingFunc(maxHierarchyLevel int, fn rbac.Match... function loadAndDelete (line 258) | func loadAndDelete(m *sync.Map, name string) (value interface{}, loaded ... function rangeLinks (line 468) | func rangeLinks(users *sync.Map, fn func(name1, name2 string, domain ...... type DomainManager (line 488) | type DomainManager struct method AddMatchingFunc (line 506) | func (dm *DomainManager) AddMatchingFunc(name string, fn rbac.Matching... method AddDomainMatchingFunc (line 515) | func (dm *DomainManager) AddDomainMatchingFunc(name string, fn rbac.Ma... method rebuild (line 525) | func (dm *DomainManager) rebuild() { method Clear (line 541) | func (dm *DomainManager) Clear() error { method getDomain (line 547) | func (dm *DomainManager) getDomain(domains ...string) (domain string, ... method Match (line 556) | func (dm *DomainManager) Match(str string, pattern string) bool { method rangeAffectedRoleManagers (line 568) | func (dm *DomainManager) rangeAffectedRoleManagers(domain string, fn f... method load (line 580) | func (dm *DomainManager) load(name interface{}) (value *RoleManagerImp... method getRoleManager (line 588) | func (dm *DomainManager) getRoleManager(domain string, store bool) *Ro... method AddLink (line 613) | func (dm *DomainManager) AddLink(name1 string, name2 string, domains .... method DeleteLink (line 629) | func (dm *DomainManager) DeleteLink(name1 string, name2 string, domain... method HasLink (line 644) | func (dm *DomainManager) HasLink(name1 string, name2 string, domains .... method GetRoles (line 654) | func (dm *DomainManager) GetRoles(name string, domains ...string) ([]s... method GetUsers (line 664) | func (dm *DomainManager) GetUsers(name string, domains ...string) ([]s... method GetImplicitRoles (line 674) | func (dm *DomainManager) GetImplicitRoles(name string, domains ...stri... method GetImplicitUsers (line 684) | func (dm *DomainManager) GetImplicitUsers(name string, domains ...stri... method PrintRoles (line 694) | func (dm *DomainManager) PrintRoles() error { method GetDomains (line 700) | func (dm *DomainManager) GetDomains(name string) ([]string, error) { method GetAllDomains (line 718) | func (dm *DomainManager) GetAllDomains() ([]string, error) { method BuildRelationship (line 728) | func (dm *DomainManager) BuildRelationship(name1 string, name2 string,... method DeleteDomain (line 733) | func (dm *DomainManager) DeleteDomain(domain string) error { function NewDomainManager (line 498) | func NewDomainManager(maxHierarchyLevel int) *DomainManager { type RoleManager (line 738) | type RoleManager struct function NewRoleManager (line 742) | func NewRoleManager(maxHierarchyLevel int) *RoleManager { type ConditionalRoleManager (line 753) | type ConditionalRoleManager struct method copyFrom (line 757) | func (crm *ConditionalRoleManager) copyFrom(other *ConditionalRoleMana... method HasLink (line 781) | func (crm *ConditionalRoleManager) HasLink(name1 string, name2 string,... method hasLinkHelper (line 805) | func (crm *ConditionalRoleManager) hasLinkHelper(targetName string, ro... method getNextRoles (line 823) | func (crm *ConditionalRoleManager) getNextRoles(currentRole, nextRole ... method checkLinkCondition (line 838) | func (crm *ConditionalRoleManager) checkLinkCondition(name1, name2 str... method GetRoles (line 857) | func (crm *ConditionalRoleManager) GetRoles(name string, domains ...st... method GetUsers (line 880) | func (crm *ConditionalRoleManager) GetUsers(name string, domains ...st... method GetImplicitRoles (line 906) | func (crm *ConditionalRoleManager) GetImplicitRoles(name string, domai... method GetImplicitUsers (line 921) | func (crm *ConditionalRoleManager) GetImplicitUsers(name string, domai... method getImplicitRolesHelper (line 936) | func (crm *ConditionalRoleManager) getImplicitRolesHelper(roles map[st... method getImplicitUsersHelper (line 966) | func (crm *ConditionalRoleManager) getImplicitUsersHelper(users map[st... method GetLinkConditionFunc (line 996) | func (crm *ConditionalRoleManager) GetLinkConditionFunc(userName, role... method GetDomainLinkConditionFunc (line 1001) | func (crm *ConditionalRoleManager) GetDomainLinkConditionFunc(userName... method GetLinkConditionFuncParams (line 1019) | func (crm *ConditionalRoleManager) GetLinkConditionFuncParams(userName... method AddLinkConditionFunc (line 1046) | func (crm *ConditionalRoleManager) AddLinkConditionFunc(userName, role... method AddDomainLinkConditionFunc (line 1051) | func (crm *ConditionalRoleManager) AddDomainLinkConditionFunc(userName... method SetLinkConditionFuncParams (line 1059) | func (crm *ConditionalRoleManager) SetLinkConditionFuncParams(userName... method SetDomainLinkConditionFuncParams (line 1064) | func (crm *ConditionalRoleManager) SetDomainLinkConditionFuncParams(us... function newConditionalRoleManagerWithMatchingFunc (line 765) | func newConditionalRoleManagerWithMatchingFunc(maxHierarchyLevel int, fn... function NewConditionalRoleManager (line 773) | func NewConditionalRoleManager(maxHierarchyLevel int) *ConditionalRoleMa... type ConditionalDomainManager (line 1071) | type ConditionalDomainManager struct method load (line 1085) | func (cdm *ConditionalDomainManager) load(name interface{}) (value *Co... method getConditionalRoleManager (line 1093) | func (cdm *ConditionalDomainManager) getConditionalRoleManager(domain ... method HasLink (line 1117) | func (cdm *ConditionalDomainManager) HasLink(name1 string, name2 strin... method GetRoles (line 1126) | func (cdm *ConditionalDomainManager) GetRoles(name string, domains ...... method GetUsers (line 1135) | func (cdm *ConditionalDomainManager) GetUsers(name string, domains ...... method GetImplicitRoles (line 1144) | func (cdm *ConditionalDomainManager) GetImplicitRoles(name string, dom... method GetImplicitUsers (line 1153) | func (cdm *ConditionalDomainManager) GetImplicitUsers(name string, dom... method AddLink (line 1164) | func (cdm *ConditionalDomainManager) AddLink(name1 string, name2 strin... method DeleteLink (line 1180) | func (cdm *ConditionalDomainManager) DeleteLink(name1 string, name2 st... method AddLinkConditionFunc (line 1195) | func (cdm *ConditionalDomainManager) AddLinkConditionFunc(userName, ro... method AddDomainLinkConditionFunc (line 1203) | func (cdm *ConditionalDomainManager) AddDomainLinkConditionFunc(userNa... method SetLinkConditionFuncParams (line 1211) | func (cdm *ConditionalDomainManager) SetLinkConditionFuncParams(userNa... method SetDomainLinkConditionFuncParams (line 1219) | func (cdm *ConditionalDomainManager) SetDomainLinkConditionFuncParams(... method AddDomainMatchingFunc (line 1227) | func (cdm *ConditionalDomainManager) AddDomainMatchingFunc(name string... method rebuild (line 1237) | func (cdm *ConditionalDomainManager) rebuild() { function NewConditionalDomainManager (line 1078) | func NewConditionalDomainManager(maxHierarchyLevel int) *ConditionalDoma... FILE: rbac/default-role-manager/role_manager_test.go function testRole (line 27) | func testRole(t *testing.T, rm rbac.RoleManager, name1 string, name2 str... function testDomainRole (line 37) | func testDomainRole(t *testing.T, rm rbac.RoleManager, name1 string, nam... function testPrintRoles (line 47) | func testPrintRoles(t *testing.T, rm rbac.RoleManager, name string, res ... function testPrintUsers (line 57) | func testPrintUsers(t *testing.T, rm rbac.RoleManager, name string, res ... function testPrintRolesWithDomain (line 67) | func testPrintRolesWithDomain(t *testing.T, rm rbac.RoleManager, name st... function TestRole (line 76) | func TestRole(t *testing.T) { function TestDomainRole (line 165) | func TestDomainRole(t *testing.T) { function TestClear (line 232) | func TestClear(t *testing.T) { function TestDomainPatternRole (line 267) | func TestDomainPatternRole(t *testing.T) { function TestAllMatchingFunc (line 297) | func TestAllMatchingFunc(t *testing.T) { function TestMatchingFuncOrder (line 311) | func TestMatchingFuncOrder(t *testing.T) { function TestDomainMatchingFuncWithDifferentDomain (line 332) | func TestDomainMatchingFuncWithDifferentDomain(t *testing.T) { function TestTemporaryRoles (line 343) | func TestTemporaryRoles(t *testing.T) { function TestMaxHierarchyLevel (line 366) | func TestMaxHierarchyLevel(t *testing.T) { function TestConcurrentHasLink (line 396) | func TestConcurrentHasLink(t *testing.T) { FILE: rbac/role_manager.go type MatchingFunc (line 17) | type MatchingFunc type RoleManager (line 22) | type RoleManager interface type ConditionalRoleManager (line 66) | type ConditionalRoleManager interface FILE: rbac_api.go method GetRolesForUser (line 29) | func (e *Enforcer) GetRolesForUser(name string, domain ...string) ([]str... method GetUsersForRole (line 39) | func (e *Enforcer) GetUsersForRole(name string, domain ...string) ([]str... method HasRoleForUser (line 49) | func (e *Enforcer) HasRoleForUser(name string, role string, domain ...st... method AddRoleForUser (line 67) | func (e *Enforcer) AddRoleForUser(user string, role string, domain ...st... method AddRolesForUser (line 75) | func (e *Enforcer) AddRolesForUser(user string, roles []string, domain .... method DeleteRoleForUser (line 87) | func (e *Enforcer) DeleteRoleForUser(user string, role string, domain ..... method DeleteRolesForUser (line 95) | func (e *Enforcer) DeleteRolesForUser(user string, domain ...string) (bo... method DeleteUser (line 109) | func (e *Enforcer) DeleteUser(user string) (bool, error) { method DeleteRole (line 126) | func (e *Enforcer) DeleteRole(role string) (bool, error) { method DeletePermission (line 148) | func (e *Enforcer) DeletePermission(permission ...string) (bool, error) { method AddPermissionForUser (line 154) | func (e *Enforcer) AddPermissionForUser(user string, permission ...strin... method AddPermissionsForUser (line 160) | func (e *Enforcer) AddPermissionsForUser(user string, permissions ...[]s... method DeletePermissionForUser (line 170) | func (e *Enforcer) DeletePermissionForUser(user string, permission ...st... method DeletePermissionsForUser (line 176) | func (e *Enforcer) DeletePermissionsForUser(user string) (bool, error) { method GetPermissionsForUser (line 185) | func (e *Enforcer) GetPermissionsForUser(user string, domain ...string) ... method GetNamedPermissionsForUser (line 190) | func (e *Enforcer) GetNamedPermissionsForUser(ptype string, user string,... method HasPermissionForUser (line 221) | func (e *Enforcer) HasPermissionForUser(user string, permission ...strin... method GetImplicitRolesForUser (line 233) | func (e *Enforcer) GetImplicitRolesForUser(name string, domain ...string... method GetNamedImplicitRolesForUser (line 264) | func (e *Enforcer) GetNamedImplicitRolesForUser(ptype string, name strin... method GetImplicitUsersForRole (line 275) | func (e *Enforcer) GetImplicitUsersForRole(name string, domain ...string... method GetImplicitPermissionsForUser (line 307) | func (e *Enforcer) GetImplicitPermissionsForUser(user string, domain ...... method GetNamedImplicitPermissionsForUser (line 320) | func (e *Enforcer) GetNamedImplicitPermissionsForUser(ptype string, gtyp... method GetImplicitUsersForPermission (line 373) | func (e *Enforcer) GetImplicitUsersForPermission(permission ...string) (... method GetDomainsForUser (line 409) | func (e *Enforcer) GetDomainsForUser(user string) ([]string, error) { method GetImplicitResourcesForUser (line 429) | func (e *Enforcer) GetImplicitResourcesForUser(user string, domain ...st... function deepCopyPolicy (line 468) | func deepCopyPolicy(src []string) []string { method GetAllowedObjectConditions (line 486) | func (e *Enforcer) GetAllowedObjectConditions(user string, action string... function removeDuplicatePermissions (line 511) | func removeDuplicatePermissions(permissions [][]string) [][]string { method GetImplicitUsersForResource (line 535) | func (e *Enforcer) GetImplicitUsersForResource(resource string) ([][]str... method GetNamedImplicitUsersForResource (line 546) | func (e *Enforcer) GetNamedImplicitUsersForResource(ptype string, resour... method GetImplicitUsersForResourceByDomain (line 603) | func (e *Enforcer) GetImplicitUsersForResourceByDomain(resource string, ... method GetImplicitObjectPatternsForUser (line 663) | func (e *Enforcer) GetImplicitObjectPatternsForUser(user string, domain ... method matchDomain (line 711) | func (e *Enforcer) matchDomain(domainIndex int, domain string, rule []st... FILE: rbac_api_context.go method AddRoleForUserCtx (line 28) | func (e *ContextEnforcer) AddRoleForUserCtx(ctx context.Context, user st... method DeleteRoleForUserCtx (line 36) | func (e *ContextEnforcer) DeleteRoleForUserCtx(ctx context.Context, user... method DeleteRolesForUserCtx (line 44) | func (e *ContextEnforcer) DeleteRolesForUserCtx(ctx context.Context, use... method DeleteUserCtx (line 58) | func (e *ContextEnforcer) DeleteUserCtx(ctx context.Context, user string... method DeleteRoleCtx (line 75) | func (e *ContextEnforcer) DeleteRoleCtx(ctx context.Context, role string... method DeletePermissionCtx (line 97) | func (e *ContextEnforcer) DeletePermissionCtx(ctx context.Context, permi... method AddPermissionForUserCtx (line 103) | func (e *ContextEnforcer) AddPermissionForUserCtx(ctx context.Context, u... method AddPermissionsForUserCtx (line 109) | func (e *ContextEnforcer) AddPermissionsForUserCtx(ctx context.Context, ... method DeletePermissionForUserCtx (line 119) | func (e *ContextEnforcer) DeletePermissionForUserCtx(ctx context.Context... method DeletePermissionsForUserCtx (line 125) | func (e *ContextEnforcer) DeletePermissionsForUserCtx(ctx context.Contex... FILE: rbac_api_synced.go method GetRolesForUser (line 18) | func (e *SyncedEnforcer) GetRolesForUser(name string, domain ...string) ... method GetUsersForRole (line 25) | func (e *SyncedEnforcer) GetUsersForRole(name string, domain ...string) ... method HasRoleForUser (line 32) | func (e *SyncedEnforcer) HasRoleForUser(name string, role string, domain... method AddRoleForUser (line 40) | func (e *SyncedEnforcer) AddRoleForUser(user string, role string, domain... method AddRolesForUser (line 48) | func (e *SyncedEnforcer) AddRolesForUser(user string, roles []string, do... method DeleteRoleForUser (line 56) | func (e *SyncedEnforcer) DeleteRoleForUser(user string, role string, dom... method DeleteRolesForUser (line 64) | func (e *SyncedEnforcer) DeleteRolesForUser(user string, domain ...strin... method DeleteUser (line 72) | func (e *SyncedEnforcer) DeleteUser(user string) (bool, error) { method DeleteRole (line 80) | func (e *SyncedEnforcer) DeleteRole(role string) (bool, error) { method DeletePermission (line 88) | func (e *SyncedEnforcer) DeletePermission(permission ...string) (bool, e... method AddPermissionForUser (line 96) | func (e *SyncedEnforcer) AddPermissionForUser(user string, permission ..... method AddPermissionsForUser (line 104) | func (e *SyncedEnforcer) AddPermissionsForUser(user string, permissions ... method DeletePermissionForUser (line 112) | func (e *SyncedEnforcer) DeletePermissionForUser(user string, permission... method DeletePermissionsForUser (line 120) | func (e *SyncedEnforcer) DeletePermissionsForUser(user string) (bool, er... method GetPermissionsForUser (line 127) | func (e *SyncedEnforcer) GetPermissionsForUser(user string, domain ...st... method GetNamedPermissionsForUser (line 134) | func (e *SyncedEnforcer) GetNamedPermissionsForUser(ptype string, user s... method HasPermissionForUser (line 141) | func (e *SyncedEnforcer) HasPermissionForUser(user string, permission ..... method GetImplicitRolesForUser (line 155) | func (e *SyncedEnforcer) GetImplicitRolesForUser(name string, domain ...... method GetImplicitPermissionsForUser (line 170) | func (e *SyncedEnforcer) GetImplicitPermissionsForUser(user string, doma... method GetNamedImplicitPermissionsForUser (line 185) | func (e *SyncedEnforcer) GetNamedImplicitPermissionsForUser(ptype string... method GetImplicitUsersForPermission (line 199) | func (e *SyncedEnforcer) GetImplicitUsersForPermission(permission ...str... method GetImplicitObjectPatternsForUser (line 214) | func (e *SyncedEnforcer) GetImplicitObjectPatternsForUser(user string, d... FILE: rbac_api_test.go function testGetRoles (line 29) | func testGetRoles(t *testing.T, e *Enforcer, res []string, name string, ... function testGetUsers (line 42) | func testGetUsers(t *testing.T, e *Enforcer, res []string, name string, ... function testHasRole (line 60) | func testHasRole(t *testing.T, e *Enforcer, name string, role string, re... function TestRoleAPI (line 73) | func TestRoleAPI(t *testing.T) { function TestRoleAPI_Domains (line 132) | func TestRoleAPI_Domains(t *testing.T) { function TestEnforcer_AddRolesForUser (line 178) | func TestEnforcer_AddRolesForUser(t *testing.T) { function testGetPermissions (line 194) | func testGetPermissions(t *testing.T, e *Enforcer, name string, res [][]... function testHasPermission (line 207) | func testHasPermission(t *testing.T, e *Enforcer, name string, permissio... function testGetNamedPermissionsForUser (line 221) | func testGetNamedPermissionsForUser(t *testing.T, e *Enforcer, ptype str... function TestPermissionAPI (line 234) | func TestPermissionAPI(t *testing.T) { function testGetImplicitRoles (line 290) | func testGetImplicitRoles(t *testing.T, e *Enforcer, name string, res []... function testGetImplicitRolesInDomain (line 300) | func testGetImplicitRolesInDomain(t *testing.T, e *Enforcer, name string... function TestImplicitRoleAPI (line 310) | func TestImplicitRoleAPI(t *testing.T) { function testGetImplicitPermissions (line 329) | func testGetImplicitPermissions(t *testing.T, e *Enforcer, name string, ... function testGetImplicitPermissionsWithDomain (line 339) | func testGetImplicitPermissionsWithDomain(t *testing.T, e *Enforcer, nam... function testGetNamedImplicitPermissions (line 349) | func testGetNamedImplicitPermissions(t *testing.T, e *Enforcer, ptype st... function TestImplicitPermissionAPI (line 359) | func TestImplicitPermissionAPI(t *testing.T) { function TestImplicitPermissionAPIWithDomain (line 391) | func TestImplicitPermissionAPIWithDomain(t *testing.T) { function testGetImplicitUsers (line 396) | func testGetImplicitUsers(t *testing.T, e *Enforcer, res []string, permi... function TestImplicitUserAPI (line 409) | func TestImplicitUserAPI(t *testing.T) { function testGetImplicitResourcesForUser (line 424) | func testGetImplicitResourcesForUser(t *testing.T, e *Enforcer, res [][]... function TestGetImplicitResourcesForUser (line 450) | func TestGetImplicitResourcesForUser(t *testing.T) { function TestImplicitUsersForRole (line 472) | func TestImplicitUsersForRole(t *testing.T) { function testGetImplicitUsersForRole (line 482) | func testGetImplicitUsersForRole(t *testing.T, e *Enforcer, name string,... function TestExplicitPriorityModify (line 494) | func TestExplicitPriorityModify(t *testing.T) { function TestCustomizedFieldIndex (line 517) | func TestCustomizedFieldIndex(t *testing.T) { function testGetAllowedObjectConditions (line 560) | func testGetAllowedObjectConditions(t *testing.T, e *Enforcer, user stri... function TestGetAllowedObjectConditions (line 574) | func TestGetAllowedObjectConditions(t *testing.T) { function testGetImplicitUsersForResource (line 609) | func testGetImplicitUsersForResource(t *testing.T, e *Enforcer, res [][]... function TestGetImplicitUsersForResource (line 623) | func TestGetImplicitUsersForResource(t *testing.T) { function TestGetImplicitUsersForResourceWithResourceRoles (line 638) | func TestGetImplicitUsersForResourceWithResourceRoles(t *testing.T) { function testGetImplicitUsersForResourceByDomain (line 675) | func testGetImplicitUsersForResourceByDomain(t *testing.T, e *Enforcer, ... function TestGetImplicitUsersForResourceByDomain (line 689) | func TestGetImplicitUsersForResourceByDomain(t *testing.T) { function TestConditional (line 700) | func TestConditional(t *testing.T) { function TestMaxHierarchyLevelConsistency (line 715) | func TestMaxHierarchyLevelConsistency(t *testing.T) { function testGetImplicitObjectPatternsForUser (line 848) | func testGetImplicitObjectPatternsForUser(t *testing.T, e *Enforcer, use... function TestGetImplicitObjectPatternsForUser (line 861) | func TestGetImplicitObjectPatternsForUser(t *testing.T) { FILE: rbac_api_with_domains.go method GetUsersForRoleInDomain (line 24) | func (e *Enforcer) GetUsersForRoleInDomain(name string, domain string) [... method GetRolesForUserInDomain (line 33) | func (e *Enforcer) GetRolesForUserInDomain(name string, domain string) [... method GetPermissionsForUserInDomain (line 42) | func (e *Enforcer) GetPermissionsForUserInDomain(user string, domain str... method AddRoleForUserInDomain (line 49) | func (e *Enforcer) AddRoleForUserInDomain(user string, role string, doma... method DeleteRoleForUserInDomain (line 55) | func (e *Enforcer) DeleteRoleForUserInDomain(user string, role string, d... method DeleteRolesForUserInDomain (line 61) | func (e *Enforcer) DeleteRolesForUserInDomain(user string, domain string... method GetAllUsersByDomain (line 79) | func (e *Enforcer) GetAllUsersByDomain(domain string) ([]string, error) { method DeleteAllUsersByDomain (line 112) | func (e *Enforcer) DeleteAllUsersByDomain(domain string) (bool, error) { method DeleteDomains (line 149) | func (e *Enforcer) DeleteDomains(domains ...string) (bool, error) { method GetAllDomains (line 172) | func (e *Enforcer) GetAllDomains() ([]string, error) { method GetAllRolesByDomain (line 181) | func (e *Enforcer) GetAllRolesByDomain(domain string) ([]string, error) { FILE: rbac_api_with_domains_context.go method AddRoleForUserInDomainCtx (line 26) | func (e *ContextEnforcer) AddRoleForUserInDomainCtx(ctx context.Context,... method DeleteRoleForUserInDomainCtx (line 32) | func (e *ContextEnforcer) DeleteRoleForUserInDomainCtx(ctx context.Conte... method DeleteRolesForUserInDomainCtx (line 38) | func (e *ContextEnforcer) DeleteRolesForUserInDomainCtx(ctx context.Cont... method DeleteAllUsersByDomainCtx (line 56) | func (e *ContextEnforcer) DeleteAllUsersByDomainCtx(ctx context.Context,... method DeleteDomainsCtx (line 93) | func (e *ContextEnforcer) DeleteDomainsCtx(ctx context.Context, domains ... FILE: rbac_api_with_domains_synced.go method GetUsersForRoleInDomain (line 18) | func (e *SyncedEnforcer) GetUsersForRoleInDomain(name string, domain str... method GetRolesForUserInDomain (line 25) | func (e *SyncedEnforcer) GetRolesForUserInDomain(name string, domain str... method GetPermissionsForUserInDomain (line 32) | func (e *SyncedEnforcer) GetPermissionsForUserInDomain(user string, doma... method AddRoleForUserInDomain (line 40) | func (e *SyncedEnforcer) AddRoleForUserInDomain(user string, role string... method DeleteRoleForUserInDomain (line 48) | func (e *SyncedEnforcer) DeleteRoleForUserInDomain(user string, role str... method DeleteRolesForUserInDomain (line 56) | func (e *SyncedEnforcer) DeleteRolesForUserInDomain(user string, domain ... method DeleteDomains (line 64) | func (e *SyncedEnforcer) DeleteDomains(domains ...string) (bool, error) { FILE: rbac_api_with_domains_test.go function testGetUsersInDomain (line 25) | func testGetUsersInDomain(t *testing.T, e *Enforcer, name string, domain... function testGetRolesInDomain (line 35) | func testGetRolesInDomain(t *testing.T, e *Enforcer, name string, domain... function TestGetImplicitRolesForDomainUser (line 45) | func TestGetImplicitRolesForDomainUser(t *testing.T) { function TestUserAPIWithDomains (line 56) | func TestUserAPIWithDomains(t *testing.T) { function TestRoleAPIWithDomains (line 87) | func TestRoleAPIWithDomains(t *testing.T) { function testGetPermissionsInDomain (line 169) | func testGetPermissionsInDomain(t *testing.T, e *Enforcer, name string, ... function TestPermissionAPIInDomain (line 179) | func TestPermissionAPIInDomain(t *testing.T) { function testGetDomainsForUser (line 193) | func testGetDomainsForUser(t *testing.T, e *Enforcer, res []string, user... function TestGetDomainsForUser (line 205) | func TestGetDomainsForUser(t *testing.T) { function testGetAllUsersByDomain (line 213) | func testGetAllUsersByDomain(t *testing.T, e *Enforcer, domain string, e... function TestGetAllUsersByDomain (line 220) | func TestGetAllUsersByDomain(t *testing.T) { function testDeleteAllUsersByDomain (line 227) | func testDeleteAllUsersByDomain(t *testing.T, domain string, expectedPol... function TestDeleteAllUsersByDomain (line 248) | func TestDeleteAllUsersByDomain(t *testing.T) { function testGetAllDomains (line 264) | func testGetAllDomains(t *testing.T, e *Enforcer, res []string) { function TestGetAllDomains (line 274) | func TestGetAllDomains(t *testing.T) { function testGetAllRolesByDomain (line 280) | func testGetAllRolesByDomain(t *testing.T, e *Enforcer, domain string, e... function TestGetAllRolesByDomain (line 287) | func TestGetAllRolesByDomain(t *testing.T) { function testDeleteDomains (line 300) | func testDeleteDomains(t *testing.T, domains []string, expectedPolicy, e... function TestDeleteDomains (line 326) | func TestDeleteDomains(t *testing.T) { function TestGetRolesForUserInDomainWithConditionalFunctions (line 345) | func TestGetRolesForUserInDomainWithConditionalFunctions(t *testing.T) { FILE: role_manager_b_test.go function BenchmarkRoleManagerSmall (line 10) | func BenchmarkRoleManagerSmall(b *testing.B) { function BenchmarkRoleManagerMedium (line 47) | func BenchmarkRoleManagerMedium(b *testing.B) { function BenchmarkRoleManagerLarge (line 88) | func BenchmarkRoleManagerLarge(b *testing.B) { function BenchmarkBuildRoleLinksWithPatternLarge (line 123) | func BenchmarkBuildRoleLinksWithPatternLarge(b *testing.B) { function BenchmarkBuildRoleLinksWithDomainPatternLarge (line 132) | func BenchmarkBuildRoleLinksWithDomainPatternLarge(b *testing.B) { function BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge (line 141) | func BenchmarkBuildRoleLinksWithPatternAndDomainPatternLarge(b *testing.... function BenchmarkHasLinkWithPatternLarge (line 151) | func BenchmarkHasLinkWithPatternLarge(b *testing.B) { function BenchmarkHasLinkWithDomainPatternLarge (line 161) | func BenchmarkHasLinkWithDomainPatternLarge(b *testing.B) { function BenchmarkHasLinkWithPatternAndDomainPatternLarge (line 171) | func BenchmarkHasLinkWithPatternAndDomainPatternLarge(b *testing.B) { function BenchmarkConcurrentHasLinkWithMatching (line 184) | func BenchmarkConcurrentHasLinkWithMatching(b *testing.B) { FILE: syntax_test.go function TestSyntaxMatcher (line 25) | func TestSyntaxMatcher(t *testing.T) { FILE: transaction.go constant defaultLockTimeout (line 29) | defaultLockTimeout = 30 * time.Second type Transaction (line 35) | type Transaction struct method AddPolicy (line 50) | func (tx *Transaction) AddPolicy(params ...interface{}) (bool, error) { method buildRuleFromParams (line 55) | func (tx *Transaction) buildRuleFromParams(params ...interface{}) []st... method checkTransactionStatus (line 72) | func (tx *Transaction) checkTransactionStatus() error { method AddNamedPolicy (line 81) | func (tx *Transaction) AddNamedPolicy(ptype string, params ...interfac... method AddPolicies (line 115) | func (tx *Transaction) AddPolicies(rules [][]string) (bool, error) { method AddNamedPolicies (line 120) | func (tx *Transaction) AddNamedPolicies(ptype string, rules [][]string... method RemovePolicy (line 166) | func (tx *Transaction) RemovePolicy(params ...interface{}) (bool, erro... method RemoveNamedPolicy (line 171) | func (tx *Transaction) RemoveNamedPolicy(ptype string, params ...inter... method RemovePolicies (line 205) | func (tx *Transaction) RemovePolicies(rules [][]string) (bool, error) { method RemoveNamedPolicies (line 210) | func (tx *Transaction) RemoveNamedPolicies(ptype string, rules [][]str... method UpdatePolicy (line 256) | func (tx *Transaction) UpdatePolicy(oldPolicy []string, newPolicy []st... method UpdateNamedPolicy (line 261) | func (tx *Transaction) UpdateNamedPolicy(ptype string, oldPolicy []str... method AddGroupingPolicy (line 305) | func (tx *Transaction) AddGroupingPolicy(params ...interface{}) (bool,... method AddNamedGroupingPolicy (line 310) | func (tx *Transaction) AddNamedGroupingPolicy(ptype string, params ...... method RemoveGroupingPolicy (line 344) | func (tx *Transaction) RemoveGroupingPolicy(params ...interface{}) (bo... method RemoveNamedGroupingPolicy (line 349) | func (tx *Transaction) RemoveNamedGroupingPolicy(ptype string, params ... method GetBufferedModel (line 384) | func (tx *Transaction) GetBufferedModel() (model.Model, error) { method HasOperations (line 396) | func (tx *Transaction) HasOperations() bool { method OperationCount (line 403) | func (tx *Transaction) OperationCount() int { function tryLockWithTimeout (line 410) | func tryLockWithTimeout(lock *sync.Mutex, startTime time.Time, maxWait t... FILE: transaction_buffer.go type TransactionBuffer (line 27) | type TransactionBuffer struct method AddOperation (line 44) | func (tb *TransactionBuffer) AddOperation(op persist.PolicyOperation) { method GetOperations (line 52) | func (tb *TransactionBuffer) GetOperations() []persist.PolicyOperation { method Clear (line 64) | func (tb *TransactionBuffer) Clear() { method GetModelSnapshot (line 72) | func (tb *TransactionBuffer) GetModelSnapshot() model.Model { method ApplyOperationsToModel (line 81) | func (tb *TransactionBuffer) ApplyOperationsToModel(baseModel model.Mo... method HasOperations (line 120) | func (tb *TransactionBuffer) HasOperations() bool { method OperationCount (line 127) | func (tb *TransactionBuffer) OperationCount() int { function NewTransactionBuffer (line 35) | func NewTransactionBuffer(baseModel model.Model) *TransactionBuffer { FILE: transaction_commit.go method Commit (line 27) | func (tx *Transaction) Commit() error { method Rollback (line 105) | func (tx *Transaction) Rollback() error { method applyOperationsToDatabase (line 135) | func (tx *Transaction) applyOperationsToDatabase() error { method applyAddOperationToDatabase (line 160) | func (tx *Transaction) applyAddOperationToDatabase(adapter persist.Adapt... method applyRemoveOperationToDatabase (line 176) | func (tx *Transaction) applyRemoveOperationToDatabase(adapter persist.Ad... method applyUpdateOperationToDatabase (line 192) | func (tx *Transaction) applyUpdateOperationToDatabase(adapter persist.Ad... method applyOperationsToModel (line 211) | func (tx *Transaction) applyOperationsToModel() error { method IsCommitted (line 246) | func (tx *Transaction) IsCommitted() bool { method IsRolledBack (line 253) | func (tx *Transaction) IsRolledBack() bool { method IsActive (line 260) | func (tx *Transaction) IsActive() bool { FILE: transaction_conflict.go type ConflictError (line 25) | type ConflictError struct method Error (line 30) | func (e *ConflictError) Error() string { type ConflictDetector (line 35) | type ConflictDetector struct method DetectConflicts (line 52) | func (cd *ConflictDetector) DetectConflicts() error { method detectRemoveConflict (line 75) | func (cd *ConflictDetector) detectRemoveConflict(op persist.PolicyOper... method detectUpdateConflict (line 102) | func (cd *ConflictDetector) detectUpdateConflict(op persist.PolicyOper... function NewConflictDetector (line 42) | func NewConflictDetector(baseModel, currentModel model.Model, operations... FILE: transaction_test.go type MockTransactionalAdapter (line 27) | type MockTransactionalAdapter struct method LoadPolicy (line 44) | func (a *MockTransactionalAdapter) LoadPolicy(model model.Model) error { method SavePolicy (line 49) | func (a *MockTransactionalAdapter) SavePolicy(model model.Model) error { method AddPolicy (line 54) | func (a *MockTransactionalAdapter) AddPolicy(sec string, ptype string,... method RemovePolicy (line 59) | func (a *MockTransactionalAdapter) RemovePolicy(sec string, ptype stri... method RemoveFilteredPolicy (line 64) | func (a *MockTransactionalAdapter) RemoveFilteredPolicy(sec string, pt... method BeginTransaction (line 69) | func (a *MockTransactionalAdapter) BeginTransaction(ctx context.Contex... type MockTransactionContext (line 32) | type MockTransactionContext struct method Commit (line 74) | func (tx *MockTransactionContext) Commit() error { method Rollback (line 83) | func (tx *MockTransactionContext) Rollback() error { method GetAdapter (line 92) | func (tx *MockTransactionContext) GetAdapter() persist.Adapter { function NewMockTransactionalAdapter (line 39) | func NewMockTransactionalAdapter() *MockTransactionalAdapter { function TestTransactionBasicOperations (line 97) | func TestTransactionBasicOperations(t *testing.T) { function TestTransactionRollback (line 136) | func TestTransactionRollback(t *testing.T) { function TestConcurrentTransactions (line 170) | func TestConcurrentTransactions(t *testing.T) { function TestTransactionConflicts (line 224) | func TestTransactionConflicts(t *testing.T) { function TestTransactionBuffer (line 288) | func TestTransactionBuffer(t *testing.T) { FILE: util/builtin_operators.go function mustCompileOrGet (line 44) | func mustCompileOrGet(key string) *regexp.Regexp { function validateVariadicArgs (line 60) | func validateVariadicArgs(expectedLen int, args ...interface{}) error { function validateVariadicStringArgs (line 76) | func validateVariadicStringArgs(expectedLen int, args ...string) error { function KeyMatch (line 85) | func KeyMatch(key1 string, key2 string) bool { function KeyMatchFunc (line 98) | func KeyMatchFunc(args ...interface{}) (interface{}, error) { function KeyGet (line 112) | func KeyGet(key1, key2 string) string { function KeyGetFunc (line 126) | func KeyGetFunc(args ...interface{}) (interface{}, error) { function KeyMatch2 (line 139) | func KeyMatch2(key1 string, key2 string) bool { function KeyMatch2Func (line 148) | func KeyMatch2Func(args ...interface{}) (interface{}, error) { function KeyGet2 (line 162) | func KeyGet2(key1, key2 string, pathVar string) string { function KeyGet2Func (line 182) | func KeyGet2Func(args ...interface{}) (interface{}, error) { function KeyMatch3 (line 196) | func KeyMatch3(key1 string, key2 string) bool { function KeyMatch3Func (line 204) | func KeyMatch3Func(args ...interface{}) (interface{}, error) { function KeyGet3 (line 218) | func KeyGet3(key1, key2 string, pathVar string) string { function KeyGet3Func (line 238) | func KeyGet3Func(args ...interface{}) (interface{}, error) { function KeyMatch4 (line 255) | func KeyMatch4(key1 string, key2 string) bool { function KeyMatch4Func (line 292) | func KeyMatch4Func(args ...interface{}) (interface{}, error) { function KeyMatch5 (line 308) | func KeyMatch5(key1 string, key2 string) bool { function KeyMatch5Func (line 322) | func KeyMatch5Func(args ...interface{}) (interface{}, error) { function RegexMatch (line 334) | func RegexMatch(key1 string, key2 string) bool { function RegexMatchFunc (line 343) | func RegexMatchFunc(args ...interface{}) (interface{}, error) { function IPMatch (line 356) | func IPMatch(ip1 string, ip2 string) bool { function IPMatchFunc (line 376) | func IPMatchFunc(args ...interface{}) (interface{}, error) { function GlobMatch (line 388) | func GlobMatch(key1 string, key2 string) (bool, error) { function GlobMatchFunc (line 393) | func GlobMatchFunc(args ...interface{}) (interface{}, error) { function GenerateGFunction (line 405) | func GenerateGFunction(rm rbac.RoleManager) govaluate.ExpressionFunction { function GenerateConditionalGFunction (line 448) | func GenerateConditionalGFunction(crm rbac.ConditionalRoleManager) goval... function TimeMatchFunc (line 470) | func TimeMatchFunc(args ...string) (bool, error) { function TimeMatch (line 479) | func TimeMatch(startTime, endTime string) (bool, error) { FILE: util/builtin_operators_test.go function testKeyMatch (line 21) | func testKeyMatch(t *testing.T, key1 string, key2 string, res bool) { function TestKeyMatch (line 31) | func TestKeyMatch(t *testing.T) { function testKeyGet (line 43) | func testKeyGet(t *testing.T, key1 string, key2 string, res string) { function TestKeyGet (line 53) | func TestKeyGet(t *testing.T) { function testKeyMatch2 (line 65) | func testKeyMatch2(t *testing.T, key1 string, key2 string, res bool) { function testGlobMatch (line 75) | func testGlobMatch(t *testing.T, key1 string, key2 string, res bool) { function TestKeyMatch2 (line 88) | func TestKeyMatch2(t *testing.T) { function testKeyGet2 (line 119) | func testKeyGet2(t *testing.T, key1 string, key2 string, pathVar string,... function TestKeyGet2 (line 129) | func TestKeyGet2(t *testing.T) { function testKeyMatch3 (line 162) | func testKeyMatch3(t *testing.T, key1 string, key2 string, res bool) { function TestKeyMatch3 (line 172) | func TestKeyMatch3(t *testing.T) { function testKeyGet3 (line 199) | func testKeyGet3(t *testing.T, key1 string, key2 string, pathVar string,... function TestKeyGet3 (line 209) | func TestKeyGet3(t *testing.T) { function testKeyMatch4 (line 249) | func testKeyMatch4(t *testing.T, key1 string, key2 string, res bool) { function TestKeyMatch4 (line 259) | func TestKeyMatch4(t *testing.T) { function testRegexMatch (line 275) | func testRegexMatch(t *testing.T, key1 string, key2 string, res bool) { function TestRegexMatch (line 285) | func TestRegexMatch(t *testing.T) { function testIPMatch (line 297) | func testIPMatch(t *testing.T, ip1 string, ip2 string, res bool) { function TestIPMatch (line 307) | func TestIPMatch(t *testing.T) { function testRegexMatchFunc (line 317) | func testRegexMatchFunc(t *testing.T, res bool, err string, args ...inte... function testKeyMatchFunc (line 331) | func testKeyMatchFunc(t *testing.T, res bool, err string, args ...interf... function testKeyMatch2Func (line 345) | func testKeyMatch2Func(t *testing.T, res bool, err string, args ...inter... function testKeyMatch3Func (line 359) | func testKeyMatch3Func(t *testing.T, res bool, err string, args ...inter... function testKeyMatch4Func (line 373) | func testKeyMatch4Func(t *testing.T, res bool, err string, args ...inter... function testKeyMatch5Func (line 387) | func testKeyMatch5Func(t *testing.T, res bool, err string, args ...inter... function testIPMatchFunc (line 401) | func testIPMatchFunc(t *testing.T, res bool, err string, args ...interfa... function TestRegexMatchFunc (line 415) | func TestRegexMatchFunc(t *testing.T) { function TestKeyMatchFunc (line 422) | func TestKeyMatchFunc(t *testing.T) { function TestKeyMatch2Func (line 431) | func TestKeyMatch2Func(t *testing.T) { function TestKeyMatch3Func (line 444) | func TestKeyMatch3Func(t *testing.T) { function TestKeyMatch4Func (line 472) | func TestKeyMatch4Func(t *testing.T) { function TestKeyMatch5Func (line 484) | func TestKeyMatch5Func(t *testing.T) { function TestIPMatchFunc (line 526) | func TestIPMatchFunc(t *testing.T) { function TestGlobMatch (line 532) | func TestGlobMatch(t *testing.T) { function testTimeMatch (line 643) | func testTimeMatch(t *testing.T, startTime string, endTime string, res b... function TestTestMatch (line 656) | func TestTestMatch(t *testing.T) { FILE: util/util.go function JsonToMap (line 29) | func JsonToMap(jsonStr string) (map[string]interface{}, error) { function EscapeAssertion (line 39) | func EscapeAssertion(s string) string { function RemoveComments (line 52) | func RemoveComments(s string) string { function ArrayEquals (line 61) | func ArrayEquals(a []string, b []string) bool { function Array2DEquals (line 75) | func Array2DEquals(a [][]string, b [][]string) bool { function SortArray2D (line 89) | func SortArray2D(arr [][]string) { function SortedArray2DEquals (line 108) | func SortedArray2DEquals(a [][]string, b [][]string) bool { function ArrayRemoveDuplicates (line 129) | func ArrayRemoveDuplicates(s *[]string) { function ArrayToString (line 143) | func ArrayToString(s []string) string { function ParamsToString (line 148) | func ParamsToString(s ...string) string { function SetEquals (line 153) | func SetEquals(a []string, b []string) bool { function SetEqualsInt (line 170) | func SetEqualsInt(a []int, b []int) bool { function Set2DEquals (line 187) | func Set2DEquals(a [][]string, b [][]string) bool { function JoinSlice (line 207) | func JoinSlice(a string, b ...string) []string { function JoinSliceAny (line 217) | func JoinSliceAny(a string, b ...string) []interface{} { function SetSubtract (line 229) | func SetSubtract(a []string, b []string) []string { function HasEval (line 244) | func HasEval(s string) bool { function ReplaceEval (line 249) | func ReplaceEval(s string, rule string) string { function ReplaceEvalWithMap (line 254) | func ReplaceEvalWithMap(src string, sets map[string]string) string { function GetEvalValue (line 270) | func GetEvalValue(s string) []string { function EscapeStringLiterals (line 283) | func EscapeStringLiterals(expr string) string { function RemoveDuplicateElement (line 314) | func RemoveDuplicateElement(s []string) []string { type node (line 326) | type node struct type LRUCache (line 333) | type LRUCache struct method remove (line 357) | func (cache *LRUCache) remove(n *node, listOnly bool) { method add (line 365) | func (cache *LRUCache) add(n *node, listOnly bool) { method moveToHead (line 376) | func (cache *LRUCache) moveToHead(n *node) { method Get (line 381) | func (cache *LRUCache) Get(key interface{}) (value interface{}, ok boo... method Put (line 391) | func (cache *LRUCache) Put(key interface{}, value interface{}) { function NewLRUCache (line 340) | func NewLRUCache(capacity int) *LRUCache { type SyncLRUCache (line 404) | type SyncLRUCache struct method Get (line 415) | func (cache *SyncLRUCache) Get(key interface{}) (value interface{}, ok... method Put (line 421) | func (cache *SyncLRUCache) Put(key interface{}, value interface{}) { function NewSyncLRUCache (line 409) | func NewSyncLRUCache(capacity int) *SyncLRUCache { FILE: util/util_test.go function testEscapeAssertion (line 21) | func testEscapeAssertion(t *testing.T, s string, res string) { function TestEscapeAssertion (line 31) | func TestEscapeAssertion(t *testing.T) { function testRemoveComments (line 55) | func testRemoveComments(t *testing.T, s string, res string) { function TestRemoveComments (line 65) | func TestRemoveComments(t *testing.T) { function testArrayEquals (line 73) | func testArrayEquals(t *testing.T, a []string, b []string, res bool) { function TestArrayEquals (line 83) | func TestArrayEquals(t *testing.T) { function testArray2DEquals (line 90) | func testArray2DEquals(t *testing.T, a [][]string, b [][]string, res boo... function TestArray2DEquals (line 100) | func TestArray2DEquals(t *testing.T) { function testSetEquals (line 108) | func testSetEquals(t *testing.T, a []string, b []string, res bool) { function TestSetEquals (line 118) | func TestSetEquals(t *testing.T) { function testContainEval (line 125) | func testContainEval(t *testing.T, s string, res bool) { function TestContainEval (line 132) | func TestContainEval(t *testing.T) { function testReplaceEval (line 140) | func testReplaceEval(t *testing.T, s string, rule string, res string) { function TestReplaceEval (line 148) | func TestReplaceEval(t *testing.T) { function testGetEvalValue (line 153) | func testGetEvalValue(t *testing.T, s string, res []string) { function TestGetEvalValue (line 162) | func TestGetEvalValue(t *testing.T) { function testReplaceEvalWithMap (line 169) | func testReplaceEvalWithMap(t *testing.T, s string, sets map[string]stri... function TestReplaceEvalWithMap (line 178) | func TestReplaceEvalWithMap(t *testing.T) { function testCacheGet (line 193) | func testCacheGet(t *testing.T, c *LRUCache, key string, value interface... function testCachePut (line 200) | func testCachePut(t *testing.T, c *LRUCache, key string, value interface... function testCacheEqual (line 208) | func testCacheEqual(t *testing.T, c *LRUCache, values []int) { function TestLRUCache (line 219) | func TestLRUCache(t *testing.T) { function testEscapeStringLiterals (line 230) | func testEscapeStringLiterals(t *testing.T, input string, expected strin... function TestEscapeStringLiterals (line 242) | func TestEscapeStringLiterals(t *testing.T) { FILE: util_log.go method onLogBeforeEvent (line 23) | func (e *Enforcer) onLogBeforeEvent(eventType log.EventType) *log.LogEnt... method onLogAfterEvent (line 35) | func (e *Enforcer) onLogAfterEvent(logEntry *log.LogEntry) { method onLogAfterEventWithError (line 42) | func (e *Enforcer) onLogAfterEventWithError(logEntry *log.LogEntry, err ... function countModelRules (line 50) | func countModelRules(m model.Model) int { method onLogBeforeEventInLoadPolicy (line 66) | func (e *Enforcer) onLogBeforeEventInLoadPolicy() *log.LogEntry { method onLogAfterEventInLoadPolicy (line 71) | func (e *Enforcer) onLogAfterEventInLoadPolicy(logEntry *log.LogEntry, n... method onLogBeforeEventInSavePolicy (line 79) | func (e *Enforcer) onLogBeforeEventInSavePolicy() *log.LogEntry { method onLogAfterEventInSavePolicy (line 92) | func (e *Enforcer) onLogAfterEventInSavePolicy(logEntry *log.LogEntry) { method createEnforceLogEntry (line 97) | func (e *Enforcer) createEnforceLogEntry(rvals []interface{}) *log.LogEn... method onLogBeforeEventInEnforce (line 125) | func (e *Enforcer) onLogBeforeEventInEnforce(rvals []interface{}) *log.L... method onLogAfterEventInEnforce (line 135) | func (e *Enforcer) onLogAfterEventInEnforce(logEntry *log.LogEntry, allo... method logPolicyOperation (line 143) | func (e *Enforcer) logPolicyOperation(eventType log.EventType, sec strin... FILE: watcher_ex_test.go type SampleWatcherEx (line 23) | type SampleWatcherEx struct method UpdateForAddPolicy (line 27) | func (w SampleWatcherEx) UpdateForAddPolicy(sec, ptype string, params ... method UpdateForRemovePolicy (line 30) | func (w SampleWatcherEx) UpdateForRemovePolicy(sec, ptype string, para... method UpdateForRemoveFilteredPolicy (line 34) | func (w SampleWatcherEx) UpdateForRemoveFilteredPolicy(sec, ptype stri... method UpdateForSavePolicy (line 38) | func (w SampleWatcherEx) UpdateForSavePolicy(model model.Model) error { method UpdateForAddPolicies (line 42) | func (w SampleWatcherEx) UpdateForAddPolicies(sec string, ptype string... method UpdateForRemovePolicies (line 46) | func (w SampleWatcherEx) UpdateForRemovePolicies(sec string, ptype str... function TestSetWatcherEx (line 50) | func TestSetWatcherEx(t *testing.T) { FILE: watcher_test.go type SampleWatcher (line 19) | type SampleWatcher struct method Close (line 23) | func (w *SampleWatcher) Close() { method SetUpdateCallback (line 26) | func (w *SampleWatcher) SetUpdateCallback(callback func(string)) error { method Update (line 31) | func (w *SampleWatcher) Update() error { function TestSetWatcher (line 38) | func TestSetWatcher(t *testing.T) { function TestSelfModify (line 54) | func TestSelfModify(t *testing.T) { FILE: watcher_update_test.go type SampleWatcherUpdatable (line 21) | type SampleWatcherUpdatable struct method UpdateForUpdatePolicy (line 25) | func (w SampleWatcherUpdatable) UpdateForUpdatePolicy(params ...string... function TestSetWatcherUpdatable (line 29) | func TestSetWatcherUpdatable(t *testing.T) {