package print
import "github.com/open-policy-agent/opa/v1/topdown/print"
Index ¶
Types ¶
type Context ¶
type Context struct { Context context.Context // request context passed when query executed Location *ast.Location // location of print call }
Context provides the Hook implementation context about the print() call.
type Hook ¶
Hook defines the interface that callers can implement to receive print statement outputs. If the hook returns an error, it will be surfaced if strict builtin error checking is enabled (otherwise, it will not halt execution.)
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 weeks ago –
Tools for package owners.