forked from jmespath-community/go-jmespath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjp.go
57 lines (42 loc) · 1.25 KB
/
jp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package jmespath
import (
"github.com/kyverno/go-community-jmespath/pkg/api"
jperror "github.com/kyverno/go-community-jmespath/pkg/error"
"github.com/kyverno/go-community-jmespath/pkg/functions"
"github.com/kyverno/go-community-jmespath/pkg/interpreter"
"github.com/kyverno/go-community-jmespath/pkg/parsing"
)
// api types
type JMESPath = api.JMESPath
var (
Compile = api.Compile
MustCompile = api.MustCompile
Search = api.Search
)
// interpreter types
type Option = interpreter.Option
var WithFunctionCaller = interpreter.WithFunctionCaller
// parsing types
type SyntaxError = parsing.SyntaxError
var NewParser = parsing.NewParser
// function types
type (
JpFunction = functions.JpFunction
JpType = functions.JpType
FunctionEntry = functions.FunctionEntry
ArgSpec = functions.ArgSpec
ExpRef = functions.ExpRef
)
const (
JpNumber = functions.JpNumber
JpString = functions.JpString
JpArray = functions.JpArray
JpObject = functions.JpObject
JpArrayArray = functions.JpArrayArray
JpArrayNumber = functions.JpArrayNumber
JpArrayString = functions.JpArrayString
JpExpref = functions.JpExpref
JpAny = functions.JpAny
)
// error types
type NotFoundError = jperror.NotFoundError