mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
simplify bucket metadata lookups for versioning/object locking (#17253)
This commit is contained in:
@@ -229,6 +229,11 @@ type Config struct {
|
||||
} `xml:"Rule,omitempty"`
|
||||
}
|
||||
|
||||
// Enabled returns true if config.ObjectLockEnabled is set to Enabled
|
||||
func (config *Config) Enabled() bool {
|
||||
return config.ObjectLockEnabled == Enabled
|
||||
}
|
||||
|
||||
// UnmarshalXML - decodes XML data.
|
||||
func (config *Config) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// Make subtype to avoid recursive UnmarshalXML().
|
||||
|
||||
Reference in New Issue
Block a user