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

Method SavePolicy

persist/adapter.go:68–68  ·  view source on GitHub ↗

SavePolicy saves all policy rules to the storage.

(model model.Model)

Source from the content-addressed store, hash-verified

66 LoadPolicy(model model.Model) error
67 // SavePolicy saves all policy rules to the storage.
68 SavePolicy(model model.Model) error
69
70 // AddPolicy adds a policy rule to the storage.
71 // This is part of the Auto-Save feature.

Callers 5

ClearPolicySelfMethod · 0.65
SavePolicyMethod · 0.65
TestLoadFilteredPolicyFunction · 0.65
SavePolicyMethod · 0.65
SavePolicyMethod · 0.65

Implementers 6

MockTransactionalAdaptertransaction_test.go
Enforcerenforcer.go
SyncedEnforcerenforcer_synced.go
Adapterpersist/file-adapter/adapter.go
AdapterMockpersist/file-adapter/adapter_mock.go
Adapterpersist/string-adapter/adapter.go

Calls

no outgoing calls

Tested by 1

TestLoadFilteredPolicyFunction · 0.52