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

Method GetPolicy

enforcer_interface.go:107–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 GetAllNamedRoles(ptype string) ([]string, error)
106 GetAllUsers() ([]string, error)
107 GetPolicy() ([][]string, error)
108 GetFilteredPolicy(fieldIndex int, fieldValues ...string) ([][]string, error)
109 GetNamedPolicy(ptype string) ([][]string, error)
110 GetFilteredNamedPolicy(ptype string, fieldIndex int, fieldValues ...string) ([][]string, error)

Callers 6

GetNamedPolicyMethod · 0.65
GetPolicyMethod · 0.65
testGetPolicyFunction · 0.65

Implementers 1

Enforcerenforcer.go

Calls

no outgoing calls

Tested by 2

testGetPolicyFunction · 0.52