Documentation ¶
Index ¶
- func Errorf(format string, a ...interface{}) error
- type Error
- type ExcludedPrefix
- type State
- type Versioning
- func (v Versioning) Enabled() bool
- func (v Versioning) PrefixEnabled(prefix string) bool
- func (v Versioning) PrefixSuspended(prefix string) bool
- func (v Versioning) PrefixesExcluded() bool
- func (v Versioning) Suspended() bool
- func (v Versioning) Validate() error
- func (v Versioning) Versioned(prefix string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is the generic type for any error happening during tag parsing.
type ExcludedPrefix ¶
type ExcludedPrefix struct {
Prefix string
}
ExcludedPrefix - holds individual prefixes excluded from being versioned.
type State ¶
type State string
State - enabled/disabled/suspended states for multifactor and status of versioning.
type Versioning ¶
type Versioning struct { XMLNS string `xml:"xmlns,attr,omitempty"` XMLName xml.Name `xml:"VersioningConfiguration"` // MFADelete State `xml:"MFADelete,omitempty"` // not supported yet. Status State `xml:"Status,omitempty"` // MinIO extension - allows selective, prefix-level versioning exclusion. // Requires versioning to be enabled ExcludedPrefixes []ExcludedPrefix `xml:",omitempty"` ExcludeFolders bool `xml:",omitempty"` }
Versioning - Configuration for bucket versioning.
func ParseConfig ¶
func ParseConfig(reader io.Reader) (*Versioning, error)
ParseConfig - parses data in given reader to VersioningConfiguration.
func (Versioning) Enabled ¶
func (v Versioning) Enabled() bool
Enabled - returns true if versioning is enabled
func (Versioning) PrefixEnabled ¶
func (v Versioning) PrefixEnabled(prefix string) bool
PrefixEnabled - returns true if versioning is enabled at the bucket and given prefix, false otherwise.
func (Versioning) PrefixSuspended ¶
func (v Versioning) PrefixSuspended(prefix string) bool
PrefixSuspended - returns true if versioning is suspended at the bucket level or suspended on the given prefix.
func (Versioning) PrefixesExcluded ¶
func (v Versioning) PrefixesExcluded() bool
PrefixesExcluded returns true if v contains one or more excluded object prefixes or if ExcludeFolders is true.
func (Versioning) Suspended ¶
func (v Versioning) Suspended() bool
Suspended - returns true if versioning is suspended
func (Versioning) Validate ¶
func (v Versioning) Validate() error
Validate - validates the versioning configuration
func (Versioning) Versioned ¶
func (v Versioning) Versioned(prefix string) bool
Versioned returns if 'prefix' has versioning enabled or suspended.