Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 942 for errC (0.03 sec)

  1. internal/cachevalue/cache.go

    		// There is a new value, release lock and return it.
    		if v = t.val.Load(); v != nil {
    			return *v, nil
    		}
    	}
    
    	if err := t.update(ctx); err != nil {
    		var empty T
    		return empty, err
    	}
    
    	return *t.val.Load(), nil
    }
    
    // Get will return a cached value or fetch a new one.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    	policy, _, err := globalBucketMetadataSys.GetPolicyConfig(bucket)
    	return policy, err
    }
    
    // IsAllowed - checks given policy args is allowed to continue the Rest API.
    func (sys *PolicySys) IsAllowed(args policy.BucketPolicyArgs) bool {
    	p, err := sys.Get(args.BucketName)
    	if err == nil {
    		return p.IsAllowed(args)
    	}
    
    	// Log unhandled errors.
    	if _, ok := err.(BucketPolicyNotFound); !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	var err error
    	err = DB.AutoMigrate(&Coupon{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    	err = DB.Table("coupon_product_1").AutoMigrate(&CouponProduct{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    	err = DB.Table("coupon_product_2").AutoMigrate(&CouponProduct{})
    	if err != nil {
    		t.Fatalf("AutoMigrate err:%v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  4. internal/s3select/progress.go

    	switch compType {
    	case noneType:
    		r = scannedReader
    	case gzipType:
    		gzr, err := gzip.NewReader(scannedReader)
    		if err != nil {
    			if errors.Is(err, gzip.ErrHeader) || errors.Is(err, gzip.ErrChecksum) {
    				return nil, errInvalidCompression(err, compType)
    			}
    			return nil, errTruncatedInput(err)
    		}
    		r = gzr
    		pr.closer = gzr
    	case bzip2Type:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. tests/multi_primary_keys_test.go

    	DB.Migrator().DropTable(&Label{}, &Book{})
    	if err := DB.AutoMigrate(&Label{}, &Book{}); err != nil {
    		t.Fatalf("failed to migrate, got %v", err)
    	}
    
    	book := Book{
    		Name: "my book",
    		Labels: []Label{
    			{Name: "region", Value: "emea"},
    		},
    	}
    
    	DB.Create(&book)
    
    	var result Book
    	if err := DB.Preload("Labels").First(&result, book.ID).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  6. internal/store/queuestore_test.go

    	defer func() {
    		if err := tearDownQueueStore(); err != nil {
    			t.Fatal("Failed to tear down store ", err)
    		}
    	}()
    	store, err := setUpQueueStore(queueDir, 100)
    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	// Put 100 items.
    	for i := 0; i < 100; i++ {
    		if _, err := store.Put(testItem); err != nil {
    			t.Fatal("Failed to put to queue store ", err)
    		}
    	}
    	// Count the items.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 1, err
    	}
    
    	err = runOnSimulator(appdir)
    	if err != nil {
    		return 1, err
    	}
    	return 0, nil
    }
    
    func runOnSimulator(appdir string) error {
    	if err := installSimulator(appdir); err != nil {
    		return err
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. docs/extensions/s3zip/examples/aws-js/main.js

    s3.listObjectsV2({Bucket : 'your-bucket', Prefix: 'path/to/file.zip/'}).
        on('build', function(req) { req.httpRequest.headers['X-Minio-Extract'] = 'true'; }).
        send(function(err, data) {
            if (err) {
                console.log("Error", err);
            } else {
                console.log("Success", data);
            }
        });
    
    
    // Download a file in the archive and store it in /tmp/data.csv
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 10 15:17:03 UTC 2021
    - 1K bytes
    - Viewed (0)
  9. internal/grid/muxserver.go

    	if !m.checkSeq(seq) {
    		msg := fmt.Sprintf("receive sequence number mismatch. want %d, got %d", m.RecvSeq, seq)
    		return pongMsg{Err: &msg}
    	}
    	select {
    	case <-m.ctx.Done():
    		err := context.Cause(m.ctx).Error()
    		return pongMsg{Err: &err}
    	default:
    		atomic.StoreInt64(&m.LastPing, time.Now().Unix())
    		return pongMsg{}
    	}
    }
    
    // disconnect will disconnect the mux.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/noncurrentversion_test.go

    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: 2,
    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays: -1,
    				set:            true,
    			},
    			err: errXMLNotWellFormed,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top