Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for CopyObject (0.36 sec)

  1. cmd/erasure-server-pool.go

    			return z.serverPools[poolIdx].CopyObject(ctx, srcBucket, srcObject, dstBucket, dstObject, srcInfo, srcOpts, dstOpts)
    		}
    		// Destination is not versioned and source version ID is empty
    		// perform an in-place update.
    		if !dstOpts.Versioned && srcOpts.VersionID == "" {
    			return z.serverPools[poolIdx].CopyObject(ctx, srcBucket, srcObject, dstBucket, dstObject, srcInfo, srcOpts, dstOpts)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  2. cmd/object-api-input-checks.go

    package cmd
    
    import (
    	"context"
    	"encoding/base64"
    	"runtime"
    	"strings"
    
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    )
    
    // Checks on CopyObject arguments, bucket and object.
    func checkCopyObjArgs(ctx context.Context, bucket, object string) error {
    	return checkBucketAndObjectNames(ctx, bucket, object)
    }
    
    // Checks on GetObject arguments, bucket and object.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    		api.headObjectInArchiveFileHandler(ctx, objectAPI, bucket, object, w, r)
    	} else {
    		api.headObjectHandler(ctx, objectAPI, bucket, object, w, r)
    	}
    }
    
    // Extract metadata relevant for an CopyObject operation based on conditional
    // header values specified in X-Amz-Metadata-Directive.
    func getCpObjMetadataFromHeader(ctx context.Context, r *http.Request, userMeta map[string]string) (map[string]string, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    		if onlineDisk != nil && onlineDisk.IsOnline() {
    			online++
    		}
    	}
    	return online
    }
    
    // CopyObject - copy object source object to destination object.
    // if source object and destination object are same we only
    // update metadata.
    func (er erasureObjects) CopyObject(ctx context.Context, srcBucket, srcObject, dstBucket, dstObject string, srcInfo ObjectInfo, srcOpts, dstOpts ObjectOptions) (oi ObjectInfo, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  5. cmd/object-api-datatypes.go

    	Parts []ObjectPartInfo `json:"-"`
    
    	// Implements writer and reader used by CopyObject API
    	Writer       io.WriteCloser `json:"-" msg:"-"`
    	Reader       *hash.Reader   `json:"-" msg:"-"`
    	PutObjReader *PutObjReader  `json:"-" msg:"-"`
    
    	metadataOnly bool
    	versionOnly  bool // adds a new version, only used by CopyObject
    	keyRotation  bool
    
    	// Date and time when the object was last accessed.
    	AccTime time.Time
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  6. cmd/batch-rotate.go

    	}
    
    	// Since we are rotating the keys, make sure to update the metadata.
    	oi.metadataOnly = true
    	oi.keyRotation = true
    	for k, v := range encMetadata {
    		oi.UserDefined[k] = v
    	}
    	if _, err := api.CopyObject(ctx, r.Bucket, oi.Name, r.Bucket, oi.Name, oi, ObjectOptions{
    		VersionID: oi.VersionID,
    	}, ObjectOptions{
    		VersionID: oi.VersionID,
    		NoLock:    true,
    	}); err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. cmd/api-router.go

    			Queries("lambdaArn", "{lambdaArn:.*}")
    		// GetObject
    		router.Methods(http.MethodGet).Path("/{object:.+}").
    			HandlerFunc(s3APIMiddleware(api.GetObjectHandler, traceHdrsS3HFlag))
    		// CopyObject
    		router.Methods(http.MethodPut).Path("/{object:.+}").
    			HeadersRegexp(xhttp.AmzCopySource, ".*?(\\/|%2F).*?").
    			HandlerFunc(s3APIMiddleware(api.CopyObjectHandler))
    		// PutObjectRetention
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  8. cmd/metrics-v2_test.go

    	"time"
    
    	"github.com/prometheus/client_golang/prometheus"
    )
    
    func TestGetHistogramMetrics(t *testing.T) {
    	histBuckets := []float64{0.05, 0.1, 0.25, 0.5, 0.75}
    	labels := []string{"GetObject", "PutObject", "CopyObject", "CompleteMultipartUpload"}
    	ttfbHist := prometheus.NewHistogramVec(
    		prometheus.HistogramOpts{
    			Name:    "s3_ttfb_seconds",
    			Help:    "Time taken by requests served by current MinIO server instance",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  9. cmd/object-handlers-common.go

    	return checkCopyObjectPreconditions(ctx, w, r, objInfo)
    }
    
    // Validates the preconditions for CopyObject, returns true if CopyObject operation should not proceed.
    // Preconditions supported are:
    //
    //	x-amz-copy-source-if-modified-since
    //	x-amz-copy-source-if-unmodified-since
    //	x-amz-copy-source-if-match
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    			// for users who might have used master
    			// branch
    			xlMeta.data.remove(versionID, dataDir)
    
    			// We need to attempt delete "dataDir" on the disk
    			// due to a CopyObject() bug where it might have
    			// inlined the data incorrectly, to avoid a situation
    			// where we potentially leave "DataDir"
    			filePath := pathJoin(volumeDir, path, dataDir)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top