Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for putOptsFromReq (0.1 sec)

  1. cmd/object-api-options.go

    				Err:    fmt.Errorf("Unable to parse %s, failed with %w", xhttp.MinIOSourceMTime, err),
    			}
    		}
    	}
    	return opts, nil
    }
    
    // get ObjectOptions for PUT calls from encryption headers and metadata
    func putOptsFromReq(ctx context.Context, r *http.Request, bucket, object string, metadata map[string]string) (opts ObjectOptions, err error) {
    	return putOpts(ctx, bucket, object, r.Form.Get(xhttp.VersionID), r.Header, metadata)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    	if isCompressible(r.Header, object) {
    		// Storing the compression metadata.
    		metadata[ReservedMetadataPrefix+"compression"] = compressionAlgorithmV2
    	}
    
    	opts, err := putOptsFromReq(ctx, r, bucket, object, metadata)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if opts.PreserveETag != "" ||
    		r.Header.Get(xhttp.IfMatch) != "" ||
    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

    	sseConfig, _ := globalBucketSSEConfigSys.Get(bucket)
    	sseConfig.Apply(formValues, sse.ApplyOptions{
    		AutoEncrypt: globalAutoEncryption,
    	})
    
    	var opts ObjectOptions
    	opts, err = putOptsFromReq(ctx, r, bucket, object, metadata)
    	if err != nil {
    		writeErrorResponseHeadersOnly(w, toAPIError(ctx, err))
    		return
    	}
    	opts.WantChecksum = checksum
    
    	fanOutOpts := fanOutOptions{Checksum: checksum}
    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

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidChecksum), r.URL)
    		return
    	}
    
    	rawReader := hashReader
    	pReader := NewPutObjReader(rawReader)
    
    	var opts ObjectOptions
    	opts, err = putOptsFromReq(ctx, r, bucket, object, metadata)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	opts.IndexCB = idxCb
    	opts.WantChecksum = hashReader.Checksum()
    
    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