Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePolicies ¶
func ParsePolicies(policyBytes []byte) ([]hexapolicy.PolicyInfo, error)
ParsePolicies parses an array of bytes representing an IDQL policy data in JSON form. The top level attribute is "policies" which is an array of IDQL Policies ([]PolicyInfo)
func ParsePolicyFile ¶
func ParsePolicyFile(path string) ([]hexapolicy.PolicyInfo, error)
ParsePolicyFile parses a file containing IDQL policy data in JSON form. The top level attribute is "policies" which is an array of IDQL Policies ([]PolicyInfo)
func ToBytes ¶
func ToBytes(policies []hexapolicy.PolicyInfo) ([]byte, error)
func WritePolicies ¶
func WritePolicies(path string, policies []hexapolicy.PolicyInfo) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.