MCPcopy Create free account
hub / github.com/containers/image / NewUploadReader

Function NewUploadReader

internal/uploadreader/upload_reader.go:32–37  ·  view source on GitHub ↗

NewUploadReader returns an UploadReader for an "underlying" reader.

(underlying io.Reader)

Source from the content-addressed store, hash-verified

30
31// NewUploadReader returns an UploadReader for an "underlying" reader.
32func NewUploadReader(underlying io.Reader) *UploadReader {
33 return &UploadReader{
34 reader: underlying,
35 terminationError: nil,
36 }
37}
38
39// Read returns the error set by Terminate, if any, or calls the underlying reader.
40// It is safe to call this from a different goroutine than Terminate.

Callers 2

PutBlobWithOptionsMethod · 0.92
TestUploadReaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUploadReaderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…