Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + const DestinationARNPrefix + func Errorf(format string, a ...interface{}) error + type And struct + Prefix string + Tags []Tag + XMLName xml.Name + func (a And) ContainsDuplicateTag() bool + func (a And) Validate() error + type Config struct + RoleArn string + Rules []Rule + XMLName xml.Name + func ParseConfig(reader io.Reader) (*Config, error) + func (c Config) FilterActionableRules(obj ObjectOpts) []Rule + func (c Config) GetDestination() Destination + func (c Config) HasActiveRules(prefix string, recursive bool) bool + func (c Config) Replicate(obj ObjectOpts) bool + func (c Config) Validate(bucket string, sameTarget bool) error + type DeleteMarkerReplication struct + Status Status + func (d DeleteMarkerReplication) IsEmpty() bool + func (d DeleteMarkerReplication) Validate() error + type DeleteReplication struct + Status Status + func (d *DeleteReplication) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) + func (d DeleteReplication) IsEmpty() bool + func (d DeleteReplication) Validate() error + type Destination struct + Bucket string + StorageClass string + XMLName xml.Name + func (d *Destination) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) + func (d Destination) IsValid() bool + func (d Destination) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (d Destination) String() string + func (d Destination) Validate(bucketName string) error + type Error struct + func (e Error) Error() string + func (e Error) Unwrap() error + type Filter struct + And And + Prefix string + Tag Tag + XMLName xml.Name + func (f *Filter) TestTags(ttags []string) bool + func (f Filter) IsEmpty() bool + func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (f Filter) Validate() error + type ObjectOpts struct + DeleteMarker bool + IsLatest bool + Name string + OpType Type + SSEC bool + UserTags string + VersionID string + type Rule struct + DeleteMarkerReplication DeleteMarkerReplication + DeleteReplication DeleteReplication + Destination Destination + Filter Filter + ID string + Priority int + Status Status + XMLName xml.Name + func (r Rule) Prefix() string + func (r Rule) Tags() string + func (r Rule) Validate(bucket string, sameTarget bool) error + type Status string + const Disabled + const Enabled + type StatusType string + const Completed + const Failed + const Pending + const Replica + func (s StatusType) Empty() bool + func (s StatusType) String() string + type Tag struct + Key string + Value string + XMLName xml.Name + func (tag Tag) IsEmpty() bool + func (tag Tag) String() string + func (tag Tag) Validate() error + type Type int + const DeleteReplicationType + const MetadataReplicationType + const ObjectReplicationType