Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewChecksumType (0.05 sec)

  1. internal/hash/checksum.go

    		// AWS seems to ignore full value, and just assume it.
    		return ChecksumCRC64NVME
    	case "":
    		return ChecksumNone
    	}
    	return ChecksumInvalid
    }
    
    // NewChecksumType returns a checksum type based on the algorithm string and obj type.
    func NewChecksumType(alg, objType string) ChecksumType {
    	full := ChecksumFullObject
    	switch objType {
    	case xhttp.AmzChecksumTypeFullObject:
    	case xhttp.AmzChecksumTypeComposite, "":
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. cmd/erasure-multipart.go

    	}
    
    	// Checksum type set when upload started.
    	var checksumType hash.ChecksumType
    	if cs := fi.Metadata[hash.MinIOMultipartChecksum]; cs != "" {
    		checksumType = hash.NewChecksumType(cs, fi.Metadata[hash.MinIOMultipartChecksumType])
    		if opts.WantChecksum != nil && !opts.WantChecksum.Type.Is(checksumType) {
    			return oi, InvalidArgument{
    				Bucket: bucket,
    				Object: fi.Name,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 47.1K bytes
    - Viewed (0)
Back to top