Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LocationConstraint (0.2 sec)

  1. cmd/api-datatypes.go

    // Used for parsing the location from the request body for Makebucket.
    type createBucketLocationConfiguration struct {
    	XMLName  xml.Name `xml:"CreateBucketConfiguration" json:"-"`
    	Location string   `xml:"LocationConstraint"`
    }
    
    // DeleteObjectsRequest - xml carrying the object key names which needs to be deleted.
    type DeleteObjectsRequest struct {
    	// Element to enable quiet mode for the request
    	Quiet bool
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    	// If the request has no body with content-length set to 0,
    	// we do not have to validate location constraint. Bucket will
    	// be created at default region.
    	locationConstraint := createBucketLocationConfiguration{}
    	err := xmlDecoder(r.Body, &locationConstraint, r.ContentLength)
    	if err != nil && r.ContentLength != 0 {
    		internalLogOnceIf(GlobalContext, err, "location-constraint-xml-parsing")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  3. cmd/handler-utils_test.go

    import (
    	"bytes"
    	"context"
    	"encoding/xml"
    	"io"
    	"net/http"
    	"net/textproto"
    	"os"
    	"reflect"
    	"testing"
    
    	"github.com/minio/minio/internal/config"
    )
    
    // Tests validate bucket LocationConstraint.
    func TestIsValidLocationConstraint(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. cmd/bucket-policy.go

    		"userid":           {username},
    		"username":         {username},
    		"versionid":        {vid},
    		"signatureversion": {signatureVersion},
    		"authType":         {authtype},
    	}
    
    	if lc != "" {
    		args["LocationConstraint"] = []string{lc}
    	}
    
    	cloneHeader := r.Header.Clone()
    	if v := cloneHeader.Get("x-amz-signature-age"); v != "" {
    		args["signatureAge"] = []string{v}
    		cloneHeader.Del("x-amz-signature-age")
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  5. cmd/bucket-handlers_test.go

    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusOK,
    			locationResponse: []byte(`<?xml version="1.0" encoding="UTF-8"?>
    <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"></LocationConstraint>`),
    			errorResponse: APIErrorResponse{},
    			shouldPass:    true,
    		},
    		// Test case - 2.
    		// Tests for signature mismatch error.
    		{
    			bucketName:         bucketName,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
  6. cmd/api-response.go

    )
    
    // LocationResponse - format for location response.
    type LocationResponse struct {
    	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint" json:"-"`
    	Location string   `xml:",chardata"`
    }
    
    // PolicyStatus captures information returned by GetBucketPolicyStatusHandler
    type PolicyStatus struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
Back to top