Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 857 for NIL (0.04 sec)

  1. scan.go

    	if db.Statement.Schema != nil {
    		for idx, name := range columns {
    			if field := db.Statement.Schema.LookUpField(name); field != nil {
    				values[idx] = reflect.New(reflect.PtrTo(field.FieldType)).Interface()
    				continue
    			}
    			values[idx] = new(interface{})
    		}
    	} else if len(columnTypes) > 0 {
    		for idx, columnType := range columnTypes {
    			if columnType.ScanType() != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. internal/crypto/sse-s3.go

    		if err != nil {
    			return nil, err
    		}
    		keys = append(keys, key)
    	}
    	return keys, nil
    }
    
    // CreateMetadata encodes the sealed object key into the metadata and returns
    // the modified metadata. If the keyID and the kmsKey is not empty it encodes
    // both into the metadata as well. It allocates a new metadata map if metadata
    // is nil.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. internal/store/batch.go

    func (b *Batch[I]) Add(item I) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		if b.store == nil {
    			return ErrBatchFull
    		}
    		// commit batch to store
    		if err := b.commit(); err != nil {
    			return err
    		}
    	}
    
    	b.items = append(b.items, item)
    	return nil
    }
    
    // Len returns the no of items in the batch
    func (b *Batch[_]) Len() int {
    	b.Lock()
    	defer b.Unlock()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. cmd/endpoint.go

    		endpoint, err := NewEndpoint(poolsLayout[0].layout[0][0])
    		if err != nil {
    			return nil, setupType, err
    		}
    		if err := endpoint.UpdateIsLocal(); err != nil {
    			return nil, setupType, err
    		}
    		if endpoint.Type() != PathEndpointType {
    			return nil, setupType, config.ErrInvalidEndpoint(nil).Msg("use path style endpoint for single node setup")
    		}
    
    		endpoint.SetPoolIndex(0)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  5. internal/bucket/replication/filter.go

    	if err := e.EncodeToken(start); err != nil {
    		return err
    	}
    
    	switch {
    	case !f.And.isEmpty():
    		if err := e.EncodeElement(f.And, xml.StartElement{Name: xml.Name{Local: "And"}}); err != nil {
    			return err
    		}
    	case !f.Tag.IsEmpty():
    		if err := e.EncodeElement(f.Tag, xml.StartElement{Name: xml.Name{Local: "Tag"}}); err != nil {
    			return err
    		}
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. cmd/metrics-v3-cluster-usage.go

    func loadClusterUsageObjectMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	dataUsageInfo, err := c.dataUsageInfo.Get()
    	if err != nil {
    		metricsLogIf(ctx, err)
    		return nil
    	}
    
    	// data usage has not captured any data yet.
    	if dataUsageInfo.LastUpdate.IsZero() {
    		return nil
    	}
    
    	var (
    		clusterSize               uint64
    		clusterBuckets            uint64
    		clusterObjectsCount       uint64
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 14 18:11:42 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. tests/callbacks_test.go

    			results:   []string{"c5", "c1", "c2", "c3", "c4"},
    		},
    	}
    
    	for idx, data := range datas {
    		db, err := gorm.Open(nil, nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		callbacks := db.Callback()
    
    		for _, c := range data.callbacks {
    			var v interface{} = callbacks.Create()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom_test.go

    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
    	pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...)
    
    	// Everything is fine, should return nil
    	objLayer, err := newErasureServerPools(context.Background(), pools)
    	if err != nil {
    		return nil, nil, err
    	}
    	return objLayer, fsDirs, nil
    }
    
    func TestPoolMetaValidate(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 01 14:38:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. cmd/os-readdir_test.go

    		permDir := path.Join(os.TempDir(), "perm-dir")
    		if err := os.MkdirAll(permDir, os.FileMode(0o200)); err != nil {
    			t.Fatal(err)
    		}
    		defer os.RemoveAll(permDir)
    
    		// Check if permission denied.
    		if _, err := readDir(permDir); err == nil {
    			t.Fatalf("expected = an error, got: nil")
    		}
    	}
    }
    
    // Represents data type for all the test results.
    type result struct {
    	dir     string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  10. internal/config/api/api.go

    	if err = config.CheckValidKeys(config.APISubSys, kvs, DefaultKVS, deprecatedKeys...); err != nil {
    		return cfg, err
    	}
    
    	// Check environment variables parameters
    	requestsMax, err := strconv.Atoi(env.Get(EnvAPIRequestsMax, kvs.GetWithDefault(apiRequestsMax, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    	cfg.RequestsMax = requestsMax
    	if requestsMax < 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top