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

Method GetAllObjects

management_api.go:42–44  ·  view source on GitHub ↗

GetAllObjects gets the list of objects that show up in the current policy.

()

Source from the content-addressed store, hash-verified

40
41// GetAllObjects gets the list of objects that show up in the current policy.
42func (e *Enforcer) GetAllObjects() ([]string, error) {
43 return e.model.GetValuesForFieldInPolicyAllTypesByName("p", constant.ObjectIndex)
44}
45
46// GetAllNamedObjects gets the list of objects that show up in the current named policy.
47func (e *Enforcer) GetAllNamedObjects(ptype string) ([]string, error) {

Callers

nothing calls this directly

Tested by

no test coverage detected