Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for example (0.19 sec)

  1. cmd/sts-handlers_test.go

    		c.Fatalf("policy add error: %v", err)
    	}
    
    	ldapID := cr.LDAPIdentity{
    		Client:       s.TestSuiteCommon.client,
    		STSEndpoint:  s.endPoint,
    		LDAPUsername: "svc.algorithm",
    		LDAPPassword: "example",
    	}
    
    	_, err = ldapID.Retrieve()
    	if err == nil {
    		c.Fatalf("Expected to fail to create STS cred with no associated policy!")
    	}
    
    	mustNormalizeDN := func(dn string) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    func isSameType(obj1, obj2 interface{}) bool {
    	return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
    }
    
    // TestServer encapsulates an instantiation of a MinIO instance with a temporary backend.
    // Example usage:
    //
    //	s := StartTestServer(t,"Erasure")
    //	defer s.Stop()
    type TestServer struct {
    	Root         string
    	Disks        EndpointServerPools
    	AccessKey    string
    	SecretKey    string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    	}
    
    	s.RLock()
    	formatLegacy := s.formatLegacy
    	s.RUnlock()
    
    	dstBuf, err := xioutil.ReadFile(dstFilePath)
    	if err != nil {
    		// handle situations when dstFilePath is 'file'
    		// for example such as someone is trying to
    		// upload an object such as `prefix/object/xl.meta`
    		// where `prefix/object` is already an object
    		if isSysErrNotDir(err) && runtime.GOOS != globalWindowsOSName {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/iam.go

    	// Calculate the waitInterval between periodic refreshes so that each server
    	// independently picks a (uniformly distributed) random time in an interval
    	// of size = baseInterval.
    	//
    	// For example:
    	//
    	//    - if baseInterval=10s, then 5s <= waitInterval() < 15s
    	//
    	//    - if baseInterval=10m, then 5m <= waitInterval() < 15m
    	waitInterval := func() time.Duration {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. internal/s3select/select_test.go

    			wantResult: `{"_1":3}`,
    		},
    		{
    			name:       "date_diff_month_neg",
    			query:      `SELECT date_diff(MONTH, '2020-01-20T', '2019-10-20T') FROM S3Object LIMIT 1`,
    			wantResult: `{"_1":-3}`,
    		},
    		// Examples from https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-date.html#s3-glacier-select-sql-reference-date-diff
    		{
    			name:       "date_diff_year",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    		{
    			[]CompletePart{
    				{ETag: validPartMD5, PartNumber: 6},
    			},
    		},
    	}
    	s3MD5 := getCompleteMultipartMD5(inputParts[3].parts)
    
    	// Test cases with sample input values for CompleteMultipartUpload.
    	testCases := []struct {
    		bucket   string
    		object   string
    		uploadID string
    		parts    []CompletePart
    		// Expected output of CompleteMultipartUpload.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe.go

    		Short:   "Describe pods and their Istio configuration [kube-only]",
    		Long: `Analyzes pod, its Services, DestinationRules, and VirtualServices and reports
    the configuration objects that affect that pod.`,
    		Example: `  istioctl experimental describe pod productpage-v1-c7765c886-7zzd4`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			describeNamespace = ctx.NamespaceOrDefault(ctx.Namespace())
    			if len(args) != 1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    	}
    }
    
    func TestNoUnreadRuneAfterPeek(t *testing.T) {
    	br := NewReader(strings.NewReader("example"))
    	br.ReadRune()
    	br.Peek(1)
    	if err := br.UnreadRune(); err == nil {
    		t.Error("UnreadRune didn't fail after Peek")
    	}
    }
    
    func TestNoUnreadByteAfterPeek(t *testing.T) {
    	br := NewReader(strings.NewReader("example"))
    	br.ReadByte()
    	br.Peek(1)
    	if err := br.UnreadByte(); err == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    // quoted region, and are removed from the resulting substrings. If a quote in s
    // isn't closed err will be set and r will have the unclosed argument as the
    // last element. The backslash is used for escaping.
    //
    // For example, the following string:
    //
    //	`a b:"c d" 'e''f'  "g\""`
    //
    // Would be parsed as:
    //
    //	[]string{"a", "b:c d", "ef", `g"`}
    func splitQuoted(s string) (r []string, err error) {
    	var args []string
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle_test.go

    			expectedValidationErr: errLifecycleDuplicateID,
    		},
    		// Missing <Tag> in <And>
    		{
    			inputConfig:           `<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Rule><ID>sample-rule-2</ID><Filter><And><Prefix>/a/b/c</Prefix></And></Filter><Status>Enabled</Status><Expiration><Days>1</Days></Expiration></Rule></LifecycleConfiguration>`,
    			expectedParsingErr:    nil,
    			expectedValidationErr: errXMLNotWellFormed,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top