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

Method Parse

util/jsonpath/parser.go:81–86  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

79}
80
81func (p *Parser) Parse(text string) error {
82 p.input = text
83 p.Root = newList()
84 p.pos = 0
85 return p.parseText(p.Root)
86}
87
88// consumeText return the parsed text since last cosumeText
89func (p *Parser) consumeText() string {

Callers 15

ParseFunction · 0.95
GetReferenceFunction · 0.45
TestNamespacePrefixStripFunction · 0.45
newCachedTokenSourceFunction · 0.45
parseTokenCmdOutputMethod · 0.45
parseJSONPathFunction · 0.45
parseFunction · 0.45
TestCreateBackoffManagerFunction · 0.45
RequestURIMethod · 0.45
TestURLTemplateFunction · 0.45
TestTransformResponseFunction · 0.45

Calls 2

parseTextMethod · 0.95
newListFunction · 0.85

Tested by 11

TestNamespacePrefixStripFunction · 0.36
parseFunction · 0.36
TestCreateBackoffManagerFunction · 0.36
TestURLTemplateFunction · 0.36
TestTransformResponseFunction · 0.36
TestAbsPathFunction · 0.36
testRESTClientFunction · 0.36
testJSONPathFunction · 0.36
testJSONPathSortOutputFunction · 0.36
testFailJSONPathFunction · 0.36