Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TransitionDays (0.07 sec)

  1. internal/bucket/lifecycle/transition.go

    	if tDate.Time.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(tDate.Format(time.RFC3339), startElement)
    }
    
    // TransitionDays is a type alias to unmarshal Days in Transition
    type TransitionDays int
    
    // UnmarshalXML parses number of days from Transition and validates if
    // >= 0
    func (tDays *TransitionDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var days int
    	err := d.DecodeElement(&days, &startElement)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 10 17:07:49 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    				ID:     "rule-2",
    				Status: "Enabled",
    				Transition: Transition{
    					Days:         TransitionDays(3),
    					StorageClass: "TIER-1",
    					set:          true,
    				},
    			},
    			{
    				ID:     "rule-3",
    				Status: "Enabled",
    				NoncurrentVersionTransition: NoncurrentVersionTransition{
    					NoncurrentDays: TransitionDays(5),
    					StorageClass:   "TIER-2",
    					set:            true,
    				},
    			},
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/noncurrentversion.go

    		return errXMLNotWellFormed
    	}
    	return nil
    }
    
    // NoncurrentVersionTransition - an action for lifecycle configuration rule.
    type NoncurrentVersionTransition struct {
    	NoncurrentDays TransitionDays `xml:"NoncurrentDays"`
    	StorageClass   string         `xml:"StorageClass"`
    	set            bool
    }
    
    // MarshalXML is extended to leave out
    // <NoncurrentVersionTransition></NoncurrentVersionTransition> tags
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
Back to top