package ref

import "github.com/open-policy-agent/opa/internal/ref"

Package ref implements internal helpers for references

Index

Functions

func ArrayPath

func ArrayPath(a *ast.Array) ast.Ref

ArrayPath will take an ast.Array and build an ast.Ref using the ast.Terms in the Array

func ParseDataPath

func ParseDataPath(s string) (ast.Ref, error)

ParseDataPath returns a ref from the slash separated path s rooted at data. All path segments are treated as identifier strings.

Source Files

ref.go

Version
v1.4.2 (latest)
Published
May 2, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
6 hours ago

Tools for package owners.