MCPcopy Create free account
hub / github.com/containerd/nerdctl / ReadRow

Method ReadRow

pkg/tabutil/tabutil.go:59–71  ·  view source on GitHub ↗
(row, key string)

Source from the content-addressed store, hash-verified

57}
58
59func (r *TabReader) ReadRow(row, key string) (string, bool) {
60 idx, ok := r.indexs[key]
61 if !ok {
62 return "", false
63 }
64 var value string
65 if idx.end == -1 {
66 value = row[idx.start:]
67 } else {
68 value = row[idx.start:idx.end]
69 }
70 return strings.TrimSpace(value), true
71}

Callers 12

TestTabReaderFunction · 0.80
TestContainerListFunction · 0.80
TestListProcessContainerFunction · 0.80
TestListHyperVContainerFunction · 0.80
TestImagesFunction · 0.80
TestVolumeLsSizeFunction · 0.80
TestVolumeLsFilterFunction · 0.80
TestComposePsFunction · 0.80

Calls

no outgoing calls

Tested by 12

TestTabReaderFunction · 0.64
TestContainerListFunction · 0.64
TestListProcessContainerFunction · 0.64
TestListHyperVContainerFunction · 0.64
TestImagesFunction · 0.64
TestVolumeLsSizeFunction · 0.64
TestVolumeLsFilterFunction · 0.64
TestComposePsFunction · 0.64