MCPcopy
hub / github.com/apache/casbin / Adapter

Struct Adapter

persist/file-adapter/adapter.go:31–33  ·  view source on GitHub ↗

Adapter is the file adapter for Casbin. It can load policy from file or save policy to file.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected