- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for LocationConstraint (0.23 sec)
-
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
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 14 07:26:50 UTC 2024 - 3K bytes - Viewed (0) -
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")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 15.5K bytes - Viewed (0) -
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) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 6.1K bytes - Viewed (0) -
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,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 39.8K bytes - Viewed (0) -
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") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8K bytes - Viewed (0) -
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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 19:27:06 UTC 2024 - 33.4K bytes - Viewed (0)