MCPcopy Create free account
hub / github.com/rclone/rclone / Put

Method Put

backend/googlecloudstorage/googlecloudstorage.go:947–954  ·  view source on GitHub ↗

Put the object into the bucket Copy the reader in to the new object which is returned. The new object may have been created if an error is returned

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

Source from the content-addressed store, hash-verified

945//
946// The new object may have been created if an error is returned
947func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
948 // Temporary Object under construction
949 o := &Object{
950 fs: f,
951 remote: src.Remote(),
952 }
953 return o, o.Update(ctx, in, src, options...)
954}
955
956// PutStream uploads to the remote path with the modTime given of indeterminate size
957func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {

Callers 1

PutStreamMethod · 0.95

Calls 2

UpdateMethod · 0.95
RemoteMethod · 0.65

Tested by

no test coverage detected