Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExpirationDays (0.25 sec)

  1. internal/bucket/lifecycle/expiration.go

    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    type ExpirationDays int
    
    // UnmarshalXML parses number of days from Expiration and validates if
    // greater than zero
    func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var numDays int
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  2. internal/bucket/lifecycle/noncurrentversion.go

    )
    
    // NoncurrentVersionExpiration - an action for lifecycle configuration rule.
    type NoncurrentVersionExpiration struct {
    	XMLName                 xml.Name       `xml:"NoncurrentVersionExpiration"`
    	NoncurrentDays          ExpirationDays `xml:"NoncurrentDays,omitempty"`
    	NewerNoncurrentVersions int            `xml:"NewerNoncurrentVersions,omitempty"`
    	set                     bool
    }
    
    // MarshalXML if non-current days not set to non zero value
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 5.3K bytes
    - Viewed (1)
  3. internal/bucket/lifecycle/lifecycle_test.go

    	lc := Lifecycle{
    		Rules: []Rule{
    			{
    				Status:     "Enabled",
    				Filter:     Filter{Prefix: Prefix{string: "prefix-1", set: true}},
    				Expiration: Expiration{Days: ExpirationDays(3)},
    			},
    			{
    				Status:     "Enabled",
    				Filter:     Filter{Prefix: Prefix{string: "prefix-1", set: true}},
    				Expiration: Expiration{Date: midnightTS},
    			},
    			{
    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)
Back to top