Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 857 for NIL (0.03 sec)

  1. cmd/batch-rotate_gen_test.go

    	v := BatchJobKeyRotateEncryption{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 29 18:27:23 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_gen_test.go

    	v := xlMetaDataDirDecoder{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 18 20:15:22 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  3. cmd/object-api-listobjects_test.go

    		{testBuckets[5], "foo/201910/1112", "content", nil},
    		{testBuckets[5], "foo/201910/2112", "content", nil},
    		{testBuckets[5], "foo/201910_txt", "content", nil},
    		{testBuckets[5], "201910/foo/bar/xl.meta/1.txt", "content", nil},
    		{testBuckets[6], "aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "ccc", "content", nil},
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    		switch {
    		case err == nil && test.expError != nil:
    			t.Errorf("Test %d: Expected error %v but got none.", i, test.expError)
    		case err == nil && n != int64(test.length):
    			t.Errorf("Test %d: %d bytes were expected, but %d were written", i, test.length, n)
    		case err == nil && !bytes.Equal(data[test.offset:test.offset+test.length], buffer):
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  5. internal/handlers/forwarder.go

    		req.Header.Set(xForwardedHost, req.Host)
    	}
    }
    
    func forwardedPort(req *http.Request) string {
    	if req == nil {
    		return ""
    	}
    
    	if _, port, err := net.SplitHostPort(req.Host); err == nil && port != "" {
    		return port
    	}
    
    	if req.TLS != nil {
    		return "443"
    	}
    
    	return "80"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. cmd/erasure.go

    		i := i
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    
    			disk := disks[i]
    			if disk == nil {
    				infos[i].Error = errDiskNotFound.Error()
    				return
    			}
    
    			di, err := disk.DiskInfo(context.Background(), DiskInfoOptions{})
    			infos[i] = di
    			if err != nil {
    				// - Do not consume disks which are not reachable
    				//   unformatted or simply not accessible for some reason.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. cmd/format-erasure.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	version, err := formatGetBackendErasureVersion(formatData)
    	if err != nil {
    		return nil, nil, fmt.Errorf("Drive %s: %w", export, err)
    	}
    
    	migrate := func(formatPath string, formatData []byte) ([]byte, fs.FileInfo, error) {
    		if err = os.WriteFile(formatPath, formatData, 0o666); err != nil {
    			return nil, nil, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. cmd/bucket-policy-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Read bucket access policy.
    	config, err := globalPolicySys.Get(bucket)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	configData, err := json.Marshal(config)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. internal/kms/secret-key.go

    			return nil, err
    		}
    	default:
    		return nil, ErrDecrypt
    	}
    
    	associatedData, _ := req.AssociatedData.MarshalText()
    	plaintext, err := aead.Open(nil, nonce, ciphertext, associatedData)
    	if err != nil {
    		return nil, ErrDecrypt
    	}
    	return plaintext, nil
    }
    
    func (secretKey) MAC(context.Context, *MACRequest) ([]byte, error) {
    	return nil, ErrNotSupported
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. cmd/bootstrap-peer-server.go

    func (client *bootstrapRESTClient) Verify(ctx context.Context, srcCfg *ServerSystemConfig) (err error) {
    	if newObjectLayerFn() != nil {
    		return nil
    	}
    
    	recvCfg, err := serverVerifyHandler.Call(ctx, client.gridConn, grid.NewMSS())
    	if err != nil {
    		return err
    	}
    	// We do not need the response after returning.
    	defer serverVerifyHandler.PutResponse(recvCfg)
    
    	return srcCfg.Diff(recvCfg)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top