Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for parts (0.75 sec)

  1. cmd/object-api-multipart_test.go

    	for _, part := range parts {
    		_, err = obj.PutObjectPart(context.Background(), part.bucketName, part.objName, part.uploadID, part.PartID, mustGetPutObjReader(t, bytes.NewBufferString(part.inputReaderData), part.inputDataSize, part.inputMd5, sha256sum), opts)
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err)
    		}
    	}
    	// Parts to be sent as input for CompleteMultipartUpload.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  2. cmd/encryption-v1.go

    		return 0, o.Size, 0, 0, 0, nil
    	}
    
    	// Assemble slice of (decrypted) part sizes in `sizes`
    	var sizes []int64
    	var decObjSize int64 // decrypted total object size
    	if o.isMultipart() {
    		sizes = make([]int64, len(o.Parts))
    		for i, part := range o.Parts {
    			var partSize uint64
    			partSize, err = sio.DecryptedSize(uint64(part.Size))
    			if err != nil {
    				err = errObjectTampered
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    		Checksums:  checksums,
    	}
    
    	// Update part info if it already exists.
    	for i, part := range fi.Parts {
    		if partNumber == part.Number {
    			fi.Parts[i] = partInfo
    			return
    		}
    	}
    
    	// Proceed to include new part info.
    	fi.Parts = append(fi.Parts, partInfo)
    
    	// Parts in FileInfo should be in sorted order by part number.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. cmd/object-api-datatypes.go

    }
    
    // PartInfo - represents individual part metadata.
    type PartInfo struct {
    	// Part number that identifies the part. This is a positive integer between
    	// 1 and 10,000.
    	PartNumber int
    
    	// Date and time at which the part was uploaded.
    	LastModified time.Time
    
    	// Entity tag returned when the part was initially uploaded.
    	ETag string
    
    	// Size in bytes of the part.
    	Size int64
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  5. 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)
  6. cmd/api-response.go

    	listPartsResponse.Parts = make([]Part, len(partsInfo.Parts))
    	for index, part := range partsInfo.Parts {
    		newPart := Part{}
    		newPart.PartNumber = part.PartNumber
    		newPart.ETag = "\"" + part.ETag + "\""
    		newPart.Size = part.Size
    		newPart.LastModified = amztime.ISO8601Format(part.LastModified.UTC())
    		newPart.ChecksumCRC32 = part.ChecksumCRC32
    		newPart.ChecksumCRC32C = part.ChecksumCRC32C
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  7. cmd/object-api-utils.go

    }
    
    // Create an s3 compatible MD5sum for complete multipart transaction.
    func getCompleteMultipartMD5(parts []CompletePart) string {
    	var finalMD5Bytes []byte
    	for _, part := range parts {
    		md5Bytes, err := hex.DecodeString(canonicalizeETag(part.ETag))
    		if err != nil {
    			finalMD5Bytes = append(finalMD5Bytes, []byte(part.ETag)...)
    		} else {
    			finalMD5Bytes = append(finalMD5Bytes, md5Bytes...)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. 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)
  9. docs/debugging/s3-check-md5/main.go

    				continue
    			}
    			parts := 1
    			multipart := false
    			s := strings.Split(object.ETag, "-")
    			switch len(s) {
    			case 1:
    				// nothing to do
    			case 2:
    				if p, err := strconv.Atoi(s[1]); err == nil {
    					parts = p
    				} else {
    					log.Println("FAILED: ETAG of", objFullPath(object), "has a wrong format:", err)
    					continue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. cmd/typed-errors.go

    var errUploadIDNotFound = errors.New("Specified Upload ID is not found")
    
    // error returned when PartNumber is greater than the maximum allowed 10000 parts
    var errInvalidMaxParts = errors.New("Part number is greater than the maximum allowed 10000 parts")
    
    // error returned for session policies > 2048
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top