Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAndValidateAttributesOpts (0.22 sec)

  1. cmd/object-api-options_test.go

    	"context"
    	"net/http"
    	"net/http/httptest"
    	"reflect"
    	"testing"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    // TestGetAndValidateAttributesOpts is currently minimal and covers a subset of getAndValidateAttributesOpts(),
    // it is intended to be expanded when the function is worked on in the future.
    func TestGetAndValidateAttributesOpts(t *testing.T) {
    	globalBucketVersioningSys = &BucketVersioningSys{}
    	bucket := minioMetaBucket
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. cmd/object-api-options.go

    	opts.Versioned = globalBucketVersioningSys.PrefixEnabled(bucket, object)
    	opts.VersionSuspended = globalBucketVersioningSys.PrefixSuspended(bucket, object)
    	return opts, nil
    }
    
    func getAndValidateAttributesOpts(ctx context.Context, w http.ResponseWriter, r *http.Request, bucket, object string) (opts ObjectOptions, valid bool) {
    	var argumentName string
    	var argumentValue string
    	var apiErr APIError
    	var err error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    }
    
    // GetObjectAttributes ...
    func (api objectAPIHandlers) getObjectAttributesHandler(ctx context.Context, objectAPI ObjectLayer, bucket, object string, w http.ResponseWriter, r *http.Request) {
    	opts, valid := getAndValidateAttributesOpts(ctx, w, r, bucket, object)
    	if !valid {
    		return
    	}
    
    	var s3Error APIErrorCode
    	if opts.VersionID != "" {
    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