Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONPath template language #9296

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2182ed2
initialize jq package
daizuozhuo May 25, 2015
3ad6e89
lex unit test passed
daizuozhuo May 26, 2015
91c2131
parse unit test parsed
daizuozhuo May 26, 2015
b9701f8
jq unit test passed
daizuozhuo May 26, 2015
6a31935
support nested dict
daizuozhuo May 27, 2015
97cb34d
move Go project source code to third_party
daizuozhuo May 27, 2015
acb959f
donot touch kubectl now
daizuozhuo May 29, 2015
1a75c6e
change syntax to jsonpath
daizuozhuo Jun 1, 2015
fbf7085
use as delimiter
daizuozhuo Jun 3, 2015
21a0b1d
quote string inside expression
daizuozhuo Jun 3, 2015
090364f
array single element selection
daizuozhuo Jun 5, 2015
9e347fe
support array slice method
daizuozhuo Jun 7, 2015
33b570a
rewrite parser
daizuozhuo Jun 8, 2015
4ec1c25
parse filter
daizuozhuo Jun 10, 2015
60c3588
table driven tests for parser
daizuozhuo Jun 15, 2015
67e37f1
table driven tests for jsonpath
daizuozhuo Jun 16, 2015
8a4cb4e
simple filter
daizuozhuo Jun 19, 2015
34a33ad
evaluate * for array
daizuozhuo Jun 21, 2015
076a0f1
add wildcard feature
daizuozhuo Jun 21, 2015
2288996
recursive descent operator
daizuozhuo Jun 24, 2015
a85facc
union operator
daizuozhuo Jun 26, 2015
c8224ee
more general key name
daizuozhuo Jun 26, 2015
b376d9c
negative array index
daizuozhuo Jun 26, 2015
2802cbf
map key exists filter
daizuozhuo Jun 28, 2015
5d0acdf
square brackets dict key select
daizuozhuo Jun 30, 2015
383d3be
union of expressions
daizuozhuo Jun 30, 2015
bf559a8
move funcs to third_party
daizuozhuo Jul 2, 2015
e6d19e6
drop $, range identifier
daizuozhuo Jul 4, 2015
597ca1f
nested range
daizuozhuo Jul 6, 2015
0a93273
revert to jsonpath style union
daizuozhuo Jul 8, 2015
8bc17c9
add doc.go and use parseAction inside jsonpath
daizuozhuo Jul 14, 2015
fc310f8
add bad test cases
daizuozhuo Jul 18, 2015
335a75b
fix gofmt problem in go1.3
daizuozhuo Jul 21, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pkg/util/jsonpath/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright 2015 The Kubernetes Authors All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// package jsonpath is a template engine using jsonpath syntax,
// which can be seen at http://goessner.net/articles/JsonPath/.
// In addition, it has {range} {end} function to iterate list and slice.
package jsonpath
Loading