Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for Us (0.12 sec)

  1. cmd/signature-v4-utils_test.go

    		expectedResult bool
    	}{
    		{"", "", true},
    		{globalMinioDefaultRegion, "", true},
    		{globalMinioDefaultRegion, "US", true},
    		{"us-west-1", "US", false},
    		{"us-west-1", "us-west-1", true},
    		// "US" was old naming convention for 'us-east-1'.
    		{"US", "US", true},
    	}
    
    	for i, testCase := range testCases {
    		actualResult := isValidRegion(testCase.inputReqRegion, testCase.inputConfRegion)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  2. internal/event/arn_test.go

    	testCases := []struct {
    		arn            ARN
    		expectedResult string
    	}{
    		{ARN{}, ""},
    		{ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:sqs::1:webhook"},
    		{ARN{TargetID{"1", "webhook"}, "us-east-1"}, "arn:minio:sqs:us-east-1:1:webhook"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.arn.String()
    
    		if result != testCase.expectedResult {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  3. internal/lock/lock_windows.go

    	procLockFileEx = modkernel32.NewProc("LockFileEx")
    )
    
    const (
    	// https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx
    	lockFileExclusiveLock   = 2
    	lockFileFailImmediately = 1
    
    	// see https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
    	errLockViolation syscall.Errno = 0x21
    )
    
    // lockedOpenFile is an internal function.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  4. lib/time/mkzip.go

    	})
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := zw.Close(); err != nil {
    		log.Fatal(err)
    	}
    	if len(seen) == 0 {
    		log.Fatalf("did not find any files to add")
    	}
    	if !seen["US/Eastern"] {
    		log.Fatalf("did not find US/Eastern to add")
    	}
    	if err := os.WriteFile(args[0], zb.Bytes(), 0666); err != nil {
    		log.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. cmd/config-current_test.go

    		t.Errorf("Expecting region `us-east-1` found %s", globalSite.Region)
    	}
    
    	// Set new region and verify.
    	config.SetRegion(globalServerConfig, "us-west-1")
    	site, err := config.LookupSite(
    		globalServerConfig[config.SiteSubSys][config.Default],
    		globalServerConfig[config.RegionSubSys][config.Default],
    	)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if site.Region != "us-west-1" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Dec 19 19:10:14 GMT 2022
    - 2K bytes
    - Viewed (0)
  6. internal/config/help.go

    			Optional:    true,
    		},
    		HelpKV{
    			Key:         Comment,
    			Type:        "sentence",
    			Description: DefaultComment,
    			Optional:    true,
    		},
    	}
    
    	RegionHelp = HelpKVS{
    		HelpKV{
    			Key:         RegionName,
    			Type:        "string",
    			Description: `[DEPRECATED] name of the location of the server e.g. "us-west-rack2"`,
    			Optional:    true,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. cmd/signature-v4_test.go

    				"X-Amz-Signature":     "badsignature",
    				"X-Amz-SignedHeaders": "host;x-amz-content-sha256;x-amz-date",
    				"X-Amz-Credential":    fmt.Sprintf(credentialTemplate, "Z7IXGOO6BZ0REAN1Q26I", now.Format(yyyymmdd), "us-west-1"),
    			},
    			region:   "us-west-1",
    			expected: ErrInvalidAccessKeyID,
    		},
    		// (2) Should NOT fail with an invalid region if it doesn't verify it.
    		{
    			queryParams: map[string]string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  8. internal/event/targetid_test.go

    	tid := TargetID{"1", "webhook"}
    	testCases := []struct {
    		tid         TargetID
    		region      string
    		expectedARN ARN
    	}{
    		{tid, "", ARN{TargetID: tid, region: ""}},
    		{tid, "us-east-1", ARN{TargetID: tid, region: "us-east-1"}},
    	}
    
    	for i, testCase := range testCases {
    		arn := testCase.tid.ToARN(testCase.region)
    
    		if arn != testCase.expectedARN {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  9. cmd/post-policy_test.go

    	// Generate the final policy document
    	policy = fmt.Sprintf(policy, dates...)
    
    	region := "us-east-1"
    	// Create a new POST request with success_action_redirect field specified
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. tests/distinct_test.go

    	}
    
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    	r := dryDB.Distinct("u.id, u.*").Table("user_speaks as s").Joins("inner join users as u on u.id = s.user_id").Where("s.language_code ='US' or s.language_code ='ES'").Find(&User{})
    	if !regexp.MustCompile(`SELECT DISTINCT u\.id, u\.\* FROM user_speaks as s inner join users as u`).MatchString(r.Statement.SQL.String()) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Viewed (0)
Back to top