MCPcopy Create free account
hub / github.com/cloudwan/gohan / PolicyValidate

Method PolicyValidate

schema/manager.go:540–542  ·  view source on GitHub ↗

PolicyValidate API request using policy statements

(action, path string, auth Authorization)

Source from the content-addressed store, hash-verified

538
539//PolicyValidate API request using policy statements
540func (manager *Manager) PolicyValidate(action, path string, auth Authorization) (*Policy, *Role) {
541 return PolicyValidate(action, path, auth, manager.policies)
542}
543
544//GetAttachmentPolicies returns policies that will validate relations (attachments)
545func (manager *Manager) GetAttachmentPolicies(path string, auth Authorization) []*Policy {

Callers 8

authorizationFunction · 0.80
MapRouteBySchemaFunction · 0.80
GetSchemaFunction · 0.80
loadPolicyFunction · 0.80
policy_test.goFile · 0.80
auth_test.goFile · 0.80
otto_test.goFile · 0.80

Calls 1

PolicyValidateFunction · 0.85

Tested by

no test coverage detected