Versions in this module Expand all Collapse all v0 v0.3.4 Aug 12, 2022 v0.3.3 Jun 8, 2022 v0.3.2 May 11, 2022 v0.3.1 Apr 25, 2022 v0.3.0 Apr 15, 2022 v0.2.6 Aug 26, 2022 v0.2.5 May 11, 2022 v0.2.4 Mar 29, 2022 v0.2.3 Mar 29, 2022 v0.2.2 Mar 29, 2022 v0.2.1 Mar 29, 2022 v0.2.0 Mar 23, 2022 v0.1.1 Mar 29, 2022 v0.1.0 Mar 21, 2022 Changes in this version + const TransitionComplete + const TransitionPending + func Errorf(format string, a ...interface{}) error + func ExpectedExpiryTime(modTime time.Time, days int) time.Time + type Action int + const ActionCount + const DeleteAction + const DeleteRestoredAction + const DeleteRestoredVersionAction + const DeleteVersionAction + const NoneAction + const TransitionAction + const TransitionVersionAction + func (i Action) String() string + type And struct + Prefix Prefix + Tags []Tag + XMLName xml.Name + func (a And) ContainsDuplicateTag() bool + func (a And) Validate() error + type Error struct + func (e Error) Error() string + func (e Error) Unwrap() error + type Expiration struct + Date ExpirationDate + Days ExpirationDays + DeleteMarker ExpireDeleteMarker + XMLName xml.Name + func (e *Expiration) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (e Expiration) IsDateNull() bool + func (e Expiration) IsDaysNull() bool + func (e Expiration) IsNull() bool + func (e Expiration) MarshalXML(enc *xml.Encoder, startElement xml.StartElement) error + func (e Expiration) Validate() error + type ExpirationDate struct + func (eDate *ExpirationDate) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (eDate ExpirationDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + type ExpirationDays int + func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (eDays ExpirationDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + type ExpireDeleteMarker struct + func (b *ExpireDeleteMarker) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (b ExpireDeleteMarker) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + type Filter struct + And And + Prefix Prefix + Tag Tag + XMLName xml.Name + func (f *Filter) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) + func (f Filter) IsEmpty() bool + func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (f Filter) TestTags(tags []string) bool + func (f Filter) Validate() error + type Lifecycle struct + Rules []Rule + XMLName xml.Name + func ParseLifecycleConfig(reader io.Reader) (*Lifecycle, error) + func (lc *Lifecycle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) + func (lc Lifecycle) ComputeAction(obj ObjectOpts) Action + func (lc Lifecycle) FilterActionableRules(obj ObjectOpts) []Rule + func (lc Lifecycle) HasActiveRules(prefix string, recursive bool) bool + func (lc Lifecycle) HasTransition() bool + func (lc Lifecycle) NoncurrentVersionsExpirationLimit(obj ObjectOpts) (string, int, int) + func (lc Lifecycle) PredictExpiryTime(obj ObjectOpts) (string, time.Time) + func (lc Lifecycle) PredictTransitionTime(obj ObjectOpts) (string, time.Time) + func (lc Lifecycle) SetPredictionHeaders(w http.ResponseWriter, obj ObjectOpts) + func (lc Lifecycle) TransitionTier(obj ObjectOpts) string + func (lc Lifecycle) Validate() error + type NoncurrentVersionExpiration struct + NewerNoncurrentVersions int + NoncurrentDays ExpirationDays + XMLName xml.Name + func (n *NoncurrentVersionExpiration) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (n NoncurrentVersionExpiration) IsDaysNull() bool + func (n NoncurrentVersionExpiration) IsNull() bool + func (n NoncurrentVersionExpiration) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (n NoncurrentVersionExpiration) Validate() error + type NoncurrentVersionTransition struct + NoncurrentDays TransitionDays + StorageClass string + func (n *NoncurrentVersionTransition) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (n NoncurrentVersionTransition) IsNull() bool + func (n NoncurrentVersionTransition) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (n NoncurrentVersionTransition) NextDue(obj ObjectOpts) (time.Time, bool) + func (n NoncurrentVersionTransition) Validate() error + type ObjectOpts struct + DeleteMarker bool + IsLatest bool + ModTime time.Time + Name string + NumVersions int + RestoreExpires time.Time + RestoreOngoing bool + SuccessorModTime time.Time + TransitionStatus string + UserTags string + VersionID string + func (o ObjectOpts) ExpiredObjectDeleteMarker() bool + type Prefix struct + func (p *Prefix) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) + func (p Prefix) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + func (p Prefix) String() string + type Rule struct + Expiration Expiration + Filter Filter + ID string + NoncurrentVersionExpiration NoncurrentVersionExpiration + NoncurrentVersionTransition NoncurrentVersionTransition + Prefix Prefix + Status Status + Transition Transition + XMLName xml.Name + func (r Rule) GetPrefix() string + func (r Rule) Tags() string + func (r Rule) Validate() error + type Status string + const Disabled + const Enabled + type Tag struct + Key string + Value string + XMLName xml.Name + func (tag *Tag) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) + func (tag Tag) IsEmpty() bool + func (tag Tag) String() string + func (tag Tag) Validate() error + type Transition struct + Date TransitionDate + Days TransitionDays + StorageClass string + XMLName xml.Name + func (t *Transition) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (t Transition) IsDateNull() bool + func (t Transition) IsEnabled() bool + func (t Transition) IsNull() bool + func (t Transition) MarshalXML(enc *xml.Encoder, start xml.StartElement) error + func (t Transition) NextDue(obj ObjectOpts) (time.Time, bool) + func (t Transition) Validate() error + type TransitionDate struct + func (tDate *TransitionDate) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (tDate TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error + type TransitionDays int + func (tDays *TransitionDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error + func (tDays TransitionDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error