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

Method validate

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

Source from the content-addressed store, hash-verified

219}
220
221func (opts CopySrcOptions) validate() (err error) {
222 // Input validation.
223 if err = s3utils.CheckValidBucketName(opts.Bucket); err != nil {
224 return err
225 }
226 if err = s3utils.CheckValidObjectName(opts.Object); err != nil {
227 return err
228 }
229 if opts.Start > opts.End || opts.Start < 0 {
230 return errInvalidArgument("start must be non-negative, and start must be at most end.")
231 }
232 return nil
233}
234
235// Low level implementation of CopyObject API, supports only upto 5GiB worth of copy.
236func (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