MCPcopy Create free account

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

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

↓ 1,861 callersMethodErrorf
(f string, as ...any)
v1/storage/disk/disk.go:230
↓ 1,398 callersMethodRun
(iter evalIterator)
v1/topdown/eval.go:181
↓ 1,101 callersMethodError
(fmt string, a ...any)
v1/logging/logging.go:33
↓ 1,087 callersMethodContext
Context returns the JSON-context of the error
internal/gojsonschema/result.go:50
↓ 1,042 callersFunctionStringTerm
StringTerm creates a new Term with a String value.
v1/ast/term.go:945
↓ 942 callersFunctionVarTerm
VarTerm creates a new Term with a Variable value.
v1/ast/term.go:1151
↓ 857 callersMethodNew
(manager *Manager, config any)
v1/plugins/plugins.go:91
↓ 711 callersMethodEqual
Equal returns true if the frame is equal to the other frame.
v1/debug/frame.go:33
↓ 677 callersMethodString
IsGround returns true if this value is not a variable or contains no variables.
v1/ast/term.go:66
↓ 571 callersMethodContains
(*Term)
v1/ast/term.go:1811
↓ 493 callersFunctionNewTerm
NewTerm returns a new Term object.
v1/ast/term.go:321
↓ 483 callersFunctionNamed
Named returns the passed type as a named type. Named types are only valid at the top level of built-in functions. Note that nested named types cause p
v1/types/types.go:104
↓ 477 callersFunctionInternedTerm
Interned returns a possibly interned term for the given scalar value. If the value is not interned, a new term is created for that value.
v1/ast/interning.go:206
↓ 470 callersMethodErrorf
Errorf returns a new error value with a message formatted to include the location info (e.g., line, column, filename, etc.)
v1/ast/location/location.go:44
↓ 462 callersMethodDescription
Description returns the description of the error
internal/gojsonschema/result.go:54
↓ 364 callersFunctionMustParseRef
MustParseRef returns a parsed reference. If an error occurs during parsing, panic.
v1/ast/parser_ext.go:125
↓ 341 callersFunctionMustParseTerm
MustParseTerm returns a parsed term. If an error occurs during parsing, panic.
v1/ast/parser_ext.go:155
↓ 327 callersFunctionNewExpr
NewExpr returns a new Expr object.
v1/ast/policy.go:1165
↓ 310 callersFunctionNewBody
NewBody returns a new Body containing the given expressions. The indices of the immediate expressions will be reset.
v1/ast/policy.go:1042
↓ 301 callersMethodCopy
()
v1/ast/term.go:1803
↓ 301 callersFunctionWithTempFS
WithTempFS creates a temporary directory structure and invokes f with the root directory path.
v1/util/test/tempfs.go:16
↓ 299 callersFunctionBooleanTerm
BooleanTerm creates a new Term with a Boolean value.
v1/ast/term.go:766
↓ 294 callersMethodSet
(any)
v1/storage/inmem/txn.go:425
↓ 293 callersMethodGet
(*Term)
v1/ast/term.go:2133
↓ 286 callersMethodAdd
(*Term)
v1/ast/term.go:1807
↓ 283 callersFunctionMustParseModule
MustParseModule returns a parsed module. If an error occurs during parsing, panic.
v1/ast/parser_ext.go:71
↓ 271 callersMethodWrite
Write is called to modify a document referred to by path.
v1/storage/interface.go:31
↓ 270 callersMethodOneShot
OneShot evaluates the line and prints the result. If an error occurs it is returned for the caller to display.
v1/repl/repl.go:256
↓ 268 callersFunctionMustParseBody
MustParseBody returns a parsed body. If an error occurs during parsing, panic.
v1/ast/parser_ext.go:25
↓ 264 callersMethodCompare
(other Value)
v1/ast/term.go:62
↓ 264 callersFunctionNewObject
NewObject returns a new Object type.
v1/types/types.go:358
↓ 263 callersFunctionNewFunction
NewFunction returns a new Function object of the given argument and result types.
v1/types/types.go:722
↓ 260 callersFunctionIntNumberTerm
IntNumberTerm creates a new Term with an integer Number value. For values between -1 and 512, returns a cached Term to reduce allocations.
v1/ast/term.go:834
↓ 254 callersFunctionNewCompiler
NewCompiler returns a new empty compiler.
v1/ast/compile.go:419
↓ 246 callersFunctionRefTerm
RefTerm creates a new Term with a Ref value.
v1/ast/term.go:1247
↓ 245 callersMethodLoop
Loop will run until the user enters "exit", Ctrl+C, Ctrl+D, or an unexpected error occurs.
v1/repl/repl.go:171
↓ 236 callersMethodWriteString
(string)
v1/topdown/sink.go:15
↓ 232 callersMethodClose
()
v1/debug/trace.go:18
↓ 226 callersFunctionNew
New returns a new Rego object.
v1/rego/rego.go:1414
↓ 220 callersFunctionArgs
Args returns an argument list.
v1/types/types.go:697
↓ 212 callersFunctionRegisterBuiltinFunc
RegisterBuiltinFunc adds a new built-in function to the evaluation engine.
v1/topdown/builtins.go:91
↓ 207 callersMethodGet
(ast.Ref)
v1/topdown/cache.go:39
↓ 205 callersFunctionQuery
Query returns an argument that sets the Rego query.
v1/rego/rego.go:922
↓ 193 callersFunctionArrayTerm
ArrayTerm creates a new Term with an Array value.
v1/ast/term.go:1564
↓ 186 callersFunctionNewDynamicProperty
NewDynamicProperty returns a new DynamicProperty object.
v1/types/types.go:332
↓ 184 callersMethodLen
()
v1/ast/term.go:1802
↓ 183 callersMethodLoc
()
v1/ast/policy.go:178
↓ 179 callersMethodStop
Stop a timer, and accumulate the delta (in nanoseconds) since it was last started.
v1/metrics/metrics.go:216
↓ 177 callersMethodPut
(ast.Ref, ast.Value)
v1/topdown/cache.go:40
↓ 168 callersFunctionNewLocation
NewLocation returns a new Location object.
v1/ast/term.go:48
↓ 166 callersFunctionItem
Item is a helper for constructing an tuple containing two Terms representing a key/value pair in an Object.
v1/ast/term.go:2378
↓ 164 callersFunctionNewTransactionOrDie
NewTransactionOrDie is a helper function to create a new transaction. If the storage layer cannot create a new transaction, this function will panic.
v1/storage/storage.go:16
↓ 163 callersFunctionNewArray
NewArray returns a new Array type.
v1/types/types.go:203
↓ 159 callersFunctionMustParsePath
MustParsePath returns a new Path for s. If s cannot be parsed, this function will panic. This is mostly for test purposes.
v1/storage/path.go:136
↓ 152 callersFunctionMustParseModuleWithOpts
MustParseModuleWithOpts returns a parsed module. If an error occurs during parsing, panic.
v1/ast/parser_ext.go:77
↓ 151 callersMethodString
()
v1/topdown/sink.go:12
↓ 148 callersFunctionNew
New returns a new Metrics object.
v1/metrics/metrics.go:74
↓ 147 callersFunctionassertEqual
(t *testing.T, expected, actual any)
internal/lcss/lcss_test.go:8
↓ 146 callersFunctionNumberTerm
NumberTerm creates a new Term with a Number value.
v1/ast/term.go:828
↓ 142 callersMethodHasPrefix
HasPrefix returns true if the other ref is a prefix of this ref.
v1/ast/term.go:1382
↓ 140 callersMethodRef
Ref returns a ref referring to the document produced by this rule. If rule is not contained in a module, this function panics. The returned ref may co
v1/ast/policy.go:721
↓ 139 callersMethodRead
Read is called to fetch a document referred to by path.
v1/storage/interface.go:28
↓ 137 callersMethodTimer
(name string)
v1/metrics/metrics.go:54
↓ 134 callersMethodEval
(context.Context, *EvalContext, ast.Value)
v1/rego/plugins.go:24
↓ 133 callersMethodNew
()
internal/rego/opa/engine.go:31
↓ 133 callersMethodUnmarshal
()
v1/ir/marshal.go:84
↓ 132 callersMethodString
String returns a string representation of the error
internal/gojsonschema/result.go:68
↓ 131 callersMethodName
Name returns the human-readable name of the scope.
v1/debug/thread.go:295
↓ 131 callersMethodParse
(io.Reader)
cmd/internal/exec/parser.go:10
↓ 130 callersMethodString
()
v1/types/types.go:46
↓ 129 callersFunctionCapabilitiesForThisVersion
CapabilitiesForThisVersion returns the capabilities of this version of OPA.
v1/ast/capabilities.go:147
↓ 129 callersMethodInsert
(*Term, *Term)
v1/ast/term.go:2135
↓ 128 callersMethodLog
(context.Context, *UpdateRequestV1)
v1/plugins/status/plugin.go:36
↓ 126 callersMethodLen
()
v1/topdown/builtins/builtins.go:290
↓ 125 callersMethodCompile
Compile should be called to compile ad-hoc queries. The return value is the compiled version of the query.
v1/ast/compile.go:357
↓ 125 callersMethodExpr
Expr creates a new expression for the built-in with the given operands.
v1/ast/builtins.go:3642
↓ 125 callersMethodKind
()
internal/wasm/module/module.go:132
↓ 124 callersMethodDecode
Decode deserializes bytes into target (must be pointer-to-struct).
e2e/proto/protoroundtrip/protoroundtrip.go:174
↓ 123 callersFunctionassertParseErrorContains
(t *testing.T, msg string, input string, expected string, opts ...ParserOptions)
v1/ast/parser_test.go:8324
↓ 121 callersFunctionNewQuery
NewQuery returns a new Query object that can be run.
v1/topdown/query.go:78
↓ 120 callersMethodFailed
Failed returns true if a compilation error has been encountered.
v1/ast/compile.go:703
↓ 120 callersFunctionNewAny
NewAny returns a new Any type.
v1/types/types.go:553
↓ 117 callersMethodReset
(loc *location.Location)
v1/ast/parser.go:3068
↓ 116 callersMethodAbort
Abort is called to cancel the transaction.
v1/storage/interface.go:43
↓ 116 callersFunctionMustUnmarshalJSON
MustUnmarshalJSON parse the JSON encoded data and returns the result. If the data cannot be decoded, this function will panic. This function is for t
v1/util/json.go:64
↓ 114 callersFunctionNewError
NewError returns a new Error object.
v1/ast/errors.go:123
↓ 114 callersMethodwrite
write writes string s to the buffer.
v1/format/format.go:2405
↓ 112 callersFunctionNewObject
NewObject creates a new Object with t.
v1/ast/term.go:2151
↓ 111 callersMethodBytes
()
v1/download/download.go:433
↓ 110 callersMethodDebug
(fmt string, a ...any)
v1/logging/logging.go:31
↓ 110 callersFunctionNew
New creates a new Manager using config.
v1/plugins/plugins.go:537
↓ 109 callersFunctionUnmarshalJSON
UnmarshalJSON parses the JSON encoded data and stores the result in the value pointed to by x. This function is intended to be used in place of the s
v1/util/json.go:25
↓ 108 callersFunctionStringOperand
StringOperand returns x as [ast.String], or a descriptive error if the conversion fails.
v1/topdown/builtins/builtins.go:208
↓ 108 callersFunctionassertParseOneTerm
(t *testing.T, msg string, input string, correct *Term, opts ...ParserOptions)
v1/ast/parser_test.go:8470
↓ 106 callersFunctionModule
Module returns an argument that adds a Rego module.
v1/rego/rego.go:1039
↓ 106 callersMethodWithCompiler
WithCompiler sets the compiler to use for the query.
v1/topdown/query.go:94
↓ 104 callersFunctionObjectTerm
ObjectTerm creates a new Term with an Object value.
v1/ast/term.go:2165
↓ 104 callersMethodPrintln
Println is invoked if the policy WASM code calls opa_println().
internal/wasm/sdk/internal/wasm/vm.go:529
↓ 104 callersMethodWriteHeader
(s int)
v1/runtime/logging.go:249
↓ 99 callersMethodStart
Start or resume a timer's time tracking.
v1/metrics/metrics.go:213
next →1–100 of 11,070, ranked by callers