Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for check (0.12 sec)

  1. internal/bucket/object/lock/lock.go

    	}
    	return ntp.Time(ntpServer)
    }
    
    // Retention - bucket level retention configuration.
    type Retention struct {
    	Mode        RetMode
    	Validity    time.Duration
    	LockEnabled bool
    }
    
    // Retain - check whether given date is retainable by validity time.
    func (r Retention) Retain(created time.Time) bool {
    	t, err := UTCNowNTP()
    	if err != nil {
    		lockLogIf(context.Background(), err)
    		// Retain
    		return true
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
Back to top