Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for Oregon (0.23 sec)

  1. cmd/signature-v4-parser.go

    	}
    
    	cred.scope.region = credElements[1]
    	// Verify if region is valid.
    	sRegion := cred.scope.region
    	// Region is set to be empty, we use whatever was sent by the
    	// request and proceed further. This is a work-around to address
    	// an important problem for ListBuckets() getting signed with
    	// different regions.
    	if region == "" {
    		region = sRegion
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  2. internal/event/config.go

    }
    
    // Validate - checks whether queue has valid values or not.
    func (q Queue) Validate(region string, targetList *TargetList) error {
    	if q.ARN.region == "" {
    		if !targetList.Exists(q.ARN.TargetID) {
    			return &ErrARNNotFound{q.ARN}
    		}
    		return nil
    	}
    
    	if region != "" && q.ARN.region != region {
    		return &ErrUnknownRegion{q.ARN.region}
    	}
    
    	if !targetList.Exists(q.ARN.TargetID) {
    		return &ErrARNNotFound{q.ARN}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4.go

    	}
    
    	cred, _, errCode = checkKeyValid(r, signV4Values.Credential.accessKey)
    	if errCode != ErrNone {
    		return cred, "", "", time.Time{}, errCode
    	}
    
    	// Verify if region is valid.
    	region = signV4Values.Credential.scope.region
    
    	// Extract date, if not present throw error.
    	var dateStr string
    	if dateStr = req.Header.Get("x-amz-date"); dateStr == "" {
    		if dateStr = r.Header.Get("Date"); dateStr == "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. cmd/handler-utils.go

    	if r == nil {
    		return nil
    	}
    
    	region := globalSite.Region
    	cred := getReqAccessCred(r, region)
    
    	principalID := cred.AccessKey
    	if cred.ParentUser != "" {
    		principalID = cred.ParentUser
    	}
    
    	// Success.
    	m := map[string]string{
    		"region":          region,
    		"principalId":     principalID,
    		"sourceIPAddress": handlers.GetSourceIP(r),
    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)
  5. cmd/post-policy_test.go

    	t := UTCNow()
    	region := "us-east-1"
    	policy := buildGenericPolicy(t, accessKey, region, bucketName, objectName, true)
    	return newPostRequestV4Generic(endPoint, bucketName, objectName, objData, accessKey, secretKey, region, t, policy, nil, false, false, false)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. cmd/api-response.go

    	}
    
    	switch err.Code {
    	case "InvalidRegion":
    		err.Description = fmt.Sprintf("Region does not match; expecting '%s'.", globalSite.Region)
    	case "AuthorizationHeaderMalformed":
    		err.Description = fmt.Sprintf("The authorization header is malformed; the region is wrong; expecting '%s'.", globalSite.Region)
    	}
    
    	// Similar check to http.checkWriteHeaderCode
    	if err.HTTPStatusCode < 100 || err.HTTPStatusCode > 999 {
    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)
  7. cmd/signature-v4.go

    // returns ErrNone if the signature matches.
    func doesPolicySignatureV4Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	// Server region.
    	region := globalSite.Region
    
    	// Parse credential tag.
    	credHeader, s3Err := parseCredentialHeader("Credential="+formValues.Get(xhttp.AmzCredential), region, serviceS3)
    	if s3Err != ErrNone {
    		return auth.Credentials{}, s3Err
    	}
    
    	r := &http.Request{Header: formValues}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  8. cmd/auth-handler_test.go

    		{mustNewSignedRequest(http.MethodGet, "http://127.0.0.1:9000", 0, nil, t), ErrNone},
    	}
    
    	// Validates all testcases.
    	for i, testCase := range testCases {
    		s3Error := isReqAuthenticated(ctx, testCase.req, globalSite.Region, serviceS3)
    		if s3Error != testCase.s3Error {
    			if _, err := io.ReadAll(testCase.req.Body); toAPIErrorCode(ctx, err) != testCase.s3Error {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. internal/arn/arn.go

    		Partition:    arnPartitionMinio,
    		Service:      arnServiceIAM,
    		Region:       serverRegion,
    		ResourceType: arnResourceTypeRole,
    		ResourceID:   resourceID,
    	}, nil
    }
    
    // String - returns string representation of the ARN.
    func (arn ARN) String() string {
    	return strings.Join(
    		[]string{
    			arnPrefixArn,
    			arn.Partition,
    			arn.Service,
    			arn.Region,
    			"", // account-id is always empty in this implementation
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  10. internal/config/lambda/event/arn.go

    	"strings"
    )
    
    // ARN - SQS resource name representation.
    type ARN struct {
    	TargetID
    	region string
    }
    
    // String - returns string representation.
    func (arn ARN) String() string {
    	if arn.TargetID.ID == "" && arn.TargetID.Name == "" && arn.region == "" {
    		return ""
    	}
    
    	return "arn:minio:s3-object-lambda:" + arn.region + ":" + arn.TargetID.String()
    }
    
    // ParseARN - parses string to ARN.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.6K bytes
    - Viewed (0)
Back to top