Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for WithLockRetention (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. internal/bucket/lifecycle/evaluator.go

    // NewEvaluator - creates a new evaluator with the given lifecycle
    func NewEvaluator(policy Lifecycle) *Evaluator {
    	return &Evaluator{
    		policy: policy,
    	}
    }
    
    // WithLockRetention - sets the lock retention configuration for the evaluator
    func (e *Evaluator) WithLockRetention(lr *objlock.Retention) *Evaluator {
    	e.lockRetention = lr
    	return e
    }
    
    // WithReplicationConfig - sets the replication configuration for the evaluator
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Apr 08 15:41:24 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  2. cmd/data-scanner.go

    		return
    	}
    	objOpts := make([]lifecycle.ObjectOpts, len(objInfos))
    	for i, oi := range objInfos {
    		objOpts[i] = oi.ToLifecycleOpts()
    	}
    	evaluator := lifecycle.NewEvaluator(*i.lifeCycle).WithLockRetention(&lr).WithReplicationConfig(i.replication.Config)
    	events, err := evaluator.Eval(objOpts)
    	if err != nil {
    		// This error indicates that the objOpts passed to Eval is invalid.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 45.5K bytes
    - Click Count (0)
Back to Top