Adapter is the file adapter for Casbin. It can load policy from file or save policy to file.
| 29 | // Adapter is the file adapter for Casbin. |
| 30 | // It can load policy from file or save policy to file. |
| 31 | type Adapter struct { |
| 32 | filePath string |
| 33 | } |
| 34 | |
| 35 | func (a *Adapter) UpdatePolicy(sec string, ptype string, oldRule, newRule []string) error { |
| 36 | return errors.New("not implemented") |
nothing calls this directly
no outgoing calls
no test coverage detected