Documentation ¶
Index ¶
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 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"` }
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) 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
Click to show internal directories.
Click to hide internal directories.