MCPcopy Create free account

hub / github.com/open-policy-agent/opa / functions

Functions11,070 in github.com/open-policy-agent/opa

↓ 22 callersMethodinstrRead
(lv ir.Operand)
internal/compiler/wasm/wasm.go:1820
↓ 22 callersFunctioninternalLog
(format string, v ...any)
internal/gojsonschema/internalLog.go:35
↓ 22 callersMethodtraceRedo
(x ast.Node)
v1/topdown/eval.go:306
↓ 22 callersMethodwriteTerm
(term *ast.Term, comments []*ast.Comment)
v1/format/format.go:1265
↓ 21 callersMethodErrors
Errors returns the errors that were found
internal/gojsonschema/result.go:190
↓ 21 callersFunctionEvalInput
EvalInput configures the input for a Prepared Query's evaluation
v1/rego/rego.go:202
↓ 21 callersMethodHasPrefix
HasPrefix returns true if p starts with other.
v1/storage/path.go:96
↓ 21 callersFunctionNewVarVisitor
NewVarVisitor returns a new [VarVisitor] object.
v1/ast/visit.go:771
↓ 21 callersFunctionObjectOperand
ObjectOperand converts x to an object. If the conversion fails, a descriptive error is returned.
v1/topdown/builtins/builtins.go:228
↓ 21 callersMethodOperands
()
v1/ast/term.go:3096
↓ 21 callersFunctionOptRoundTripOnWrite
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 callersFunctionQueryTracer
QueryTracer returns an argument that adds a query tracer to r.
v1/rego/rego.go:1182
↓ 21 callersFunctionRuntime
Runtime returns an argument that sets the runtime data to provide to the evaluation engine.
v1/rego/rego.go:1192
↓ 21 callersMethodWithBundleVerificationConfig
(*bundle.VerificationConfig)
v1/loader/loader.go:100
↓ 21 callersFunctionWithParserOptions
WithParserOptions sets the parser options to be used by the plugin manager.
v1/plugins/plugins.go:476
↓ 21 callersFunctionappendToBody
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 callersFunctionassertPreparedEvalQueryEval
(t *testing.T, pq PreparedEvalQuery, options []EvalOption, expected string)
v1/rego/rego_test.go:406
↓ 21 callersFunctionassertREPLText
(t *testing.T, buf bytes.Buffer, expected string)
v1/repl/repl_test.go:3366
↓ 21 callersFunctioncompileModules
(input []string)
v1/topdown/topdown_test.go:1930
↓ 21 callersMethodeval
(iter evalIterator)
v1/topdown/eval.go:404
↓ 21 callersMethodforce
()
v1/ast/term.go:2179
↓ 21 callersFunctionnewBuildParams
()
cmd/build.go:56
↓ 21 callersFunctionpretty
(r *http.Request)
v1/server/server.go:3215
↓ 21 callersMethodpush
(event EventV1)
v1/plugins/logs/plugin.go:1040
↓ 21 callersMethodsave
()
v1/ast/parser.go:2964
↓ 21 callersMethodstartLine
startLine begins a line with the current indentation level.
v1/format/format.go:2331
↓ 21 callersFunctionvalidateDiagnosticRequest
(t *testing.T, f *fixture, req *http.Request, code int, resp string)
v1/server/server_test.go:5669
↓ 20 callersMethodBytes
Bytes marshals e with indentation for readability.
v1/server/types/types.go:166
↓ 20 callersMethodGetLevel
()
v1/logging/logging.go:38
↓ 20 callersMethodIsWildcard
IsWildcard returns true if this is a wildcard variable.
v1/ast/term.go:1194
↓ 20 callersFunctionNewRuleSet
NewRuleSet returns a new RuleSet containing the given rules.
v1/ast/policy.go:2061
↓ 20 callersMethodReset
()
v1/util/test/tempus.go:51
↓ 20 callersMethodWait
Wait steals the i'th VM instance. The VM has to be released afterwards.
internal/wasm/sdk/internal/wasm/pool.go:318
↓ 20 callersMethodWithInput
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 callersFunctionbundleFromRoundtrip
(tb testing.TB, name string, b Bundle)
v1/bundle/store_test.go:4610
↓ 20 callersFunctionmust
(val T, err error)
v1/bundle/store_test.go:4630
↓ 20 callersFunctionnewTestFixture
(t *testing.T, m metrics.Metrics, options ...testPluginCustomizer)
v1/plugins/status/plugin_test.go:1160
↓ 19 callersMethodArity
Arity returns the number of arguments in the function signature.
v1/types/types.go:768
↓ 19 callersFunctionCompare
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 callersMethodCount
Count returns how many times x has been seen
v1/ast/compile.go:6416
↓ 19 callersFunctionFactories
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 callersMethodFloat64
Float64 returns the float64 representation of num if possible.
v1/ast/term.go:903
↓ 19 callersFunctionJSONOK
JSONOK is a helper for status "200 OK" responses
v1/server/writer/writer.go:79
↓ 19 callersFunctionNew
New returns a new Plugin with the given config.
v1/plugins/logs/plugin.go:600
↓ 19 callersFunctionNewSchemaSet
NewSchemaSet returns an empty SchemaSet.
v1/ast/schema.go:20
↓ 19 callersFunctionNewValueMap
NewValueMap returns a new ValueMap.
v1/ast/map.go:20
↓ 19 callersFunctionNewWithOpts
NewWithOpts returns an empty in-memory store, with extra options passed.
v1/storage/inmem/inmem.go:40
↓ 19 callersFunctionParsedQuery
ParsedQuery returns an argument that sets the Rego query.
v1/rego/rego.go:929
↓ 19 callersMethodPlugNamespaced
(a *ast.Term, caller *bindings)
v1/topdown/bindings.go:79
↓ 19 callersMethodRender
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 callersMethodSize
Size returns the size of the LIFO.
v1/util/queue.go:56
↓ 19 callersMethodUntil
(func(*Term) bool)
v1/ast/term.go:1809
↓ 19 callersMethodWalkBody
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 callersFunctionWalkTerms
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 callersMethodWithSchemas
WithSchemas sets a schemaSet to the compiler
v1/ast/compile.go:697
↓ 19 callersFunctionWrite
Write is deprecated. Use NewWriter instead.
v1/bundle/bundle.go:901
↓ 19 callersMethodapply
(a *ast.Term)
v1/topdown/bindings.go:148
↓ 19 callersFunctionassertParseModuleError
(t *testing.T, msg, input string, opts ...ParserOptions)
v1/ast/parser_test.go:8389
↓ 19 callersMethodcredentials
(ctx context.Context)
v1/plugins/rest/aws.go:868
↓ 19 callersMethodedge
edge writes a plain directed edge.
v1/ast/mermaid.go:70
↓ 19 callersMethodenter
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 callersFunctionerr
(loc *ast.Location, f string, vs ...any)
internal/compile/checks.go:245
↓ 19 callersFunctionformatFile
(params *fmtCommandParams, out io.Writer, filename string, info os.FileInfo, err error)
cmd/fmt.go:99
↓ 19 callersMethodleave
leave decrements the recursion depth counter.
v1/ast/parser.go:3578
↓ 19 callersMethodrestore
(s *state)
v1/ast/parser.go:2971
↓ 19 callersMethodsendEvent
(e Event)
v1/debug/debugger.go:906
↓ 19 callersMethodstop
()
v1/plugins/status/plugin_test.go:1218
↓ 19 callersMethodstopTimer
(name string)
v1/topdown/instrumentation.go:51
↓ 18 callersMethodAddStruct
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 callersMethodAppend
Append adds the expr to the body and updates the expr's index accordingly.
v1/ast/policy.go:1061
↓ 18 callersMethodCheckEnvironmentVariables
(command *cobra.Command)
cmd/internal/env/env.go:13
↓ 18 callersMethodChild
(key Value)
v1/ast/env.go:252
↓ 18 callersFunctionEvalQueryTracer
EvalQueryTracer configures a tracer for a Prepared Query's evaluation
v1/rego/rego.go:259
↓ 18 callersFunctionFlag
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 callersMethodForeach
(func(*ast.Term))
v1/topdown/crypto.go:219
↓ 18 callersFunctionIsScalar
IsScalar returns true if the AST value is a scalar.
v1/ast/term.go:557
↓ 18 callersMethodLabels
Labels returns the set of labels from the configuration.
v1/plugins/plugins.go:677
↓ 18 callersMethodMerge
(other Object)
v1/ast/term.go:2142
↓ 18 callersFunctionNew
New returns a new Planner object.
internal/planner/planner.go:65
↓ 18 callersFunctionNewBuilder
NewBuilder returns a Builder. resolver may be nil, in which case only the built-in cases are used.
internal/genjsonschema/genjsonschema.go:46
↓ 18 callersMethodParserOptions
()
v1/sdk/test/test.go:114
↓ 18 callersMethodRegisterRoot
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 callersMethodRuleKind
RuleKind returns the type of rule this is
v1/ast/policy.go:866
↓ 18 callersMethodSetError
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 callersMethodSort
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 callersMethodStart
()
v1/rego/compile/compile.go:164
↓ 18 callersFunctionStringOperandByteSlice
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 callersFunctionTransaction
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 callersMethodUpdatePluginStatus
UpdatePluginStatus notifies the plugin that a plugin status was updated.
v1/plugins/status/plugin.go:318
↓ 18 callersMethodUseModulePath
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 callersMethodWalk
(x any)
v1/ast/compile.go:4054
↓ 18 callersMethodWithContext
WithContext sets the QueryContext on the QueryCompiler. Subsequent calls to Compile will take the QueryContext into account.
v1/ast/compile.go:365
↓ 18 callersFunctionexpectOutput
(t *testing.T, output string, expected string)
v1/repl/repl_test.go:3374
↓ 18 callersFunctiongetBoolParam
(url *url.URL, name string, ifEmpty bool)
v1/server/server.go:2864
↓ 18 callersFunctiongetTestManagerWithOpts
(config []byte, stores ...storage.Store)
v1/plugins/bundle/plugin_test.go:4079
↓ 18 callersFunctioninvalidType
(expected, given string)
internal/gojsonschema/schema.go:918
↓ 18 callersFunctionmoduleFile
(path, raw string)
v1/bundle/store_test.go:4660
↓ 18 callersFunctionnewInterQueryCacheValue
(value ast.Value, size int)
v1/topdown/cache/cache_test.go:999
↓ 18 callersMethodpopulateFromEnv
()
v1/plugins/rest/aws.go:698
↓ 18 callersMethodstop
()
v1/download/testharness.go:529
← previousnext →401–500 of 11,070, ranked by callers