Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,124 for nil (0.03 sec)

  1. internal/grid/grid_types_msgp_test.go

    		return
    	}
    	err = en.WriteInt(z.Num)
    	if err != nil {
    		err = msgp.WrapError(err, "Num")
    		return
    	}
    	// write "String"
    	err = en.Append(0xa6, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.String)
    	if err != nil {
    		err = msgp.WrapError(err, "String")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. cmd/ftp-server-driver.go

    	if bucket == "" {
    		return 0, nil, errors.New("bucket name cannot be empty")
    	}
    
    	clnt, err := driver.getMinIOClient(ctx)
    	if err != nil {
    		return 0, nil, err
    	}
    
    	opts := minio.GetObjectOptions{}
    	obj, err := clnt.GetObject(context.Background(), bucket, object, opts)
    	if err != nil {
    		return 0, nil, err
    	}
    	defer func() {
    		if err != nil && obj != nil {
    			obj.Close()
    		}
    	}()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. cmd/storage-rest-client.go

    	buf, err := rp.MarshalMsg(nil)
    	if err != nil {
    		return nil, err
    	}
    
    	respBody, err := client.call(ctx, storageRESTMethodReadParts, values, bytes.NewReader(buf), -1)
    	defer xhttp.DrainBody(respBody)
    	if err != nil {
    		return nil, err
    	}
    
    	respReader, err := waitForHTTPResponse(respBody)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    
    	rd := msgpNewReader(respReader)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. cmd/tier-last-day-stats_gen.go

    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0007, zb0008 := range z {
    		err = en.WriteString(zb0007)
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		// map header, size 2
    		// write "Bins"
    		err = en.Append(0x82, 0xa4, 0x42, 0x69, 0x6e, 0x73)
    		if err != nil {
    			return
    		}
    		err = en.WriteArrayHeader(uint32(24))
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. cmd/batch-replicate_gen_test.go

    	v := BatchJobReplicateCredentials{}
    	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
    - 14.2K bytes
    - Viewed (0)
  6. cmd/net_test.go

    	}{
    		{"localhost", set.CreateStringSet("127.0.0.1"), nil},
    	}
    
    	for _, testCase := range testCases {
    		ipList, err := getHostIP(testCase.host)
    		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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. istioctl/pkg/admin/istiodconfig.go

    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    		return nil, fmt.Errorf("cannot deserialize response %s", err)
    	}
    	return scopeInfos, nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. internal/event/target/mysql.go

    	if err := target.init(); err != nil {
    		return err
    	}
    
    	_, err := target.isActive()
    	if err != nil {
    		return err
    	}
    
    	if !target.firstPing {
    		if err := target.executeStmts(); err != nil {
    			if IsConnErr(err) {
    				return store.ErrNotConnected
    			}
    			return err
    		}
    	}
    
    	eventData, eErr := target.store.Get(key)
    	if eErr != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. istioctl/pkg/util/configdump/route.go

    }
    
    // GetRouteConfigDump retrieves the route config dump from the ConfigDump
    func (w *Wrapper) GetRouteConfigDump() (*admin.RoutesConfigDump, error) {
    	routeDumpAny, err := w.getSection(routes)
    	if err != nil {
    		return nil, err
    	}
    	routeDump := &admin.RoutesConfigDump{}
    	err = routeDumpAny.UnmarshalTo(routeDump)
    	if err != nil {
    		return nil, err
    	}
    	return routeDump, nil
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  10. cmd/erasure-object_test.go

    		expectedError       error
    	}{
    		{parts1, errs1, 12, 12, parts1SC, nil},
    		{parts2, errs2, 14, 14, parts2SC, nil},
    		{parts3, errs3, 12, 12, parts3SC, nil},
    		{parts4, errs4, 10, 10, parts4SC, nil},
    		{parts5, errs5, 14, 14, parts5SC, nil},
    		{parts6, errs6, 12, 12, parts6SC, nil},
    		{parts7, errs7, 11, 11, parts7SC, nil},
    	}
    	for _, tt := range tests {
    		tt := tt
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top