MCPcopy
hub / github.com/minio/minio-go / CopyObject

Method CopyObject

core.go:59–61  ·  view source on GitHub ↗

CopyObject - copies an object from source object to destination object on server side.

(ctx context.Context, sourceBucket, sourceObject, destBucket, destObject string, metadata map[string]string, srcOpts CopySrcOptions, dstOpts PutObjectOptions)

Source from the content-addressed store, hash-verified

57
58// CopyObject - copies an object from source object to destination object on server side.
59func (c Core) CopyObject(ctx context.Context, sourceBucket, sourceObject, destBucket, destObject string, metadata map[string]string, srcOpts CopySrcOptions, dstOpts PutObjectOptions) (ObjectInfo, error) {
60 return c.copyObjectDo(ctx, sourceBucket, sourceObject, destBucket, destObject, metadata, srcOpts, dstOpts)
61}
62
63// CopyObjectPart - creates a part in a multipart upload by copying (a
64// part of) an existing object.

Callers 5

TestCoreCopyObjectFunction · 0.95
mainFunction · 0.45
mainFunction · 0.45

Calls 1

copyObjectDoMethod · 0.80

Tested by 1

TestCoreCopyObjectFunction · 0.76