Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for userDefined (0.07 sec)

  1. cmd/tier.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	pReader, err := NewPutObjReader(hr).WithEncryption(encHr, &oek)
    	if err != nil {
    		return nil, nil, err
    	}
    	opts := &ObjectOptions{
    		UserDefined: metadata,
    		MTime:       UTCNow(),
    		MaxParity:   true,
    	}
    
    	return pReader, opts, nil
    }
    
    // Reload updates config by reloading remote tier config from config store.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    			return srcSet.CopyObject(ctx, srcBucket, srcObject, dstBucket, dstObject, srcInfo, srcOpts, dstOpts)
    		}
    	}
    
    	putOpts := ObjectOptions{
    		ServerSideEncryption: dstOpts.ServerSideEncryption,
    		UserDefined:          srcInfo.UserDefined,
    		Versioned:            dstOpts.Versioned,
    		VersionID:            dstOpts.VersionID,
    		MTime:                dstOpts.MTime,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  3. cmd/erasure-metadata.go

    	// etag/md5Sum has already been extracted. We need to
    	// remove to avoid it from appearing as part of
    	// response headers. e.g, X-Minio-* or X-Amz-*.
    	// Tags have also been extracted, we remove that as well.
    	objInfo.UserDefined = cleanMetadata(fi.Metadata)
    
    	// All the parts per object.
    	objInfo.Parts = fi.Parts
    
    	// Update storage class
    	if fi.TransitionTier != "" {
    		objInfo.StorageClass = fi.TransitionTier
    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/object_api_suite_test.go

    		var objInfo ObjectInfo
    		objInfo, err = obj.PutObject(context.Background(), "bucket", key, mustGetPutObjReader(t, bytes.NewBufferString(randomString), int64(len(randomString)), metadata["etag"], ""), ObjectOptions{UserDefined: metadata})
    		if err != nil {
    			t.Fatalf("%s: <ERROR> %s", instanceType, err)
    		}
    		if objInfo.ETag != expectedETaghex {
    			t.Errorf("Md5 Mismatch")
    		}
    	}
    
    	for key, value := range objects {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. cmd/batch-expire.go

    		for _, kv := range ef.Metadata {
    			// Object (version) must match all x-amz-meta and
    			// standard metadata headers
    			// specified in the filter
    			var match bool
    			for k, v := range obj.UserDefined {
    				if !stringsHasPrefixFold(k, "x-amz-meta-") && !isStandardHeader(k) {
    					continue
    				}
    				// We only need to match x-amz-meta or standardHeaders
    				if kv.Match(BatchJobKV{Key: k, Value: v}) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL)
    			return
    		}
    		tagsStr := tags.String()
    		opts.UserDefined[xhttp.AmzObjectTagging] = tagsStr
    	} else {
    		// avoid user set an invalid tag using `X-Amz-Tagging`
    		delete(opts.UserDefined, xhttp.AmzObjectTagging)
    	}
    
    	objInfo, err := objectAPI.PutObject(ctx, bucket, object, pReader, opts)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		// uploading the object.
    		_, err := obj.PutObject(context.Background(), input.bucketName, input.objectName, mustGetPutObjReader(t, bytes.NewReader(input.textData), input.contentLength, input.metaData[""], ""), ObjectOptions{UserDefined: input.metaData})
    		// if object upload fails stop the test.
    		if err != nil {
    			t.Fatalf("Put Object case %d:  Error uploading object: <ERROR> %v", i+1, err)
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  8. cmd/metacache-set.go

    		bugLogIf(ctx, err)
    		custom := b.headerKV()
    		_, err = er.putMetacacheObject(ctx, o.objectPath(b.n), NewPutObjReader(r), ObjectOptions{
    			UserDefined: custom,
    		})
    		if err != nil {
    			mc.setErr(err.Error())
    			cancel()
    			return err
    		}
    		if b.n == 0 {
    			return nil
    		}
    		// Update block 0 metadata.
    		var retries int
    		for {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		}
    	}
    
    	putOpts := ObjectOptions{
    		ServerSideEncryption: dstOpts.ServerSideEncryption,
    		UserDefined:          srcInfo.UserDefined,
    		Versioned:            dstOpts.Versioned,
    		VersionID:            dstOpts.VersionID,
    		MTime:                dstOpts.MTime,
    		NoLock:               true,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  10. cmd/object-api-multipart_test.go

    		t.Fatalf("%s : %s", instanceType, err)
    	}
    	// Initiate Multipart Upload on the above created bucket.
    	res, err := obj.NewMultipartUpload(context.Background(), bucketNames[0], objectNames[0], ObjectOptions{UserDefined: map[string]string{"X-Amz-Meta-Id": "id"}})
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("%s : %s", instanceType, err)
    	}
    
    	uploadIDs = append(uploadIDs, res.UploadID)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
Back to top