hexapolicysupport

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL