MCPcopy
hub / github.com/rclone/rclone / PutStream

Method PutStream

backend/crypt/crypt.go:575–577  ·  view source on GitHub ↗

PutStream uploads to the remote path with the modTime given of indeterminate size

(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption)

Source from the content-addressed store, hash-verified

573
574// PutStream uploads to the remote path with the modTime given of indeterminate size
575func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
576 return f.put(ctx, in, src, options, f.Fs.Features().PutStream)
577}
578
579// Hashes returns the supported hash sets.
580func (f *Fs) Hashes() hash.Set {

Callers

nothing calls this directly

Calls 2

putMethod · 0.95
FeaturesMethod · 0.65

Tested by

no test coverage detected