MCPcopy Index your code
hub / github.com/apache/casbin / GetPolicy

Method GetPolicy

management_api.go:97–99  ·  view source on GitHub ↗

GetPolicy gets all the authorization rules in the policy.

()

Source from the content-addressed store, hash-verified

95
96// GetPolicy gets all the authorization rules in the policy.
97func (e *Enforcer) GetPolicy() ([][]string, error) {
98 return e.GetNamedPolicy("p")
99}
100
101// GetFilteredPolicy gets all the authorization rules in the policy, field filters can be specified.
102func (e *Enforcer) GetFilteredPolicy(fieldIndex int, fieldValues ...string) ([][]string, error) {

Callers 3

testDeleteDomainsFunction · 0.95
buildExplainContextMethod · 0.95

Calls 1

GetNamedPolicyMethod · 0.95

Tested by 2

testDeleteDomainsFunction · 0.76