Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 859 for err (0.01 sec)

  1. internal/crypto/sse-kms.go

    	}
    
    	var ctx kms.Context
    	if context, ok := h[xhttp.AmzServerSideEncryptionKmsContext]; ok {
    		b, err := base64.StdEncoding.DecodeString(context[0])
    		if err != nil {
    			return "", nil, err
    		}
    
    		json := jsoniter.ConfigCompatibleWithStandardLibrary
    		if err := json.Unmarshal(b, &ctx); err != nil {
    			return "", nil, err
    		}
    	}
    
    	keyID := h.Get(xhttp.AmzServerSideEncryptionKmsID)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. cmd/kms-handlers_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = globalIAMSys.PolicyDBSet(ctx, accessKey, testKMSPolicyName, regUser, false)
    		if err != nil {
    			t.Fatal(err)
    		}
    	} else {
    		err = globalIAMSys.DeletePolicy(ctx, testKMSPolicyName, false)
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = globalIAMSys.PolicyDBSet(ctx, accessKey, "", regUser, false)
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. src/bytes/boundary_test.go

    	pagesize := syscall.Getpagesize()
    	b, err := syscall.Mmap(0, 0, 3*pagesize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANONYMOUS|syscall.MAP_PRIVATE)
    	if err != nil {
    		t.Fatalf("mmap failed %s", err)
    	}
    	err = syscall.Mprotect(b[:pagesize], syscall.PROT_NONE)
    	if err != nil {
    		t.Fatalf("mprotect low failed %s\n", err)
    	}
    	err = syscall.Mprotect(b[2*pagesize:], syscall.PROT_NONE)
    	if err != nil {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Nov 30 20:05:58 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. cmd/common-main_test.go

    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.content)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			value, err := readFromSecret(tmpfile.Name())
    			if err != nil && !testCase.expectedErr {
    				t.Error(err)
    			}
    			if err == nil && testCase.expectedErr {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. internal/auth/credentials_test.go

    			}
    		}
    	}
    }
    
    func TestCredentialsEqual(t *testing.T) {
    	cred, err := GetNewCredentials()
    	if err != nil {
    		t.Fatalf("Failed to get a new credential: %v", err)
    	}
    	cred2, err := GetNewCredentials()
    	if err != nil {
    		t.Fatalf("Failed to get a new credential: %v", err)
    	}
    	testCases := []struct {
    		cred           Credentials
    		ccred          Credentials
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. cmd/peer-s3-client.go

    	for idx, client := range sys.peerClients {
    		idx := idx
    		client := client
    		g.Go(func() error {
    			if client == nil {
    				return errPeerOffline
    			}
    			res, err := client.HealBucket(ctx, bucket, opts)
    			if err != nil {
    				return err
    			}
    			healBucketResults[idx] = res
    			return nil
    		}, idx)
    	}
    
    	errs = g.Wait()
    
    	for poolIdx := 0; poolIdx < sys.poolsCount; poolIdx++ {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. internal/config/identity/ldap/config.go

    		isEnableFlagExplicitlySet = true
    		l.LDAP.Enabled, err = config.ParseBool(v)
    		if err != nil {
    			return l, err
    		}
    	}
    
    	l.stsExpiryDuration = defaultLDAPExpiry
    
    	// LDAP connection configuration
    	if v := getCfgVal(ServerInsecure); v != "" {
    		l.LDAP.ServerInsecure, err = config.ParseBool(v)
    		if err != nil {
    			return l, err
    		}
    	}
    	if v := getCfgVal(ServerStartTLS); v != "" {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Aug 07 12:59:47 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. internal/http/check_port_test.go

    	}
    
    	for _, testCase := range testCases {
    		err := CheckPortAvailability(testCase.host, strconv.Itoa(testCase.port), TCPOptions{})
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    			t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
    		case testCase.expectedErr.Error() != err.Error():
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 03 21:12:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. internal/grid/manager.go

    	defer conn.Close()
    	writeErr := func(err error) {
    		if err == nil {
    			return
    		}
    		if errors.Is(err, io.EOF) {
    			return
    		}
    		gridLogOnceIf(ctx, err, remoteAddr)
    		resp := connectResp{
    			ID:             m.ID,
    			Accepted:       false,
    			RejectedReason: err.Error(),
    		}
    		if b, err := resp.MarshalMsg(nil); err == nil {
    			msg := message{
    				Op:      OpConnectResponse,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. cmd/object-api-putobject_test.go

    	object := "minio-object"
    
    	// Create bucket.
    	err := obj.MakeBucket(context.Background(), bucket, MakeBucketOptions{})
    	if err != nil {
    		// Failed to create newbucket, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    
    	// Creating a dummy bucket for tests.
    	err = obj.MakeBucket(context.Background(), "unused-bucket", MakeBucketOptions{})
    	if err != nil {
    		// Failed to create newbucket, abort.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top