MCPcopy Create free account
hub / github.com/zalando/skipper / processPathOrSubTree

Function processPathOrSubTree

routing/datasource.go:435–445  ·  view source on GitHub ↗

returns the subtree path if it is a valid definition

(p *eskip.Predicate)

Source from the content-addressed store, hash-verified

433
434// returns the subtree path if it is a valid definition
435func processPathOrSubTree(p *eskip.Predicate) (string, error) {
436 if len(p.Args) != 1 {
437 return "", predicates.ErrInvalidPredicateParameters
438 }
439
440 if s, ok := p.Args[0].(string); ok {
441 return s, nil
442 }
443
444 return "", predicates.ErrInvalidPredicateParameters
445}
446
447func validTreePredicates(predicateList []*eskip.Predicate) bool {
448 var has bool

Callers 1

processTreePredicatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…