Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 857 for NIL (0.07 sec)

  1. tests/query_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	users := [2]*User{{Name: "1"}, {Name: "2"}}
    	err = DB.Model(&User{}).Where("name = ?", "testname1").Find(&users).Error
    	if err != nil {
    		t.Fatal(err)
    	}
    	if users[0] == nil || users[0].Name != "testname1" {
    		t.Error("users[0] not covered")
    	}
    	if users[1] != nil {
    		t.Error("users[1] should be empty")
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. internal/logger/target/kafka/kafka.go

    	if !h.kconfig.Enabled {
    		return nil
    	}
    	if err := h.validate(); err != nil {
    		return err
    	}
    	if h.kconfig.QueueDir != "" {
    		if err := h.initQueueStoreOnce.DoWithContext(ctx, h.initQueueStore); err != nil {
    			return err
    		}
    		return h.initKafkaOnce.Do(h.init)
    	}
    	if err := h.init(); err != nil {
    		return err
    	}
    	go h.startKafkaLogger()
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    			return policy.toSlice(), policy.UpdatedAt, nil
    		}
    		if !policyPresent {
    			if err := store.loadMappedPolicy(context.TODO(), name, regUser, true, c.iamGroupPolicyMap); err != nil && !errors.Is(err, errNoSuchPolicy) {
    				return nil, time.Time{}, err
    			}
    			policy, _ = c.iamGroupPolicyMap.Load(name)
    			return policy.toSlice(), policy.UpdatedAt, nil
    		}
    		return nil, time.Time{}, nil
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  4. cmd/bucket-notification-handlers.go

    		return
    	}
    
    	_, err := objAPI.GetBucketInfo(ctx, bucketName, BucketOptions{})
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	config, err := globalBucketMetadataSys.GetNotificationConfig(bucketName)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	region := globalSite.Region()
    	config.SetRegion(region)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. cmd/copy-part-range.go

    func parseCopyPartRangeSpec(rangeString string) (hrange *HTTPRangeSpec, err error) {
    	hrange, err = parseRequestRangeSpec(rangeString)
    	if err != nil {
    		return nil, err
    	}
    	if hrange.IsSuffixLength || hrange.Start < 0 || hrange.End < 0 {
    		return nil, errInvalidRange
    	}
    	return hrange, nil
    }
    
    // checkCopyPartRangeWithSize adds more check to the range string in case of
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 18 03:27:04 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    	if err != nil {
    		if isErrObjectNotFound(err) || isErrVersionNotFound(err) {
    			traceFn(ILMExpiry, nil, nil)
    			return false
    		}
    		// Assume it is still there.
    		err := fmt.Errorf("DeleteObject(%s, %s): %w", obj.Bucket, obj.Name, err)
    		ilmLogOnceIf(ctx, err, "non-transition-expiry"+obj.Name)
    		traceFn(ILMExpiry, nil, err)
    		return false
    	}
    	if dobj.Name == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  7. cmd/veeam-sos-api.go

    	ri := logger.GetReqInfo(ctx)
    	return ri != nil && strings.Contains(ri.UserAgent, veeamAgentSubstr)
    }
    
    func veeamSOSAPIHeadObject(ctx context.Context, bucket, object string, opts ObjectOptions) (ObjectInfo, error) {
    	gr, err := veeamSOSAPIGetObject(ctx, bucket, object, nil, opts)
    	if gr != nil {
    		gr.Close()
    		return gr.ObjInfo, nil
    	}
    	return ObjectInfo{}, err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. tests/postgres_test.go

    		t.Errorf("Failed to create extension pgcrypto, got error %v", err)
    	}
    
    	DB.Migrator().DropTable(&Yasuo{})
    
    	if err := DB.AutoMigrate(&Yasuo{}); err != nil {
    		t.Fatalf("Failed to migrate for uuid default value, got error: %v", err)
    	}
    
    	yasuo := Yasuo{Name: "jinzhu"}
    	if err := DB.Create(&yasuo).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  9. internal/config/dns/operator_dns.go

    	e, err := c.endpoint(bucket, false)
    	if err != nil {
    		return newError(bucket, err)
    	}
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, e, nil)
    	if err != nil {
    		return newError(bucket, err)
    	}
    	if err = c.addAuthHeader(req); err != nil {
    		return newError(bucket, err)
    	}
    
    	resp, err := c.httpClient.Do(req)
    	if err != nil {
    		if derr := c.Delete(bucket); derr != nil {
    			return newError(bucket, derr)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  10. internal/s3select/progress.go

    	}
    	pr.processedReader = newCountUpReader(r)
    
    	return &pr, nil
    }
    
    type nopReadCloser struct {
    	fn func()
    }
    
    func (n2 *nopReadCloser) Read(p []byte) (n int, err error) {
    	panic("should not be called")
    }
    
    func (n2 *nopReadCloser) Close() error {
    	if n2.fn != nil {
    		n2.fn()
    	}
    	n2.fn = nil
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top