MCPcopy
hub / github.com/kubernetes/client-go / evalList

Method evalList

util/jsonpath/jsonpath.go:198–208  ·  view source on GitHub ↗

evalList evaluates ListNode

(value []reflect.Value, node *ListNode)

Source from the content-addressed store, hash-verified

196
197// evalList evaluates ListNode
198func (j *JSONPath) evalList(value []reflect.Value, node *ListNode) ([]reflect.Value, error) {
199 var err error
200 curValue := value
201 for _, node := range node.Nodes {
202 curValue, err = j.walk(curValue, node)
203 if err != nil {
204 return curValue, err
205 }
206 }
207 return curValue, nil
208}
209
210// evalIdentifier evaluates IdentifierNode
211func (j *JSONPath) evalIdentifier(input []reflect.Value, node *IdentifierNode) ([]reflect.Value, error) {

Callers 3

walkMethod · 0.95
evalUnionMethod · 0.95
evalFilterMethod · 0.95

Calls 1

walkMethod · 0.95

Tested by

no test coverage detected