MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / newContextReader

Function newContextReader

agent/utils/files/file_op.go:1190–1195  ·  view source on GitHub ↗
(ctx context.Context, r io.Reader)

Source from the content-addressed store, hash-verified

1188}
1189
1190func newContextReader(ctx context.Context, r io.Reader) io.Reader {
1191 if ctx == nil {
1192 return r
1193 }
1194 return &contextReader{ctx: ctx, r: r}
1195}
1196
1197func (r *contextReader) Read(p []byte) (int, error) {
1198 select {

Callers 1

ZipFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected