Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for PutObjectPart (0.21 sec)

  1. cmd/benchmark-utils_test.go

    		}
    	}
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // Benchmark utility functions for ObjectLayer.PutObjectPart().
    // Creates Object layer setup ( MakeBucket ) and then runs the PutObjectPart benchmark.
    func runPutObjectPartBenchmark(b *testing.B, obj ObjectLayer, partSize int) {
    	var err error
    	// obtains random bucket name.
    	bucket := getRandomBucketName()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. cmd/object-api-multipart_test.go

    				}
    			}
    		})
    	}
    }
    
    // Benchmarks for ObjectLayer.PutObjectPart().
    // The intent is to benchmark PutObjectPart for various sizes ranging from few bytes to 100MB.
    // Also each of these Benchmarks are run both Erasure and FS backends.
    
    // BenchmarkPutObjectPart5MbFS - Benchmark FS.PutObjectPart() for object size of 5MB.
    func BenchmarkPutObjectPart5MbFS(b *testing.B) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    		g.WaitErr()
    	}
    
    	return evalDisks(disks, errs), err
    }
    
    // PutObjectPart - reads incoming stream and internally erasure codes
    // them. This call is similar to single put operation but it is part
    // of the multipart transaction.
    //
    // Implements S3 compatible Upload Part API.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    }
    
    // TestAPIPutObjectPartHandlerStreaming - Tests validate the response of PutObjectPart HTTP handler
    // when the request signature type is `streaming signature`.
    func TestAPIPutObjectPartHandlerStreaming(t *testing.T) {
    	defer DetectTestLeak(t)()
    	ExecExtendedObjectLayerAPITest(t, testAPIPutObjectPartHandlerStreaming, []string{"NewMultipart", "PutObjectPart"})
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  5. cmd/object-multipart-handlers.go

    				idxCb = compressionIndexEncrypter(objectEncryptionKey, idxCb)
    			}
    			opts.EncryptFn = metadataEncrypter(objectEncryptionKey)
    		}
    	}
    	opts.IndexCB = idxCb
    
    	putObjectPart := objectAPI.PutObjectPart
    
    	partInfo, err := putObjectPart(ctx, bucket, object, uploadID, partID, pReader, opts)
    	if err != nil {
    		// Verify if the underlying error is signature mismatch.
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  6. cmd/object-api-input-checks.go

    	_, err := base64.RawURLEncoding.DecodeString(uploadID)
    	if err != nil {
    		return MalformedUploadID{
    			UploadID: uploadID,
    		}
    	}
    	return checkObjectArgs(ctx, bucket, object)
    }
    
    // Checks for PutObjectPart arguments validity, also validates if bucket exists.
    func checkPutObjectPartArgs(ctx context.Context, bucket, object, uploadID string) error {
    	return checkMultipartObjectArgs(ctx, bucket, object, uploadID)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. cmd/erasure-healing_test.go

    	if err != nil {
    		t.Fatalf("Failed to create a multipart upload - %v", err)
    	}
    
    	var uploadedParts []CompletePart
    	for _, partID := range []int{2, 1} {
    		pInfo, err1 := objLayer.PutObjectPart(ctx, bucket, object, res.UploadID, partID, mustGetPutObjReader(t, bytes.NewReader(data), int64(len(data)), "", ""), opts)
    		if err1 != nil {
    			t.Fatalf("Failed to upload a part - %v", err1)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  8. cmd/erasure-sets.go

    	return set.NewMultipartUpload(ctx, bucket, object, opts)
    }
    
    // PutObjectPart - writes part of an object to hashedSet based on the object name.
    func (s *erasureSets) PutObjectPart(ctx context.Context, bucket, object, uploadID string, partID int, data *PutObjReader, opts ObjectOptions) (info PartInfo, err error) {
    	set := s.getHashedSet(object)
    	return set.PutObjectPart(ctx, bucket, object, uploadID, partID, data, opts)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  9. cmd/object-api-putobject_test.go

    	// Upload part1.
    	fiveMBBytes := bytes.Repeat([]byte("a"), 5*humanize.MiByte)
    	md5Writer := md5.New()
    	md5Writer.Write(fiveMBBytes)
    	etag1 := hex.EncodeToString(md5Writer.Sum(nil))
    	sha256sum := ""
    	_, err = obj.PutObjectPart(context.Background(), bucket, object, uploadID, 1, mustGetPutObjReader(t, bytes.NewReader(fiveMBBytes), int64(len(fiveMBBytes)), etag1, sha256sum), opts)
    	if err != nil {
    		// Failed to upload object part, abort.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    		startOffset int64, length int64, srcInfo ObjectInfo, srcOpts, dstOpts ObjectOptions) (info PartInfo, err error)
    	PutObjectPart(ctx context.Context, bucket, object, uploadID string, partID int, data *PutObjReader, opts ObjectOptions) (info PartInfo, err error)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
Back to top