Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for encodeToString (0.48 sec)

  1. cmd/xl-storage-format-v1.go

    func (c ChecksumInfo) MarshalJSON() ([]byte, error) {
    	info := checksumInfoJSON{
    		Name:      fmt.Sprintf("part.%d", c.PartNumber),
    		Algorithm: c.Algorithm.String(),
    		Hash:      hex.EncodeToString(c.Hash),
    	}
    	return json.Marshal(info)
    }
    
    // UnmarshalJSON - custom checksum info unmarshaller
    func (c *ChecksumInfo) UnmarshalJSON(data []byte) error {
    	var info checksumInfoJSON
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. cmd/api-response.go

    	data.Delimiter = s3EncodeName(delimiter, encodingType)
    	data.Prefix = s3EncodeName(prefix, encodingType)
    	data.MaxKeys = maxKeys
    	data.ContinuationToken = base64.StdEncoding.EncodeToString([]byte(token))
    	data.NextContinuationToken = base64.StdEncoding.EncodeToString([]byte(nextToken))
    	data.IsTruncated = isTruncated
    
    	commonPrefixes := make([]CommonPrefix, 0, len(prefixes))
    	for _, prefix := range prefixes {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    			}
    
    			// If compressed, look for compressed FileInfo only
    			if meta.IsCompressed() {
    				fmt.Fprint(h, meta.Metadata[ReservedMetadataPrefix+"compression"])
    			}
    
    			metaHashes[i] = hex.EncodeToString(h.Sum(nil))
    			h.Reset()
    		}
    	}
    
    	metaHashCountMap := make(map[string]int)
    	for _, hash := range metaHashes {
    		if hash == "" {
    			continue
    		}
    		metaHashCountMap[hash]++
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    }
    
    func (x xlMetaV2VersionHeader) String() string {
    	return fmt.Sprintf("Type: %s, VersionID: %s, Signature: %s, ModTime: %s, Flags: %s, N: %d, M: %d",
    		x.Type.String(),
    		hex.EncodeToString(x.VersionID[:]),
    		hex.EncodeToString(x.Signature[:]),
    		time.Unix(0, x.ModTime),
    		x.Flags.String(),
    		x.EcN, x.EcM,
    	)
    }
    
    // matchesNotStrict returns whether x and o have both have non-zero version,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  5. cmd/iam.go

    	}
    	m := make(map[string]interface{})
    	m[parentClaim] = parentUser
    
    	if len(policyBuf) > 0 {
    		m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf)
    		m[iamPolicyClaimNameSA()] = embeddedPolicyType
    	} else {
    		m[iamPolicyClaimNameSA()] = inheritedPolicyType
    	}
    
    	// Add all the necessary claims for the service account.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top