Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltinsInspector ¶
type BuiltinsInspector struct {
// contains filtered or unexported fields
}
BuiltinsInspector inspect a Rego policy and returns the list of builtins used by the policy that must be provided by the runtime (SDK)
func NewInspector ¶
func NewInspector() BuiltinsInspector
NewInspector creates a new instance of BuiltinsInspector
func (*BuiltinsInspector) InspectPolicy ¶
func (i *BuiltinsInspector) InspectPolicy(filename string) (mapset.Set, error)
InspectPolicy loads the Rego policy from disk and then parses the AST tree looking for the builtins used by the policy.
It returns a Set with the names of the builtins used by the policy that must be provided by the SDK
Click to show internal directories.
Click to hide internal directories.