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

Method validate

api-compose-object.go:239–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239func (opts CopySrcOptions) validate() (err error) {
240 // Input validation.
241 if err = s3utils.CheckValidBucketName(opts.Bucket); err != nil {
242 return err
243 }
244 if err = s3utils.CheckValidObjectName(opts.Object); err != nil {
245 return err
246 }
247 if opts.Start > opts.End || opts.Start < 0 {
248 return errInvalidArgument("start must be non-negative, and start must be at most end.")
249 }
250 return nil
251}
252
253// Low level implementation of CopyObject API, supports only upto 5GiB worth of copy.
254func (c *Client) copyObjectDo(ctx context.Context, srcBucket, srcObject, destBucket, destObject string,

Callers 1

ComposeObjectMethod · 0.45

Calls 3

CheckValidBucketNameFunction · 0.92
CheckValidObjectNameFunction · 0.92
errInvalidArgumentFunction · 0.85

Tested by

no test coverage detected