Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 346 for part2 (0.15 sec)

  1. internal/hash/checksum.go

    		b = b[length:]
    		if !typ.Is(ChecksumIncludesMultipart) {
    			continue
    		}
    		parts, n := binary.Uvarint(b)
    		if n <= 0 {
    			break
    		}
    		if len(res) == 0 {
    			res = make([]map[string]string, parts)
    		}
    		b = b[n:]
    		for part := 0; part < int(parts); part++ {
    			if len(b) < length {
    				break
    			}
    			// Read part checksum
    			cs := base64.StdEncoding.EncodeToString(b[:length])
    			b = b[length:]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    		return
    	}
    
    	// We have to adjust the size of encrypted parts since encrypted parts
    	// are slightly larger due to encryption overhead.
    	// Further, we have to adjust the ETags of parts when using SSE-S3.
    	// Due to AWS S3, SSE-S3 encrypted parts return the plaintext ETag
    	// being the content MD5 of that particular part. This is not the
    	// case for SSE-C and SSE-KMS objects.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool-rebalance.go

    		parts := make([]CompletePart, len(oi.Parts))
    		for i, part := range oi.Parts {
    			hr, err := hash.NewReader(ctx, io.LimitReader(gr, part.Size), part.Size, "", "", part.ActualSize)
    			if err != nil {
    				return fmt.Errorf("rebalanceObject: hash.NewReader() %w", err)
    			}
    			pi, err := z.PutObjectPart(ctx, bucket, oi.Name, res.UploadID,
    				part.Number,
    				NewPutObjReader(hr),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  4. cmd/server_test.go

    	c.Assert(err, nil)
    	// verify whether complete multipart was successful.
    	c.Assert(response.StatusCode, http.StatusOK)
    	var parts []CompletePart
    	for _, part := range completeUploads.Parts {
    		part.ETag = canonicalizeETag(part.ETag)
    		parts = append(parts, part)
    	}
    	etag := getCompleteMultipartMD5(parts)
    	c.Assert(canonicalizeETag(response.Header.Get(xhttp.ETag)), etag)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    	}
    
    	var healOnce sync.Once
    
    	for ; partIndex <= lastPartIndex; partIndex++ {
    		if length == totalBytesRead {
    			break
    		}
    
    		partNumber := fi.Parts[partIndex].Number
    
    		// Save the current part name and size.
    		partSize := fi.Parts[partIndex].Size
    
    		partLength := partSize - partOffset
    		// partLength should be adjusted so that we don't write more data than what was requested.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  6. cmd/object_api_suite_test.go

    		}
    		if calcPartInfo.ETag != expectedETaghex {
    			t.Errorf("MD5 Mismatch")
    		}
    		completedParts.Parts = append(completedParts.Parts, CompletePart{
    			PartNumber: i,
    			ETag:       calcPartInfo.ETag,
    		})
    	}
    	objInfo, err := obj.CompleteMultipartUpload(context.Background(), "bucket", "key", uploadID, completedParts.Parts, ObjectOptions{})
    	if err != nil {
    		t.Fatalf("%s: <ERROR> %s", instanceType, err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  7. cmd/object-api-errors.go

    }
    
    // InvalidPart One or more of the specified parts could not be found
    type InvalidPart struct {
    	PartNumber int
    	ExpETag    string
    	GotETag    string
    }
    
    func (e InvalidPart) Error() string {
    	return fmt.Sprintf("Specified part could not be found. PartNumber %d, Expected %s, got %s",
    		e.PartNumber, e.ExpETag, e.GotETag)
    }
    
    // PartTooSmall - error if part size is less than 5MB.
    type PartTooSmall struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  8. cmd/api-errors.go

    		Code:           "InvalidPart",
    		Description:    "One or more of the specified parts could not be found.  The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingPart: {
    		Code:           "InvalidRequest",
    		Description:    "You must specify at least one part",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidPartOrder: {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  9. cmd/object-handlers.go

    					ChecksumSHA1:   objInfo.Parts[i].Checksums["SHA1"],
    					ChecksumSHA256: objInfo.Parts[i].Checksums["SHA256"],
    					ChecksumCRC32:  objInfo.Parts[i].Checksums["CRC32"],
    					ChecksumCRC32C: objInfo.Parts[i].Checksums["CRC32C"],
    					PartNumber:     objInfo.Parts[i].Number,
    					Size:           objInfo.Parts[i].Size,
    				})
    			}
    		}
    
    		if OA.ObjectParts.NextPartNumberMarker != partsLength {
    			OA.ObjectParts.IsTruncated = true
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  10. cmd/storage-errors.go

    // Copyright (c) 2015-2023 MinIO, Inc.
    //
    // This file is part of MinIO Object Storage stack
    //
    // This program is free software: you can redistribute it and/or modify
    // it under the terms of the GNU Affero General Public License as published by
    // the Free Software Foundation, either version 3 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top