Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 942 for errC (0.02 sec)

  1. schema/serializer.go

    	fieldValue := reflect.New(field.FieldType)
    
    	if dbValue != nil {
    		var bytes []byte
    		switch v := dbValue.(type) {
    		case []byte:
    			bytes = v
    		case string:
    			bytes = []byte(v)
    		default:
    			bytes, err = json.Marshal(v)
    			if err != nil {
    				return err
    			}
    		}
    
    		if len(bytes) > 0 {
    			err = json.Unmarshal(bytes, fieldValue.Interface())
    		}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 08:45:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. cmd/bucket-targets.go

    		return BucketRemoteArnTypeInvalid{Bucket: bucket}
    	}
    	clnt, err := sys.getRemoteTargetClient(tgt)
    	if err != nil {
    		return BucketRemoteTargetNotFound{Bucket: tgt.TargetBucket, Err: err}
    	}
    	// validate if target credentials are ok
    	exists, err := clnt.BucketExists(ctx, tgt.TargetBucket)
    	if err != nil {
    		switch minio.ToErrorResponse(err).Code {
    		case "NoSuchBucket":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tests/connpool_test.go

    		}
    	}()
    
    	db, err := gorm.Open(mysql.New(mysql.Config{Conn: conn, DisableWithReturning: true}))
    	if err != nil {
    		t.Fatalf("Should open db success, but got %v", err)
    	}
    
    	tx := db.Begin()
    	user := *GetUser("transaction", Config{})
    
    	if err = tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. cmd/object-api-getobjectinfo_test.go

    		}
    		// Failed as expected, but does it fail for the expected reason.
    		if err != nil && !testCase.shouldPass {
    			if testCase.err.Error() != err.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error())
    			}
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  5. cmd/signature-v2_test.go

    func TestDoesPresignedV2SignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	now := UTCNow()
    
    	var (
    		accessKey = globalActiveCred.AccessKey
    		secretKey = globalActiveCred.SecretKey
    	)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  6. internal/s3select/jstream/decoder_test.go

    		t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value)
    	}
    
    	err := decoder.Err()
    	t.Logf("got error: %s", err)
    	if err == nil {
    		t.Fatalf("missing expected decoder error")
    	}
    
    	derr, ok := err.(DecoderError)
    	if !ok {
    		t.Fatalf("expected error of type DecoderError, got %T", err)
    	}
    
    	if derr.ReaderErr() == nil {
    		t.Fatalf("missing expected underlying reader error")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. schema/field.go

    				schema.err = fmt.Errorf("failed to parse %s as default value for uint, got error: %v", field.DefaultValue, err)
    			}
    		}
    	case reflect.Float32, reflect.Float64:
    		field.DataType = Float
    		if field.HasDefaultValue && !skipParseDefaultValue {
    			if field.DefaultValueInterface, err = strconv.ParseFloat(field.DefaultValue, 64); err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  8. cmd/xl-storage_windows_test.go

    	dir := t.TempDir()
    
    	fs, err := newLocalXLStorage(dir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Create volume to use in conjunction with other StorageAPI's file API(s)
    	err = fs.MakeVol(context.Background(), "voldir")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = fs.AppendFile(context.Background(), "voldir", "/file", []byte("hello"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. src/cmd/buildid/buildid.go

    	}
    
    	if len(matches) == 0 {
    		return
    	}
    
    	f, err = os.OpenFile(file, os.O_RDWR, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := buildid.Rewrite(f, matches, newID); err != nil {
    		log.Fatal(err)
    	}
    	if err := f.Close(); err != nil {
    		log.Fatal(err)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jun 21 19:58:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. docs/debugging/s3-verify/main.go

    	u, err := url.Parse(endpoint)
    	if err != nil {
    		return nil, err
    	}
    
    	secure := strings.EqualFold(u.Scheme, "https")
    	transport, err := minio.DefaultTransport(secure)
    	if err != nil {
    		return nil, err
    	}
    	if insecure {
    		// skip TLS verification
    		transport.TLSClientConfig.InsecureSkipVerify = true
    	}
    
    	clnt, err := minio.New(u.Host, &minio.Options{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 22 15:12:47 UTC 2022
    - 8.4K bytes
    - Viewed (0)
Back to top