Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for dayjs (0.21 sec)

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

    	}
    
    	if retention.Days == nil && retention.Years == nil {
    		return fmt.Errorf("either Days or Years must be specified")
    	}
    
    	if retention.Days != nil && retention.Years != nil {
    		return fmt.Errorf("either Days or Years must be specified, not both")
    	}
    
    	//nolint:gocritic
    	if retention.Days != nil {
    		if *retention.Days == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock_test.go

    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Days: &days, Years: &years},
    			expectedErr: fmt.Errorf("either Days or Years must be specified, not both"),
    			expectErr:   true,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Days: &zerodays},
    			expectedErr: fmt.Errorf("Default retention period must be a positive integer value for 'Days'"),
    			expectErr:   true,
    		},
    		{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    // modification time plus the number of transition/restore days.
    //
    //	e.g. If the object modtime is `Thu May 21 13:42:50 GMT 2020` and the object should
    //	    transition in 1 day, then the expected transition time is `Fri, 23 May 2020 00:00:00 GMT`
    func ExpectedExpiryTime(modTime time.Time, days int) time.Time {
    	if days == 0 {
    		return modTime
    	}
    	t := modTime.UTC().Add(time.Duration(days+1) * 24 * time.Hour)
    	return t.Truncate(24 * time.Hour)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. docs/sts/client-grants.md

    ## API Request Parameters
    
    ### Token
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 7.2K bytes
    - Viewed (1)
  5. docs/integrations/veeam/screenshots/object_store_immutable_days.png

    object_store_immutable_days.png...
    PNG Image
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Jul 17 00:16:53 GMT 2020
    - 12.6K bytes
    - Viewed (0)
  6. docs/LICENSE

      b. Where Your right to use the Licensed Material has terminated under
         Section 6(a), it reinstates:
    
           1. automatically as of the date the violation is cured, provided
              it is cured within 30 days of Your discovery of the
              violation; or
    
           2. upon express reinstatement by the Licensor.
    
         For the avoidance of doubt, this Section 6(b) does not affect any
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon May 10 16:50:06 GMT 2021
    - 18.2K bytes
    - Viewed (0)
  7. docs/sts/ldap.md

    | Params     | Value    |
    | :--        | :--      |
    | _Type_     | _String_ |
    | _Required_ | _Yes_    |
    
    ### DurationSeconds
    
    The duration, in seconds. The value can range from 900 seconds (15 minutes) up to 365 days. If value is higher than this setting, then operation fails. By default, the value is set to 3600 seconds.
    
    | Params        | Value                                              |
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.4K bytes
    - Viewed (1)
  8. docs/integrations/veeam/screenshots/backup_job_immutable_days.png

    backup_job_immutable_days.png...
    PNG Image
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Jul 17 00:16:53 GMT 2020
    - 17.5K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/expiration_test.go

    			inputXML: `<Expiration>
                                        <Days>3</Days>
                                        <Date>2019-04-20T00:00:00Z</Date>
                                        </Expiration>`,
    			expectedErr: errLifecycleInvalidExpiration,
    		},
    		{ // Expiration with both ExpiredObjectDeleteMarker and days
    			inputXML: `<Expiration>
                                        <Days>3</Days>
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/transition_test.go

    	}{
    		{
    			input: `<Transition>
    			<Days>0</Days>
    			<StorageClass>S3TIER-1</StorageClass>
    		  </Transition>`,
    			err: nil,
    		},
    		{
    			input: `<Transition>
    			<Days>1</Days>
    			<Date>2021-01-01T00:00:00Z</Date>
    			<StorageClass>S3TIER-1</StorageClass>
    		  </Transition>`,
    			err: errTransitionInvalid,
    		},
    		{
    			input: `<Transition>
    			<Days>1</Days>
    		  </Transition>`,
    			err: errXMLNotWellFormed,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Oct 01 18:58:17 GMT 2021
    - 2.3K bytes
    - Viewed (0)
Back to top