reviews

package
v0.0.0-...-9e57a57 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReviewCfg

type ReviewCfg struct {
	TracingEnabled   bool
	StatsEnabled     bool
	EnforcementPoint string
}

type ReviewOpt

type ReviewOpt func(*ReviewCfg)

ReviewOpt specifies optional arguments for Query driver calls.

func EnforcementPoint

func EnforcementPoint(ep string) ReviewOpt

EnforcementPoint specifies the enforcement point to use for the query.

func Stats

func Stats(enabled bool) ReviewOpt

Stats(true) enables the driver to return evaluation stats for a single query. If stats is enabled for the Driver at construction time, then Stats(false) does not disable Stats for this single query.

func Tracing

func Tracing(enabled bool) ReviewOpt

Tracing enables Rego tracing for a single query. If tracing is enabled for the Driver, Tracing(false) does not disable Tracing.

Jump to

Keyboard shortcuts

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