Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for Us (0.14 sec)

  1. internal/arn/arn_test.go

    				Service:      "iam",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio:iam:us-east-1::role/my-role",
    		},
    		{
    			arn: ARN{
    				Partition:    "minio",
    				Service:      "",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio::us-east-1::role/my-role",
    		},
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. internal/event/config_test.go

    		{config1, "", []ARN{{TargetID{"1", "webhook"}, ""}}},
    		{config2, "us-east-1", []ARN{{TargetID{"1", "webhook"}, "us-east-1"}}},
    		{config2, "", []ARN{{TargetID{"1", "webhook"}, ""}}},
    		{config3, "us-east-1", []ARN{{TargetID{"1", "webhook"}, "us-east-1"}, {TargetID{"2", "amqp"}, "us-east-1"}}},
    		{config3, "", []ARN{{TargetID{"1", "webhook"}, ""}, {TargetID{"2", "amqp"}, ""}}},
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 29K bytes
    - Viewed (0)
  3. cmd/signature-v4-parser_test.go

    				UTCNow().Format(yyyymmdd),
    				"us-west-1",
    				"ABCD",
    				"ABCD"),
    			expectedCredentials: credentialHeader{},
    			expectedErrCode:     ErrInvalidServiceS3,
    		},
    		// Test Case - 7.
    		// Test case with invalid region.
    		{
    			inputCredentialStr: generateCredentialStr(
    				"Z7IXGOO6BZ0REAN1Q26I",
    				UTCNow().Format(yyyymmdd),
    				"us-west-2",
    				"s3",
    				"aws4_request"),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  4. internal/config/lambda/event/arn_test.go

    	testCases := []struct {
    		arn            ARN
    		expectedResult string
    	}{
    		{ARN{}, ""},
    		{ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:s3-object-lambda::1:webhook"},
    		{ARN{TargetID{"1", "webhook"}, "us-east-1"}, "arn:minio:s3-object-lambda:us-east-1:1:webhook"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.arn.String()
    
    		if result != testCase.expectedResult {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  5. internal/disk/stat_windows.go

    import (
    	"errors"
    	"fmt"
    	"os"
    	"syscall"
    	"unsafe"
    
    	"golang.org/x/sys/windows"
    )
    
    var (
    	kernel32 = windows.NewLazySystemDLL("kernel32.dll")
    
    	// GetDiskFreeSpaceEx - https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    	// Retrieves information about the amount of space that is available on a disk volume,
    	// which is the total amount of space, the total amount of free space, and the total
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver_test.go

    	uid := fixture.uid
    
    	m, fds := readRequest(t, ztunClient)
    	// we got am essage from ztun, so it should have observed us being connected
    	mt.Assert(ztunnelConnected.Name(), nil, monitortest.Exactly(1))
    
    	// we should get the fd to dev null. note that we can't assert the fd number
    	// as the kernel may have given us a different number that refers to the same file.
    	assert.Equal(t, len(fds), 1)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. internal/config/config_test.go

    			}
    		})
    	}
    }
    
    func TestValidRegion(t *testing.T) {
    	tests := []struct {
    		name    string
    		success bool
    	}{
    		{name: "us-east-1", success: true},
    		{name: "us_east", success: true},
    		{name: "helloWorld", success: true},
    		{name: "-fdslka", success: false},
    		{name: "^00[", success: false},
    		{name: "my region", success: false},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  8. internal/config/lambda/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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/slice.go

    	//	#define A #define B(x) x
    	// and
    	//	#define A #define B (x) x
    	// The first definition of B has an argument, the second doesn't. Because we let
    	// text/scanner strip the blanks for us, this is extremely rare, hard to fix, and not worth it.
    	return s.pos
    }
    
    func (s *Slice) Close() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  10. istioctl/pkg/util/proto/messageslice.go

    // limitations under the License.
    
    package proto
    
    import (
    	"bytes"
    
    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
Back to top