MCPcopy
hub / github.com/containerd/containerd / NewReader

Function NewReader

core/content/helpers.go:49–54  ·  view source on GitHub ↗

NewReader returns a io.Reader from a ReaderAt

(ra ReaderAt)

Source from the content-addressed store, hash-verified

47
48// NewReader returns a io.Reader from a ReaderAt
49func NewReader(ra ReaderAt) io.Reader {
50 if rd, ok := ra.(reader); ok {
51 return rd.Reader()
52 }
53 return io.NewSectionReader(ra, 0, ra.Size())
54}
55
56type nopCloserBytesReader struct {
57 *bytes.Reader

Callers 15

InstallMethod · 0.92
newProgressReaderFunction · 0.92
newReadCloserFunction · 0.92
GetDiffIDFunction · 0.92
blobRecordFunction · 0.92
resolveLayersFunction · 0.92
writeCriuCheckpointDataFunction · 0.92
writeRootFsDiffTarFunction · 0.92
snapshots.goFile · 0.92
content.goFile · 0.92
ApplyMethod · 0.92
applyCIMLayerCommonFunction · 0.92

Calls 2

ReaderMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…