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

Function NewAdapter

persist/string-adapter/adapter.go:34–38  ·  view source on GitHub ↗

NewAdapter is the constructor for Adapter.

(line string)

Source from the content-addressed store, hash-verified

32
33// NewAdapter is the constructor for Adapter.
34func NewAdapter(line string) *Adapter {
35 return &Adapter{
36 Line: line,
37 }
38}
39
40// LoadPolicy loads all policy rules from the storage.
41func (a *Adapter) LoadPolicy(model model.Model) error {

Callers 2

Test_KeyMatchRbacFunction · 0.70
Test_StringRbacFunction · 0.70

Calls

no outgoing calls

Tested by 2

Test_KeyMatchRbacFunction · 0.56
Test_StringRbacFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…