Documentation
¶
Index ¶
Constants ¶
View Source
const MetaVersion = "5.0"
Variables ¶
This section is empty.
Functions ¶
func MakeActionInfo ¶
func MakeActionInfo(httpMethods ...string) []hexapolicy.ActionInfo
MakeActionInfo - converts an http method to hexapolicy.ActionInfo e.g. MakeActionInfo([]string{http.MethodGet, http.MethodPost})
func MakeTestPolicy ¶
func MakeTestPolicy(resourceId string, httpMethods []string, members []string) hexapolicy.PolicyInfo
MakeTestPolicy - creates a IDQL policy for the specified resource, http method and members e.g. MakeTestPolicy("some-resource",
[]string{http.MethodGet, http.MethodPost}, []string{"role1", "role2"})
func ReadHrUSPolicy ¶
func ReadHrUSPolicy() hexapolicy.PolicyInfo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.