Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 938 for NIL (0.03 sec)

  1. schema/schema.go

    			schema.FieldsWithDefaultDBValue = append(schema.FieldsWithDefaultDBValue, field)
    		}
    	}
    
    	if field := schema.PrioritizedPrimaryField; field != nil {
    		switch field.GORMDataType {
    		case Int, Uint:
    			if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok {
    				if !field.HasDefaultValue || field.DefaultValueInterface != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cache.go

    }
    
    func newClusterStorageInfoCache() *cachevalue.Cache[storageMetrics] {
    	loadStorageInfo := func(ctx context.Context) (v storageMetrics, err error) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return storageMetrics{}, nil
    		}
    		storageInfo := objLayer.StorageInfo(GlobalContext, true)
    		onlineDrives, offlineDrives := getOnlineOfflineDisksStats(storageInfo.Disks)
    		totalDrives := onlineDrives.Merge(offlineDrives)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. misc/cgo/gmp/gmp.go

    	defer C.free(unsafe.Pointer(p))
    	if C.mpz_set_str(&z.i[0], p, C.int(base)) < 0 {
    		return os.ErrInvalid
    	}
    	return nil
    }
    
    // String returns the decimal representation of z.
    func (z *Int) String() string {
    	if z == nil {
    		return "nil"
    	}
    	z.doinit()
    	p := C.mpz_get_str(nil, 10, &z.i[0])
    	s := C.GoString(p)
    	C.free(unsafe.Pointer(p))
    	return s
    }
    
    func (z *Int) destroy() {
    	if z.init {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  4. internal/config/identity/ldap/config.go

    		l.LDAP.Enabled = false
    		return l, valResult
    	}
    
    	return l, nil
    }
    
    // GetConfigList - returns a list of LDAP configurations.
    func (l *Config) GetConfigList(s config.Config) ([]madmin.IDPListItem, error) {
    	ldapConfigs, err := s.GetAvailableTargets(config.IdentityLDAPSubSys)
    	if err != nil {
    		return nil, err
    	}
    
    	// For now, ldapConfigs will only have a single entry for the default
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 07 12:59:47 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. cmd/metacache-entries_test.go

    	for i, xl := range inputs {
    		xl.sortByModTime()
    		var err error
    		entry := metaCacheEntry{
    			name: "testobject",
    		}
    		entry.metadata, err = xl.AppendTo(nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		inputSerialized[i] = entry
    	}
    
    	tests := []struct {
    		name         string
    		m            metaCacheEntries
    		r            metadataResolutionParams
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  6. cmd/service.go

    	globalServiceFreezeMu.Lock()
    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. tests/helper_test.go

    		})
    
    		sort.Slice(expect.Pets, func(i, j int) bool {
    			return expect.Pets[i].ID > expect.Pets[j].ID
    		})
    
    		for idx, pet := range user.Pets {
    			if pet == nil || expect.Pets[idx] == nil {
    				t.Errorf("pets#%v should equal, expect: %v, got %v", idx, expect.Pets[idx], pet)
    			} else {
    				doCheckPet(t, *pet, *expect.Pets[idx], unscoped)
    			}
    		}
    	})
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. tests/update_test.go

    				return err
    			}
    			if err := tx.Preload("Token").First(&newOwner, owner.ID).Error; err != nil {
    				return err
    			}
    			return nil
    		}); err != nil {
    			return nil, err
    		}
    		return &newOwner, nil
    	}
    
    	owner := TokenOwner{
    		Name:  "user",
    		Token: Token{Content: "token"},
    	}
    	o1, err := saveTokenOwner(&owner)
    	if err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  9. internal/bucket/encryption/bucket-sse-config.go

    func ParseBucketSSEConfig(r io.Reader) (*BucketSSEConfig, error) {
    	var config BucketSSEConfig
    	err := xml.NewDecoder(r).Decode(&config)
    	if err != nil {
    		return nil, err
    	}
    
    	// Validates server-side encryption config rules
    	// Only one rule is allowed on AWS S3
    	if len(config.Rules) != 1 {
    		return nil, errors.New("only one server-side encryption rule is allowed at a time")
    	}
    
    	for _, rule := range config.Rules {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  10. internal/config/heal/heal.go

    	enabled, err := config.ParseBool(s)
    	if err == nil {
    		switch enabled {
    		case true:
    			return 0, nil
    		case false:
    			return -1, nil
    		}
    	}
    
    	// Try to parse as a number of months
    	if !strings.HasSuffix(s, "m") {
    		return -1, errors.New("unknown format")
    	}
    
    	months, err := strconv.Atoi(strings.TrimSuffix(s, "m"))
    	if err != nil {
    		return -1, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top