p1: /v2/scrape, /v1/fetch, auth, CLI, contract tests
Single Fetcher.Fetch on the Guard that holds DenyPrefixes. skipTlsVerification is ignored. No 502. keys add writes the secret only to --out. Release binary has no -test-allow-prefix.
This commit is contained in:
+49
@@ -0,0 +1,49 @@
|
||||
package gojq
|
||||
|
||||
import "context"
|
||||
|
||||
type env struct {
|
||||
pc int
|
||||
stack *stack
|
||||
paths *stack
|
||||
scopes *scopeStack
|
||||
values []any
|
||||
codes []*code
|
||||
codeinfos []codeinfo
|
||||
forks []fork
|
||||
backtrack bool
|
||||
offset int
|
||||
expdepth int
|
||||
label int
|
||||
args [32]any // len(env.args) > maxarity
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func newEnv(ctx context.Context) *env {
|
||||
return &env{
|
||||
stack: newStack(),
|
||||
paths: newStack(),
|
||||
scopes: newScopeStack(),
|
||||
ctx: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
type scope struct {
|
||||
id int
|
||||
offset int
|
||||
pc int
|
||||
saveindex int
|
||||
outerindex int
|
||||
}
|
||||
|
||||
type fork struct {
|
||||
pc int
|
||||
stackindex int
|
||||
stacklimit int
|
||||
scopeindex int
|
||||
scopelimit int
|
||||
pathindex int
|
||||
pathlimit int
|
||||
offset int
|
||||
expdepth int
|
||||
}
|
||||
Reference in New Issue
Block a user