Versions in this module Expand all Collapse all v1 v1.3.13 Sep 17, 2020 v1.3.12 Aug 20, 2020 v1.3.11 Jul 17, 2020 v1.3.10 Jul 2, 2020 v1.3.9 May 21, 2020 Changes in this version type Action + const DeleteMarkerAction type Lifecycle + func (lc Lifecycle) FilterRulesByNonCurrentVersion() (ncvRules, cvRules, abortMultipartRules []Rule) v0 v0.0.9 Oct 15, 2020 v0.0.8 Sep 30, 2020 v0.0.7 Sep 29, 2020 v0.0.6 Sep 29, 2020 v0.0.5 Sep 29, 2020 v0.0.4 Sep 24, 2020 v0.0.3 Sep 28, 2020 v0.0.2 Sep 28, 2020 v0.0.1 Sep 16, 2020 Changes in this version + const DebugSpec + const DebugTime + const RulesNumber + func Lcp(l []string) string + func String(s string) *string + type AbortIncompleteMultipartUpload struct + DaysAfterInitiation DaysAfterInitiation + XMLName xml.Name + func (n AbortIncompleteMultipartUpload) IsDaysNull() bool + func (n AbortIncompleteMultipartUpload) Validate() error + type Action int + const AbortMultipartUploadAction + const DeleteAction + const DeleteVersionAction + const NoneAction + const TransitionAction + type And struct + Prefix *string + Tags []Tag + XMLName xml.Name + func (a And) ContainsDuplicateTag() bool + func (a And) Validate() error + type DaysAfterInitiation int + func (aDays *DaysAfterInitiation) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (aDays *DaysAfterInitiation) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + type Expiration struct + Date ExpirationDate + Days ExpirationDays + ExpiredObjectDeleteMarker *bool + XMLName xml.Name + func (e Expiration) IsDateNull() bool + func (e Expiration) IsDaysNull() bool + func (e Expiration) IsNull() bool + func (e Expiration) IsSetExpiredObjectDeleteMarker() bool + func (e Expiration) Validate() error + type ExpirationDate struct + func (eDate *ExpirationDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (eDate *ExpirationDate) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + type ExpirationDays int + func (eDays *ExpirationDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + type Filter struct + And *And + Prefix *string + Tag *Tag + XMLName xml.Name + func (f Filter) IsTagEmpty() bool + func (f Filter) Validate() error + type Lifecycle struct + Rules []Rule + XMLName xml.Name + func ParseLifecycleConfig(reader io.Reader) (*Lifecycle, error) + func (lc Lifecycle) ComputeAction(objName string, objTags map[string]string, objStorageClass string, ...) (Action, string) + func (lc Lifecycle) ComputeActionForAbortIncompleteMultipartUpload(objName string, objTags map[string]string, modTime time.Time, rules []Rule) Action + func (lc Lifecycle) ComputeActionForNonCurrentVersion(objName string, objTags map[string]string, objStorageClass string, ...) (Action, string) + func (lc Lifecycle) FilterRules() (ncvRules, cvRules, abortMultipartRules []Rule) + func (lc Lifecycle) IsEmpty() bool + func (lc Lifecycle) Validate() error + type NoncurrentDays int + func (nDays *NoncurrentDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (nDays *NoncurrentDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + type NoncurrentVersionExpiration struct + NoncurrentDays NoncurrentDays + XMLName xml.Name + func (n NoncurrentVersionExpiration) IsDaysNull() bool + func (n NoncurrentVersionExpiration) Validate() error + type NoncurrentVersionTransition struct + NoncurrentDays NoncurrentDays + StorageClass string + XMLName xml.Name + func (n NoncurrentVersionTransition) IsDaysNull() bool + func (n NoncurrentVersionTransition) IsStorageClassNull() bool + func (n NoncurrentVersionTransition) Validate() error + type Rule struct + AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload + Expiration *Expiration + Filter *Filter + ID string + NoncurrentVersionExpiration *NoncurrentVersionExpiration + NoncurrentVersionTransitions []NoncurrentVersionTransition + Status Status + Transitions []Transition + XMLName xml.Name + func (r Rule) Prefix() string + func (r Rule) Validate() error + type Status string + const Disabled + const Enabled + type Tag struct + Key string + Value string + XMLName xml.Name + func (t Tag) IsEmpty() bool + func (t Tag) String() string + func (t Tag) Validate() error + type Transition struct + Date TransitionDate + Days TransitionDays + StorageClass string + XMLName xml.Name + func (t Transition) IsDateNull() bool + func (t Transition) IsDaysNull() bool + func (t Transition) IsNull() bool + func (t Transition) IsStorageClassNull() bool + func (t Transition) Validate() error + type TransitionDate struct + func (tDate *TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (tDate *TransitionDate) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + type TransitionDays int + func (tDays *TransitionDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (tDays *TransitionDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error