Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,124 for nil (0.02 sec)

  1. internal/grid/msg_gen_test.go

    	v := connectReq{}
    	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 Jul 25 21:07:21 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. internal/config/certs.go

    		if x509Cert, err = x509.ParseCertificate(pemBlock.Bytes); err != nil {
    			return nil, ErrTLSUnexpectedData(nil).Msgf("Failed to parse `%s`: %s", certFile, err.Error())
    		}
    
    		x509Certs = append(x509Certs, x509Cert)
    	}
    
    	if len(x509Certs) == 0 {
    		return nil, ErrTLSUnexpectedData(nil).Msgf("Empty public certificate file %s", certFile)
    	}
    
    	return x509Certs, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. cmd/admin-handlers-site-replication.go

    	if objectAPI == nil {
    		return
    	}
    
    	var sites []madmin.PeerSite
    	if err := parseJSONBody(ctx, r.Body, &sites, cred.SecretKey); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	opts := getSRAddOptions(r)
    	status, err := globalSiteReplicationSys.AddPeerClusters(ctx, sites, opts)
    	if err != nil {
    		adminLogIf(ctx, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. internal/grid/msg.go

    			return nil, nil, fmt.Errorf("want crc len 4, got %v", len(h))
    		}
    		got := uint32(xxh3.Hash(b[:len(b)-hashLen]))
    		want := binary.LittleEndian.Uint32(h[len(h)-hashLen:])
    		if got != want {
    			return nil, nil, fmt.Errorf("crc mismatch: 0x%08x (given) != 0x%08x (bytes)", want, got)
    		}
    		h = h[:len(h)-hashLen]
    	}
    	// Extract subroute if any.
    	if m.Flags&FlagSubroute != 0 {
    		if len(h) < 32 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. internal/kms/kes.go

    	if err != nil {
    		return nil, err
    	}
    
    	plaintext, err := c.client.Decrypt(context.Background(), req.Name, req.Ciphertext, aad)
    	if err != nil {
    		if errors.Is(err, kes.ErrKeyNotFound) {
    			return nil, ErrKeyNotFound
    		}
    		if errors.Is(err, kes.ErrDecrypt) {
    			return nil, ErrDecrypt
    		}
    		if errors.Is(err, kes.ErrNotAllowed) {
    			return nil, ErrPermission
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    						}
    					} else if err != nil {
    						fmt.Println("Error:", err)
    					}
    					return nil
    				})
    				if err != nil {
    					return nil, err
    				}
    				enc := json.NewEncoder(buf)
    				if err := enc.Encode(struct {
    					Versions []version
    				}{Versions: versions}); err != nil {
    					return nil, err
    				}
    				data = b
    			default:
    				return nil, fmt.Errorf("unknown metadata version %d", minor)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. cmd/streaming-v4-unsigned.go

    				return errMalformedEncoding
    			}
    			if err != nil {
    				return err
    			}
    		}
    		return nil
    	}
    	var size int
    	for {
    		b, err := cr.reader.ReadByte()
    		if err == io.EOF {
    			err = io.ErrUnexpectedEOF
    		}
    		if err != nil {
    			cr.err = err
    			return n, cr.err
    		}
    		if b == '\r' { // \r\n denotes end of size.
    			err := mustRead('\n')
    			if err != nil {
    				cr.err = err
    				return n, cr.err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. internal/cachevalue/cache_test.go

    	t1, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	t2, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	if !t1.Equal(t2) {
    		t.Fatalf("expected time to be equal: %s != %s", t1, t2)
    	}
    
    	time.Sleep(3 * time.Second)
    
    	t3, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4.go

    		} else if err == bufio.ErrBufferFull {
    			err = errLineTooLong
    		}
    		return nil, nil, err
    	}
    	if len(buf) >= maxLineLength {
    		return nil, nil, errLineTooLong
    	}
    	// Parse s3 specific chunk extension and fetch the values.
    	hexChunkSize, hexChunkSignature := parseS3ChunkExtension(buf)
    	return hexChunkSize, hexChunkSignature, nil
    }
    
    // trimTrailingWhitespace - trim trailing white space.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. cni/pkg/log/uds.go

    		if err := l.loggingServer.Close(); err != nil {
    			log.Errorf("CNI log server terminated with error: %v", err)
    		} else {
    			log.Debug("CNI log server terminated")
    		}
    	}()
    
    	return nil
    }
    
    func (l *UDSLogger) handleLog(w http.ResponseWriter, req *http.Request) {
    	if req.Body == nil {
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top