Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for oneAction (0.37 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

        def "any method with action as the last param is closurised"() {
            given:
            def tester = create(ActionsTester)
    
            when:
            tester.oneAction { assert it == "subject" }
    
            then:
            tester.lastMethod == "oneAction"
            tester.lastArgs.size() == 1
            tester.lastArgs.first() instanceof Action
    
            when:
            tester.twoArgs("1") { assert it == "subject" }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    	}{
    		// Empty object name (unexpected case) should always return NoneAction
    		{
    			inputConfig:    `<LifecycleConfiguration><Rule><Filter><Prefix>prefix</Prefix></Filter><Status>Enabled</Status><Expiration><Days>5</Days></Expiration></Rule></LifecycleConfiguration>`,
    			expectedAction: NoneAction,
    		},
    		// Disabled should always return NoneAction
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. cmd/data-scanner-metric.go

    	if s < scannerMetricLastRealtime {
    		p.latency[s].add(d)
    	}
    }
    
    // timeILM times an ILM action.
    // lifecycle.NoneAction is ignored.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) timeILM(a lifecycle.Action) func(versions uint64) {
    	if a == lifecycle.NoneAction || a >= lifecycle.ActionCount {
    		return func(_ uint64) {}
    	}
    	startTime := time.Now()
    	return func(versions uint64) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/action_string.go

    package lifecycle
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[NoneAction-0]
    	_ = x[DeleteAction-1]
    	_ = x[DeleteVersionAction-2]
    	_ = x[TransitionAction-3]
    	_ = x[TransitionVersionAction-4]
    	_ = x[DeleteRestoredAction-5]
    	_ = x[DeleteRestoredVersionAction-6]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. cmd/data-scanner_test.go

    		want      lifecycle.Action
    	}{
    		{
    			// with object locking
    			ilm:       *deleteAllLc,
    			retention: lock.Retention{LockEnabled: true},
    			obj:       obj,
    			want:      lifecycle.NoneAction,
    		},
    		{
    			// without object locking
    			ilm:       *deleteAllLc,
    			retention: lock.Retention{},
    			obj:       obj,
    			want:      lifecycle.DeleteAllVersionsAction,
    		},
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/lifecycle.go

    // Action represents a delete action or other transition
    // actions that will be implemented later.
    type Action int
    
    //go:generate stringer -type Action $GOFILE
    
    const (
    	// NoneAction means no action required after evaluating lifecycle rules
    	NoneAction Action = iota
    	// DeleteAction means the object needs to be removed after evaluating lifecycle rules
    	DeleteAction
    	// DeleteVersionAction deletes a particular version
    	DeleteVersionAction
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    		// noncurrent versions of this object.
    		if lr.LockEnabled {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    
    	case lifecycle.DeleteVersionAction, lifecycle.DeleteRestoredVersionAction:
    		// Defensive code, should never happen
    		if obj.VersionID == "" {
    			return lifecycle.Event{Action: lifecycle.NoneAction}
    		}
    		if lr.LockEnabled && enforceRetentionForDeletion(ctx, obj) {
    			if serverDebugLog {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:43:17 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/transport/Transport.java

            }
            else if ( t != null ) {
                this.thread = null;
            }
        }
    
    
        /**
         * Disconnect the transport
         * 
         * @param hard
         * @return whether conenction was in use
         * @throws IOException
         */
        public synchronized boolean disconnect ( boolean hard ) throws IOException {
            return disconnect(hard, true);
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 01 18:12:21 UTC 2020
    - 24.1K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    		}
    	}
    
    	if opts.Expiration.Expire {
    		if gerr == nil {
    			evt := evalActionFromLifecycle(ctx, *lc, rcfg, replcfg, goi)
    			var isErr bool
    			switch evt.Action {
    			case lifecycle.NoneAction:
    				isErr = true
    			case lifecycle.TransitionAction, lifecycle.TransitionVersionAction:
    				isErr = true
    			}
    			if isErr {
    				if goi.VersionID != "" {
    					return goi, VersionNotFound{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  10. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||1/0,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[t,r]of e)this.onEviction(t,r.value)}_deleteIfExpired(e,t){return typeof t.expiry=="number"&&t.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,t.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,t){if(this._deleteIfExpired(e,t)===!1)return...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
Back to top