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

Function readNextStream

docker/docker_image_src_test.go:104–115  ·  view source on GitHub ↗
(streams chan io.ReadCloser, errs chan error)

Source from the content-addressed store, hash-verified

102}
103
104func readNextStream(streams chan io.ReadCloser, errs chan error) ([]byte, error) {
105 select {
106 case r := <-streams:
107 if r == nil {
108 return nil, nil
109 }
110 defer r.Close()
111 return io.ReadAll(r)
112 case err := <-errs:
113 return nil, err
114 }
115}
116
117type verifyGetBlobAtData struct {
118 expectedData []byte

Callers 1

verifyGetBlobAtOutputFunction · 0.70

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…