ContextUpdatableAdapter is the context-aware interface for Casbin adapters with add update policy function.
| 18 | |
| 19 | // ContextUpdatableAdapter is the context-aware interface for Casbin adapters with add update policy function. |
| 20 | type ContextUpdatableAdapter interface { |
| 21 | ContextAdapter |
| 22 | |
| 23 | // UpdatePolicyCtx updates a policy rule from storage. |
| 24 | // This is part of the Auto-Save feature. |
| 25 | UpdatePolicyCtx(ctx context.Context, sec string, ptype string, oldRule, newRule []string) error |
| 26 | // UpdatePoliciesCtx updates some policy rules to storage, like db, redis. |
| 27 | UpdatePoliciesCtx(ctx context.Context, sec string, ptype string, oldRules, newRules [][]string) error |
| 28 | // UpdateFilteredPoliciesCtx deletes old rules and adds new rules. |
| 29 | UpdateFilteredPoliciesCtx(ctx context.Context, sec string, ptype string, newRules [][]string, fieldIndex int, fieldValues ...string) ([][]string, error) |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…