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

Method RemovePolicy

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

RemovePolicy removes a policy rule from the storage. This is part of the Auto-Save feature.

(sec string, ptype string, rule []string)

Source from the content-addressed store, hash-verified

73 // RemovePolicy removes a policy rule from the storage.
74 // This is part of the Auto-Save feature.
75 RemovePolicy(sec string, ptype string, rule []string) error
76 // RemoveFilteredPolicy removes policy rules that match the filter from the storage.
77 // This is part of the Auto-Save feature.
78 RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error

Callers 8

RemovePolicyMethod · 0.65
RemovePolicyMethod · 0.65
RemovePolicyMethod · 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

no test coverage detected