Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for NewMultipartUpload (0.25 sec)

  1. cmd/object-api-multipart_test.go

    	opts := ObjectOptions{}
    	_, err := obj.NewMultipartUpload(context.Background(), "--", object, opts)
    	if err == nil {
    		t.Fatalf("%s: Expected to fail since bucket name is invalid.", instanceType)
    	}
    
    	errMsg := "Bucket not found: minio-bucket"
    	// operation expected to fail since the bucket on which NewMultipartUpload is being initiated doesn't exist.
    	_, err = obj.NewMultipartUpload(context.Background(), bucket, object, opts)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.4K bytes
    - Viewed (0)
  2. cmd/benchmark-utils_test.go

    	textData := generateBytesData(objSize)
    	// generate md5sum for the generated data.
    	// md5sum of the data to written is required as input for NewMultipartUpload.
    	res, err := obj.NewMultipartUpload(b.Context(), bucket, object, ObjectOptions{})
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	sha256hex := ""
    
    	var textPartData []byte
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    		ChecksumType: userDefined[hash.MinIOMultipartChecksumType],
    	}, nil
    }
    
    // NewMultipartUpload - initialize a new multipart upload, returns a
    // unique id. The unique id returned here is of UUID form, for each
    // subsequent request each UUID is unique.
    //
    // Implements S3 compatible initiate multipart API.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    	// that is without any other handler being registered,
    	// That's why NewMultipartUpload is initiated using ObjectLayer.
    	res, err := obj.NewMultipartUpload(context.Background(), bucketName, testObject, opts)
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("MinIO %s : <ERROR>  %s", instanceType, err)
    	}
    	uploadID := res.UploadID
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  5. cmd/erasure-healing_test.go

    	if err != nil {
    		t.Fatalf("Failed to make a bucket - %v", err)
    	}
    
    	// Create an object with multiple parts uploaded in decreasing
    	// part number.
    	res, err := objLayer.NewMultipartUpload(ctx, bucket, object, opts)
    	if err != nil {
    		t.Fatalf("Failed to create a multipart upload - %v", err)
    	}
    
    	var uploadedParts []CompletePart
    	for _, partID := range []int{2, 1} {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 48.5K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    	}
    
    	if opts.WantChecksum != nil {
    		opts.WantChecksum.Type |= hash.ChecksumMultipart | hash.ChecksumIncludesMultipart
    	}
    
    	newMultipartUpload := objectAPI.NewMultipartUpload
    
    	res, err := newMultipartUpload(ctx, bucket, object, opts)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. cmd/object_api_suite_test.go

    	var opts ObjectOptions
    	err := obj.MakeBucket(context.Background(), "bucket", MakeBucketOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	res, err := obj.NewMultipartUpload(context.Background(), "bucket", "key", opts)
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    	uploadID := res.UploadID
    
    	// Create a byte array of 5MiB.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  8. cmd/erasure-metadata-utils.go

    }
    
    // shuffleDisksAndPartsMetadataByIndex this function should be always used by GetObjectNInfo()
    // and CompleteMultipartUpload code path, it is not meant to be used with PutObject,
    // NewMultipartUpload metadata shuffling.
    func shuffleDisksAndPartsMetadataByIndex(disks []StorageAPI, metaArr []FileInfo, fi FileInfo) (shuffledDisks []StorageAPI, shuffledPartsMetadata []FileInfo) {
    	shuffledDisks = make([]StorageAPI, len(disks))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    // if none are found falls back to most available space pool, this function is
    // designed to be only used by PutObject, CopyObject (newObject creation) and NewMultipartUpload.
    func (z *erasureServerPools) getPoolIdx(ctx context.Context, bucket, object string, size int64) (idx int, err error) {
    	pinfo, _, err := z.getPoolInfoExistingWithOpts(ctx, bucket, object, ObjectOptions{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.1K bytes
    - Viewed (0)
  10. cmd/erasure-sets.go

    }
    
    // Initiate a new multipart upload on a hashedSet based on object name.
    func (s *erasureSets) NewMultipartUpload(ctx context.Context, bucket, object string, opts ObjectOptions) (res *NewMultipartUploadResult, err error) {
    	set := s.getHashedSet(object)
    	return set.NewMultipartUpload(ctx, bucket, object, opts)
    }
    
    // PutObjectPart - writes part of an object to hashedSet based on the object name.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37K bytes
    - Viewed (1)
Back to top