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 DestinationARNMinIOPrefix + 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) FilterTargetArns(obj ObjectOpts) []string + 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 + ARN string + 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) LegacyArn() bool + func (d Destination) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (d Destination) String() string + func (d Destination) TargetArn() bool + func (d Destination) Validate(bucketName string) error + type Error struct + func (e Error) Error() string + func (e Error) Unwrap() error + type ExistingObjectReplication struct + Status Status + func (e *ExistingObjectReplication) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) + func (e ExistingObjectReplication) IsEmpty() bool + func (e ExistingObjectReplication) Validate() 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 + ExistingObject bool + Name string + OpType Type + Replica bool + SSEC bool + TargetArn string + UserTags string + VersionID string + type ReplicaModifications struct + Status Status + type Rule struct + DeleteMarkerReplication DeleteMarkerReplication + DeleteReplication DeleteReplication + Destination Destination + ExistingObjectReplication ExistingObjectReplication + Filter Filter + ID string + Priority int + SourceSelectionCriteria SourceSelectionCriteria + Status Status + XMLName xml.Name + func (r Rule) MetadataReplicate(obj ObjectOpts) bool + func (r Rule) Prefix() string + func (r Rule) Tags() string + func (r Rule) Validate(bucket string, sameTarget bool) error + type SourceSelectionCriteria struct + ReplicaModifications ReplicaModifications + func (s *SourceSelectionCriteria) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) + func (s SourceSelectionCriteria) IsValid() bool + func (s SourceSelectionCriteria) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (s SourceSelectionCriteria) Validate() 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 + func (z *StatusType) DecodeMsg(dc *msgp.Reader) (err error) + func (z *StatusType) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z StatusType) EncodeMsg(en *msgp.Writer) (err error) + func (z StatusType) MarshalMsg(b []byte) (o []byte, err error) + func (z StatusType) Msgsize() (s int) + 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 ExistingObjectReplicationType + const HealReplicationType + const MetadataReplicationType + const ObjectReplicationType + const ResyncReplicationType + const UnsetReplicationType + func (t Type) Valid() bool