Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/open-policy-agent/opa
/ functions
Functions
11,070 in github.com/open-policy-agent/opa
⨍
Functions
11,070
◇
Types & classes
1,577
↓ 22 callers
Method
instrRead
(lv ir.Operand)
internal/compiler/wasm/wasm.go:1820
↓ 22 callers
Function
internalLog
(format string, v ...any)
internal/gojsonschema/internalLog.go:35
↓ 22 callers
Method
traceRedo
(x ast.Node)
v1/topdown/eval.go:306
↓ 22 callers
Method
writeTerm
(term *ast.Term, comments []*ast.Comment)
v1/format/format.go:1265
↓ 21 callers
Method
Errors
Errors returns the errors that were found
internal/gojsonschema/result.go:190
↓ 21 callers
Function
EvalInput
EvalInput configures the input for a Prepared Query's evaluation
v1/rego/rego.go:202
↓ 21 callers
Method
HasPrefix
HasPrefix returns true if p starts with other.
v1/storage/path.go:96
↓ 21 callers
Function
NewVarVisitor
NewVarVisitor returns a new [VarVisitor] object.
v1/ast/visit.go:771
↓ 21 callers
Function
ObjectOperand
ObjectOperand converts x to an object. If the conversion fails, a descriptive error is returned.
v1/topdown/builtins/builtins.go:228
↓ 21 callers
Method
Operands
()
v1/ast/term.go:3096
↓ 21 callers
Function
OptRoundTripOnWrite
OptRoundTripOnWrite sets whether incoming objects written to store are round-tripped through JSON to ensure they are serializable to JSON. Callers sh
v1/storage/inmem/opts.go:21
↓ 21 callers
Function
QueryTracer
QueryTracer returns an argument that adds a query tracer to r.
v1/rego/rego.go:1182
↓ 21 callers
Function
Runtime
Runtime returns an argument that sets the runtime data to provide to the evaluation engine.
v1/rego/rego.go:1192
↓ 21 callers
Method
WithBundleVerificationConfig
(*bundle.VerificationConfig)
v1/loader/loader.go:100
↓ 21 callers
Function
WithParserOptions
WithParserOptions sets the parser options to be used by the plugin manager.
v1/plugins/plugins.go:476
↓ 21 callers
Function
appendToBody
appendToBody inlines Body.Append and adds additional logic for replacing a single 'true' expression (i.e an empty body) with the first expression to b
v1/ast/compile.go:6063
↓ 21 callers
Function
assertPreparedEvalQueryEval
(t *testing.T, pq PreparedEvalQuery, options []EvalOption, expected string)
v1/rego/rego_test.go:406
↓ 21 callers
Function
assertREPLText
(t *testing.T, buf bytes.Buffer, expected string)
v1/repl/repl_test.go:3366
↓ 21 callers
Function
compileModules
(input []string)
v1/topdown/topdown_test.go:1930
↓ 21 callers
Method
eval
(iter evalIterator)
v1/topdown/eval.go:404
↓ 21 callers
Method
force
()
v1/ast/term.go:2179
↓ 21 callers
Function
newBuildParams
()
cmd/build.go:56
↓ 21 callers
Function
pretty
(r *http.Request)
v1/server/server.go:3215
↓ 21 callers
Method
push
(event EventV1)
v1/plugins/logs/plugin.go:1040
↓ 21 callers
Method
save
()
v1/ast/parser.go:2964
↓ 21 callers
Method
startLine
startLine begins a line with the current indentation level.
v1/format/format.go:2331
↓ 21 callers
Function
validateDiagnosticRequest
(t *testing.T, f *fixture, req *http.Request, code int, resp string)
v1/server/server_test.go:5669
↓ 20 callers
Method
Bytes
Bytes marshals e with indentation for readability.
v1/server/types/types.go:166
↓ 20 callers
Method
GetLevel
()
v1/logging/logging.go:38
↓ 20 callers
Method
IsWildcard
IsWildcard returns true if this is a wildcard variable.
v1/ast/term.go:1194
↓ 20 callers
Function
NewRuleSet
NewRuleSet returns a new RuleSet containing the given rules.
v1/ast/policy.go:2061
↓ 20 callers
Method
Reset
()
v1/util/test/tempus.go:51
↓ 20 callers
Method
Wait
Wait steals the i'th VM instance. The VM has to be released afterwards.
internal/wasm/sdk/internal/wasm/pool.go:318
↓ 20 callers
Method
WithInput
WithInput sets the input object to use for the query. References rooted at input will be evaluated against this value. This is optional.
v1/topdown/query.go:121
↓ 20 callers
Function
bundleFromRoundtrip
(tb testing.TB, name string, b Bundle)
v1/bundle/store_test.go:4610
↓ 20 callers
Function
must
(val T, err error)
v1/bundle/store_test.go:4630
↓ 20 callers
Function
newTestFixture
(t *testing.T, m metrics.Metrics, options ...testPluginCustomizer)
v1/plugins/status/plugin_test.go:1160
↓ 19 callers
Method
Arity
Arity returns the number of arguments in the function signature.
v1/types/types.go:768
↓ 19 callers
Function
Compare
Compare returns 0 if a equals b, -1 if a is less than b, and 1 if b is than a. For comparison between values of different types, the following orderi
v1/util/compare.go:41
↓ 19 callers
Method
Count
Count returns how many times x has been seen
v1/ast/compile.go:6416
↓ 19 callers
Function
Factories
Factories provides a set of factory functions to use for instantiating custom plugins. The passed map will be merged with what's already on the `Disco
v1/plugins/discovery/discovery.go:76
↓ 19 callers
Method
Float64
Float64 returns the float64 representation of num if possible.
v1/ast/term.go:903
↓ 19 callers
Function
JSONOK
JSONOK is a helper for status "200 OK" responses
v1/server/writer/writer.go:79
↓ 19 callers
Function
New
New returns a new Plugin with the given config.
v1/plugins/logs/plugin.go:600
↓ 19 callers
Function
NewSchemaSet
NewSchemaSet returns an empty SchemaSet.
v1/ast/schema.go:20
↓ 19 callers
Function
NewValueMap
NewValueMap returns a new ValueMap.
v1/ast/map.go:20
↓ 19 callers
Function
NewWithOpts
NewWithOpts returns an empty in-memory store, with extra options passed.
v1/storage/inmem/inmem.go:40
↓ 19 callers
Function
ParsedQuery
ParsedQuery returns an argument that sets the Rego query.
v1/rego/rego.go:929
↓ 19 callers
Method
PlugNamespaced
(a *ast.Term, caller *bindings)
v1/topdown/bindings.go:79
↓ 19 callers
Method
Render
Render generates the effective value for the term at e by recursively rendering the children of e, and then copying over any leftover keys from the or
internal/edittree/edittree.go:784
↓ 19 callers
Method
Size
Size returns the size of the LIFO.
v1/util/queue.go:56
↓ 19 callers
Method
Until
(func(*Term) bool)
v1/ast/term.go:1809
↓ 19 callers
Method
WalkBody
WalkBody exists only to avoid the allocation cost of boxing Body to `any` in the VarVisitor. Use it when you know beforehand that the type to walk is
v1/ast/visit.go:1069
↓ 19 callers
Function
WalkTerms
WalkTerms calls the function f on all terms under x. If the function f returns true, AST nodes under the last node will not be visited.
v1/ast/visit.go:264
↓ 19 callers
Method
WithSchemas
WithSchemas sets a schemaSet to the compiler
v1/ast/compile.go:697
↓ 19 callers
Function
Write
Write is deprecated. Use NewWriter instead.
v1/bundle/bundle.go:901
↓ 19 callers
Method
apply
(a *ast.Term)
v1/topdown/bindings.go:148
↓ 19 callers
Function
assertParseModuleError
(t *testing.T, msg, input string, opts ...ParserOptions)
v1/ast/parser_test.go:8389
↓ 19 callers
Method
credentials
(ctx context.Context)
v1/plugins/rest/aws.go:868
↓ 19 callers
Method
edge
edge writes a plain directed edge.
v1/ast/mermaid.go:70
↓ 19 callers
Method
enter
enter increments the recursion depth counter and checks if it exceeds the maximum. Returns false if the maximum is exceeded, true otherwise. If p.maxR
v1/ast/parser.go:3567
↓ 19 callers
Function
err
(loc *ast.Location, f string, vs ...any)
internal/compile/checks.go:245
↓ 19 callers
Function
formatFile
(params *fmtCommandParams, out io.Writer, filename string, info os.FileInfo, err error)
cmd/fmt.go:99
↓ 19 callers
Method
leave
leave decrements the recursion depth counter.
v1/ast/parser.go:3578
↓ 19 callers
Method
restore
(s *state)
v1/ast/parser.go:2971
↓ 19 callers
Method
sendEvent
(e Event)
v1/debug/debugger.go:906
↓ 19 callers
Method
stop
()
v1/plugins/status/plugin_test.go:1218
↓ 19 callers
Method
stopTimer
(name string)
v1/topdown/instrumentation.go:51
↓ 18 callers
Method
AddStruct
AddStruct ensures t (a struct or pointer-to-struct) has a definition in $defs and returns its $ref. Recurses through fields, consulting the resolver f
internal/genjsonschema/genjsonschema.go:127
↓ 18 callers
Method
Append
Append adds the expr to the body and updates the expr's index accordingly.
v1/ast/policy.go:1061
↓ 18 callers
Method
CheckEnvironmentVariables
(command *cobra.Command)
cmd/internal/env/env.go:13
↓ 18 callers
Method
Child
(key Value)
v1/ast/env.go:252
↓ 18 callers
Function
EvalQueryTracer
EvalQueryTracer configures a tracer for a Prepared Query's evaluation
v1/rego/rego.go:259
↓ 18 callers
Function
Flag
Returns an enum flag for the given formats, where the first provided format will be used as the default format.
cmd/formats/formats.go:28
↓ 18 callers
Method
Foreach
(func(*ast.Term))
v1/topdown/crypto.go:219
↓ 18 callers
Function
IsScalar
IsScalar returns true if the AST value is a scalar.
v1/ast/term.go:557
↓ 18 callers
Method
Labels
Labels returns the set of labels from the configuration.
v1/plugins/plugins.go:677
↓ 18 callers
Method
Merge
(other Object)
v1/ast/term.go:2142
↓ 18 callers
Function
New
New returns a new Planner object.
internal/planner/planner.go:65
↓ 18 callers
Function
NewBuilder
NewBuilder returns a Builder. resolver may be nil, in which case only the built-in cases are used.
internal/genjsonschema/genjsonschema.go:46
↓ 18 callers
Method
ParserOptions
()
v1/sdk/test/test.go:114
↓ 18 callers
Method
RegisterRoot
RegisterRoot maps t to the proto message named msgName, so values of type t (or *t) can be passed directly to Encode/Decode.
e2e/proto/protoroundtrip/protoroundtrip.go:90
↓ 18 callers
Method
RuleKind
RuleKind returns the type of rule this is
v1/ast/policy.go:866
↓ 18 callers
Method
SetError
SetError updates the status object to reflect a failure to download or activate. If err is nil, the error status is cleared.
v1/plugins/bundle/status.go:65
↓ 18 callers
Method
Sort
Sort returns a slice of rules sorted by dependencies. If a cycle is found, ok is set to false.
v1/ast/compile.go:4630
↓ 18 callers
Method
Start
()
v1/rego/compile/compile.go:164
↓ 18 callers
Function
StringOperandByteSlice
StringOperandByteSlice returns x a []byte, assuming x is [ast.String], or a descriptive error if that is not the case. The returned byte slice points
v1/topdown/builtins/builtins.go:218
↓ 18 callers
Function
Transaction
Transaction returns an argument that sets the transaction to use for storage layer operations. Requires the store associated with the transaction to
v1/rego/rego.go:1142
↓ 18 callers
Method
UpdatePluginStatus
UpdatePluginStatus notifies the plugin that a plugin status was updated.
v1/plugins/status/plugin.go:318
↓ 18 callers
Method
UseModulePath
UseModulePath configures the writer to use the module file path instead of the module file URL during serialization. This is for backwards compatibili
v1/bundle/bundle.go:924
↓ 18 callers
Method
Walk
(x any)
v1/ast/compile.go:4054
↓ 18 callers
Method
WithContext
WithContext sets the QueryContext on the QueryCompiler. Subsequent calls to Compile will take the QueryContext into account.
v1/ast/compile.go:365
↓ 18 callers
Function
expectOutput
(t *testing.T, output string, expected string)
v1/repl/repl_test.go:3374
↓ 18 callers
Function
getBoolParam
(url *url.URL, name string, ifEmpty bool)
v1/server/server.go:2864
↓ 18 callers
Function
getTestManagerWithOpts
(config []byte, stores ...storage.Store)
v1/plugins/bundle/plugin_test.go:4079
↓ 18 callers
Function
invalidType
(expected, given string)
internal/gojsonschema/schema.go:918
↓ 18 callers
Function
moduleFile
(path, raw string)
v1/bundle/store_test.go:4660
↓ 18 callers
Function
newInterQueryCacheValue
(value ast.Value, size int)
v1/topdown/cache/cache_test.go:999
↓ 18 callers
Method
populateFromEnv
()
v1/plugins/rest/aws.go:698
↓ 18 callers
Method
stop
()
v1/download/testharness.go:529
← previous
next →
401–500 of 11,070, ranked by callers