Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mustGetUUIDBytes (0.15 sec)

  1. cmd/object-api-utils.go

    func mustGetUUID() string {
    	u, err := uuid.NewRandom()
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return u.String()
    }
    
    // mustGetUUIDBytes - get a random UUID as 16 bytes unencoded.
    func mustGetUUIDBytes() []byte {
    	u, err := uuid.NewRandom()
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    	return u[:]
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    	// for server that is started with `--no-compat`.
    	if !etag.ContentMD5Requested(r.Header) && (crypto.S3KMS.IsEncrypted(mi.UserDefined) || crypto.SSEC.IsRequested(r.Header) || !globalServerCtxt.StrictS3Compat) {
    		forceMD5 = mustGetUUIDBytes()
    	}
    
    	hashReader, err := hash.NewReaderWithOpts(ctx, reader, hash.Options{
    		Size:       size,
    		MD5Hex:     md5hex,
    		SHA256Hex:  sha256hex,
    		ActualSize: actualSize,
    		DisableMD5: false,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    	kind, _ := crypto.IsRequested(formValues)
    	if !etag.ContentMD5Requested(formValues) && (kind == crypto.SSEC || kind == crypto.S3KMS || !globalServerCtxt.StrictS3Compat) {
    		forceMD5 = mustGetUUIDBytes()
    	}
    
    	hashReader, err := hash.NewReaderWithOpts(ctx, reader, hash.Options{
    		Size:       actualSize,
    		MD5Hex:     clientETag.String(),
    		SHA256Hex:  "",
    		ActualSize: actualSize,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    	// for server that is started with `--no-compat`.
    	if !etag.ContentMD5Requested(r.Header) && (crypto.S3KMS.IsRequested(r.Header) || crypto.SSEC.IsRequested(r.Header) || !globalServerCtxt.StrictS3Compat) {
    		forceMD5 = mustGetUUIDBytes()
    	}
    	hashReader, err := hash.NewReaderWithOpts(ctx, reader, hash.Options{
    		Size:       size,
    		MD5Hex:     md5hex,
    		SHA256Hex:  sha256hex,
    		ActualSize: actualSize,
    		DisableMD5: false,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top