Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ChecksumStringToType (0.08 sec)

  1. internal/hash/checksum.go

    }
    
    // IsSet returns whether the type is valid and known.
    func (c ChecksumType) IsSet() bool {
    	return !c.Is(ChecksumInvalid) && !c.Base().Is(ChecksumNone)
    }
    
    // ChecksumStringToType is like NewChecksumType but without the `mode`
    func ChecksumStringToType(alg string) ChecksumType {
    	switch strings.ToUpper(alg) {
    	case "CRC32":
    		return ChecksumCRC32
    	case "CRC32C":
    		return ChecksumCRC32C
    	case "SHA1":
    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/bucket-replication.go

    	meta := make(map[string]string)
    	cs, isMP = oi.decryptChecksums(partNum, h)
    	for k, v := range cs {
    		if k == xhttp.AmzChecksumType {
    			continue
    		}
    		cktype := hash.ChecksumStringToType(k)
    		if cktype.IsSet() {
    			meta[cktype.Key()] = v
    			meta[xhttp.AmzChecksumAlgo] = cktype.String()
    		}
    	}
    	return meta, isMP
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 118.2K bytes
    - Viewed (0)
Back to top