Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseBool (0.13 sec)

  1. cmd/peer-rest-server.go

    	}
    
    	accessKey := mss.Get(peerRESTUser)
    	if accessKey == "" {
    		return np, grid.NewRemoteErr(errors.New("username is missing"))
    	}
    
    	temp, err := strconv.ParseBool(mss.Get(peerRESTUserTemp))
    	if err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	userType := regUser
    	if temp {
    		userType = stsUser
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		return
    	}
    
    	forceDelete := false
    	if value := r.Header.Get(xhttp.MinIOForceDelete); value != "" {
    		var err error
    		forceDelete, err = strconv.ParseBool(value)
    		if err != nil {
    			apiErr := errorCodes.ToAPIErr(ErrInvalidRequest)
    			apiErr.Description = err.Error()
    			writeErrorResponse(ctx, w, apiErr, r.URL)
    			return
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	AssertEqual(t, defVal, "null")
    	AssertEqual(t, ok, true)
    
    	columnType2, err := findColumnType(tableName, "active")
    	AssertEqual(t, err, nil)
    
    	defVal, ok = columnType2.DefaultValue()
    	bv, _ := strconv.ParseBool(defVal)
    	AssertEqual(t, bv, false)
    	AssertEqual(t, ok, true)
    
    	// default 'null' -> 'null'
    	session := DB.Session(&gorm.Session{Logger: Tracer{
    		Logger: DB.Config.Logger,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top