Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TransitionDays (0.06 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/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