MCPcopy Create free account
hub / github.com/google/go-cloud / Copy

Method Copy

blob/driver/driver.go:323–323  ·  view source on GitHub ↗

Copy copies the object associated with srcKey to dstKey. If the source object does not exist, Copy must return an error for which ErrorCode returns gcerrors.NotFound. If the destination object already exists, it should be overwritten. opts is guaranteed to be non-nil.

(ctx context.Context, dstKey, srcKey string, opts *CopyOptions)

Source from the content-addressed store, hash-verified

321 //
322 // opts is guaranteed to be non-nil.
323 Copy(ctx context.Context, dstKey, srcKey string, opts *CopyOptions) error
324
325 // Delete deletes the object associated with key. If the specified object does
326 // not exist, Delete must return an error for which ErrorCode returns

Callers 15

TestPreconditionsFunction · 0.95
testCopyFunction · 0.95
testKeysFunction · 0.95
testAsFunction · 0.95
TestCopyBytesFunction · 0.65
CopyMethod · 0.65
TestReaderFunction · 0.65
ExampleBucket_NewReaderFunction · 0.65
NewTypedWriterMethod · 0.65
CopyMethod · 0.65
serveSignedURLMethod · 0.65

Implementers 7

bucketblob/memblob/memblob.go
bucketblob/s3blob/s3blob.go
bucketblob/fileblob/fileblob.go
bucketblob/gcsblob/gcsblob.go
prefixedBucketblob/driver/driver.go
singleKeyBucketblob/driver/driver.go
bucketblob/azureblob/azureblob.go

Calls

no outgoing calls

Tested by 9

TestPreconditionsFunction · 0.76
TestCopyBytesFunction · 0.52
TestReaderFunction · 0.52
ExampleBucket_NewReaderFunction · 0.52
serveSignedURLMethod · 0.52
copyFileToBucketFunction · 0.52
BenchmarkE2EFunction · 0.52
testFIFOTopicFunction · 0.52