Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IndexCB (0.57 sec)

  1. cmd/object-multipart-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    		if dstOpts.IndexCB != nil {
    			dstOpts.IndexCB = compressionIndexEncrypter(objectEncryptionKey, dstOpts.IndexCB)
    		}
    	}
    
    	srcInfo.PutObjReader = pReader
    	copyObjectPart := objectAPI.CopyObjectPart
    
    	// Copy source object to destination, if source and destination
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    			if err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    			if dstOpts.IndexCB != nil {
    				dstOpts.IndexCB = compressionIndexEncrypter(objEncKey, dstOpts.IndexCB)
    			}
    		}
    	}
    
    	srcInfo.PutObjReader = pReader
    
    	srcInfo.UserDefined, err = getCpObjMetadataFromHeader(ctx, r, srcInfo.UserDefined)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  3. cmd/object-api-interface.go

    	PrefixEnabledFn func(prefix string) bool // function which returns true if versioning is enabled on prefix
    
    	// IndexCB will return any index created but the compression.
    	// Object must have been read at this point.
    	IndexCB func() []byte
    
    	// InclFreeVersions indicates that free versions need to be included
    	// when looking up a version by fi.VersionID
    	InclFreeVersions bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    	// than specified in request header.
    	if n < data.Size() {
    		return ObjectInfo{}, IncompleteBody{Bucket: minioMetaBucket, Object: key}
    	}
    	var index []byte
    	if opts.IndexCB != nil {
    		index = opts.IndexCB()
    	}
    
    	modTime := UTCNow()
    
    	for i, w := range writers {
    		if w == nil {
    			// Make sure to avoid writing to disks which we couldn't complete in erasure.Encode()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-rebalance.go

    			pi, err := z.PutObjectPart(ctx, bucket, oi.Name, res.UploadID,
    				part.Number,
    				NewPutObjReader(hr),
    				ObjectOptions{
    					PreserveETag: part.ETag, // Preserve original ETag to ensure same metadata.
    					IndexCB: func() []byte {
    						return part.Index // Preserve part Index to ensure decompression works.
    					},
    					NoAuditLog: true,
    				})
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    			pi, err := z.PutObjectPart(ctx, bucket, objInfo.Name, res.UploadID,
    				part.Number,
    				NewPutObjReader(hr),
    				ObjectOptions{
    					PreserveETag: part.ETag, // Preserve original ETag to ensure same metadata.
    					IndexCB: func() []byte {
    						return part.Index // Preserve part Index to ensure decompression works.
    					},
    					NoAuditLog: true,
    				})
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  7. cmd/erasure-multipart.go

    	partPath := pathJoin(uploadIDPath, fi.DataDir, partSuffix)
    
    	md5hex := r.MD5CurrentHexString()
    	if opts.PreserveETag != "" {
    		md5hex = opts.PreserveETag
    	}
    
    	var index []byte
    	if opts.IndexCB != nil {
    		index = opts.IndexCB()
    	}
    
    	actualSize := data.ActualSize()
    	if actualSize < 0 {
    		_, encrypted := crypto.IsEncrypted(fi.Metadata)
    		compressed := fi.IsCompressed()
    		switch {
    		case compressed:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
Back to top