MCPcopy
hub / github.com/containerd/containerd / sizeReaderAt

Struct sizeReaderAt

plugins/content/local/readerat.go:30–33  ·  view source on GitHub ↗

readerat implements io.ReaderAt in a completely stateless manner by opening the referenced file for each call to ReadAt.

Source from the content-addressed store, hash-verified

28// readerat implements io.ReaderAt in a completely stateless manner by opening
29// the referenced file for each call to ReadAt.
30type sizeReaderAt struct {
31 size int64
32 fp *os.File
33}
34
35// OpenReader creates ReaderAt from a file
36func OpenReader(p string) (content.ReaderAt, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected