Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for eval (0.29 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    	StorageClass            string
    }
    
    // Eval returns the lifecycle event applicable now.
    func (lc Lifecycle) Eval(obj ObjectOpts) Event {
    	return lc.eval(obj, time.Now().UTC())
    }
    
    // eval returns the lifecycle event applicable at the given now. If now is the
    // zero value of time.Time, it returns the upcoming lifecycle event.
    func (lc Lifecycle) eval(obj ObjectOpts, now time.Time) Event {
    	var events []Event
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. internal/s3select/sql/statement.go

    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Eval - evaluates the Select statement for the given record. It
    // applies only to non-aggregation queries.
    // The function returns whether the statement passed the WHERE clause and should be outputted.
    func (e *SelectStatement) Eval(input, output Record) (Record, error) {
    	ok, err := e.isPassingWhereClause(input)
    	if err != nil || !ok {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    		UserTags: "priority=low",
    	}
    
    	// Go back seven days in the past
    	now = now.Add(7 * 24 * time.Hour)
    
    	// Eval object 1
    	evt := lc.eval(obj1, now)
    	if evt.Action != NoneAction {
    		t.Fatalf("Expected action: %s but got %s", NoneAction, evt.Action)
    	}
    
    	// Eval object 2
    	evt = lc.eval(obj2, now)
    	if evt.Action != TransitionAction {
    		t.Fatalf("Expected action: %s but got %s", TransitionAction, evt.Action)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  4. internal/s3select/sql/stringfuncs_test.go

    	}
    
    	for i, tc := range evalCases {
    		// fmt.Println("Case:", i)
    		res, err := evalSQLLike(tc.iText, tc.iPat, tc.iEsc)
    		if res != tc.matchExpected || err != tc.errExpected {
    			t.Errorf("Eval Case %d failed: %v %v", i, res, err)
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  5. internal/s3select/sql/stringfuncs_contrib_test.go

    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    		if res != tc.resExpected || err != tc.errExpected {
    			t.Errorf("Eval Case %d failed: %v %v", i, res, err)
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  6. internal/config/browser/browser.go

    )
    
    // DefaultKVS - default storage class config
    var (
    	DefaultKVS = config.KVS{
    		config.KV{
    			Key:   browserCSPPolicy,
    			Value: "default-src 'self' 'unsafe-eval' 'unsafe-inline';",
    		},
    		config.KV{
    			Key:   browserHSTSSeconds,
    			Value: "0",
    		},
    		config.KV{
    			Key:   browserHSTSIncludeSubdomains,
    			Value: config.EnableOff,
    		},
    		config.KV{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    		done()
    	}
    	return false, size
    }
    
    func evalActionFromLifecycle(ctx context.Context, lc lifecycle.Lifecycle, lr lock.Retention, rcfg *replication.Config, obj ObjectInfo) lifecycle.Event {
    	event := lc.Eval(obj.ToLifecycleOpts())
    	if serverDebugLog {
    		console.Debugf(applyActionsLogPrefix+" lifecycle: Secondary scan: %v\n", event.Action)
    	}
    
    	if event.Action == lifecycle.NoneAction {
    		return event
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	}
    	for _, peerLock := range peerLocks {
    		if peerLock == nil {
    			continue
    		}
    		for k, v := range peerLock.Locks {
    			for _, lockReqInfo := range v {
    				if val, ok := entryMap[toEntry(lockReqInfo)]; ok {
    					val.ServerList = append(val.ServerList, peerLock.Addr)
    				} else {
    					entryMap[toEntry(lockReqInfo)] = lriToLockEntry(lockReqInfo, now, k, peerLock.Addr)
    				}
    			}
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. internal/s3select/sql/evaluate.go

    	switch rval := result.(type) {
    	case string:
    		return FromString(rval), nil
    	case float64:
    		return FromFloat(rval), nil
    	case int64:
    		return FromInt(rval), nil
    	case uint64:
    		if rval <= math.MaxInt64 {
    			return FromInt(int64(rval)), nil
    		}
    		return FromFloat(float64(rval)), nil
    	case bool:
    		return FromBool(rval), nil
    	case jstream.KVS:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 12K bytes
    - Viewed (0)
  10. schema/field.go

    		}
    	}
    
    	if field.GORMDataType == "" {
    		field.GORMDataType = field.DataType
    	}
    
    	if val, ok := field.TagSettings["TYPE"]; ok {
    		switch DataType(strings.ToLower(val)) {
    		case Bool, Int, Uint, Float, String, Time, Bytes:
    			field.DataType = DataType(strings.ToLower(val))
    		default:
    			field.DataType = DataType(val)
    		}
    	}
    
    	if field.Size == 0 {
    		switch reflect.Indirect(fieldValue).Kind() {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
Back to top