Skip to content

Commit a6fbbd0

Browse files
feat: improve jp docs (#2018) (#2019)
Signed-off-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]>
1 parent 1a6da5f commit a6fbbd0

File tree

194 files changed

+1596
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+1596
-185
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/go-logr/logr v1.4.2
1111
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
1212
github.com/hashicorp/go-getter v1.7.6
13-
github.com/jmespath-community/go-jmespath v1.1.2-0.20240627155901-bdbb290f571e
13+
github.com/jmespath-community/go-jmespath v1.1.2-0.20240919193755-5e4e8ae73c8a
1414
github.com/jstemmer/go-junit-report/v2 v2.1.0
1515
github.com/kudobuilder/kuttl v0.19.0
1616
github.com/kyverno/kyverno-json v0.0.4-0.20240730143747-aade3d42fc0e

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
450450
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
451451
github.com/jinzhu/copier v0.4.0 h1:w3ciUoD19shMCRargcpm0cm91ytaBhDvuRpz1ODO/U8=
452452
github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg=
453-
github.com/jmespath-community/go-jmespath v1.1.2-0.20240627155901-bdbb290f571e h1:e9zkuKm+DRAW1xGu90nokWkxOAWhOPYkMNojmTmtvPE=
454-
github.com/jmespath-community/go-jmespath v1.1.2-0.20240627155901-bdbb290f571e/go.mod h1:YlGIjNhh2pH+qyifSpVtQQIbI8YUoVytgZyKBVAMVX4=
453+
github.com/jmespath-community/go-jmespath v1.1.2-0.20240919193755-5e4e8ae73c8a h1:baQnVszUF+wENqBnqJDlgmSIBpJLMqQE0i+hICMZ9sI=
454+
github.com/jmespath-community/go-jmespath v1.1.2-0.20240919193755-5e4e8ae73c8a/go.mod h1:VL6C6nwf/wRivvXAjziX9yFRVmvOC1qzERc8RTQ0tv4=
455455
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
456456
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
457457
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# abs
2+
3+
## Signature
4+
5+
`abs(number)`
6+
7+
## Description
8+
9+
Returns the absolute value of the provided argument.
10+
11+
## Examples
12+
13+
```
14+
abs(`-1`) == `1`
15+
```
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# add
2+
3+
## Signature
4+
5+
`add(any, any)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# as_string
2+
3+
## Signature
4+
5+
`as_string(any)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# at
2+
3+
## Signature
4+
5+
`at(array, any)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# avg
2+
3+
## Signature
4+
5+
`avg(array[number])`
6+
7+
## Description
8+
9+
Returns the average of the elements in the provided array. An empty array will produce a return value of null.
10+
11+
## Examples
12+
13+
```
14+
avg([`10`,`15`,`20`]) == `15`
15+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# base64_decode
2+
3+
## Signature
4+
5+
`base64_decode(string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# base64_encode
2+
3+
## Signature
4+
5+
`base64_encode(string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ceil
2+
3+
## Signature
4+
5+
`ceil(number)`
6+
7+
## Description
8+
9+
Returns the next highest integer value by rounding up if necessary.
10+
11+
## Examples
12+
13+
```
14+
ceil(`1.9`) == `2`
15+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# compare
2+
3+
## Signature
4+
5+
`compare(string, string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# concat
2+
3+
## Signature
4+
5+
`concat(string, string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# contains
2+
3+
## Signature
4+
5+
`contains(array|string, any)`
6+
7+
## Description
8+
9+
Returns `true` if the given subject contains the provided search value. If the subject is an array, this function returns `true` if one of the elements in the array is equal to the provided search value. If the provided subject is a string, this function returns `true` if the string contains the provided search argument.
10+
11+
## Examples
12+
13+
### With strings
14+
15+
```
16+
contains('foobar', 'bar') == true
17+
```
18+
19+
```
20+
contains('foobar', 'not') == false
21+
```
22+
23+
### With arrays
24+
25+
26+
```
27+
contains(['foo', 'bar'], 'bar') == true
28+
```
29+
30+
```
31+
contains(['foo', 'bar'], 'not') == true
32+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# divide
2+
3+
## Signature
4+
5+
`divide(any, any)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ends_with
2+
3+
## Signature
4+
5+
`ends_with(string, string)`
6+
7+
## Description
8+
9+
Reports whether the given string ends with the provided suffix argument.
10+
11+
## Examples
12+
13+
```
14+
ends_with('foobar', 'bar') == true
15+
```
16+
17+
```
18+
ends_with('foobar', 'foo') == false
19+
```
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# env
2+
3+
## Signature
4+
5+
`env(string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# equal_fold
2+
3+
## Signature
4+
5+
`equal_fold(string, string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# find_first
2+
3+
## Signature
4+
5+
`find_first(string, string, number, number)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
```
14+
find_first('subject string', 'string', `0`) == `8`
15+
```
16+
17+
```
18+
find_first('subject string', 'string', `8`) == `8`
19+
```
20+
21+
```
22+
find_first('subject string', 'string', `9`) == null
23+
```
24+
25+
```
26+
find_first('subject string', 'string', `0`, `14`) == `8`
27+
```
28+
29+
```
30+
find_first('subject string', 'string', `0`, `13`) == null
31+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# find_last
2+
3+
## Signature
4+
5+
`find_last(string, string, number, number)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
```
14+
find_last('subject string', 'string', `0`) == `8`
15+
```
16+
17+
```
18+
find_last('subject string', 'string', `8`) == `8`
19+
```
20+
21+
```
22+
find_last('subject string', 'string', `9`) == null
23+
```
24+
25+
```
26+
find_last('subject string', 'string', `0`, `14`) == `8`
27+
```
28+
29+
```
30+
find_last('subject string', 'string', `0`, `13`) == null
31+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# floor
2+
3+
## Signature
4+
5+
`floor(number)`
6+
7+
## Description
8+
9+
Returns the next lowest integer value by rounding down if necessary.
10+
11+
## Examples
12+
13+
```
14+
floor(`1.9`) == `1`
15+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# from_items
2+
3+
## Signature
4+
5+
`from_items(array[array])`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# group_by
2+
3+
## Signature
4+
5+
`group_by(array, expref)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# items
2+
3+
## Signature
4+
5+
`items(object|array, string, string)`
6+
7+
## Description
8+
9+
10+
11+
## Examples
12+
13+
TODO
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# join
2+
3+
## Signature
4+
5+
`join(string, array[string])`
6+
7+
## Description
8+
9+
Returns all of the elements from the provided array joined together using the glue argument as a separator between each.
10+
11+
## Examples
12+
13+
TODO

0 commit comments

Comments
 (0)