LoadFilteredPolicyCtx loads all policy rules from the storage with context and filter.
(ctx context.Context, filter interface{})
| 86 | |
| 87 | // LoadFilteredPolicyCtx loads all policy rules from the storage with context and filter. |
| 88 | func (e *Enforcer) LoadFilteredPolicyCtx(ctx context.Context, filter interface{}) error { |
| 89 | e.model.ClearPolicy() |
| 90 | return e.loadFilteredPolicyCtx(ctx, filter) |
| 91 | } |
| 92 | |
| 93 | // LoadIncrementalFilteredPolicyCtx append a filtered policy from file/database with context. |
| 94 | func (e *Enforcer) LoadIncrementalFilteredPolicyCtx(ctx context.Context, filter interface{}) error { |
nothing calls this directly
no test coverage detected