relax validation when loading lifecycle document from the backend (#9612)

This commit is contained in:
Anis Elleuch
2020-05-18 16:33:43 +01:00
committed by GitHub
parent de9b391db3
commit 96009975d6
7 changed files with 61 additions and 31 deletions

View File

@@ -18,15 +18,13 @@ package lifecycle
import (
"encoding/xml"
"github.com/minio/minio-go/v6/pkg/tags"
)
// And - a tag to combine a prefix and multiple tags for lifecycle configuration rule.
type And struct {
XMLName xml.Name `xml:"And"`
Prefix string `xml:"Prefix,omitempty"`
Tags []tags.Tag `xml:"Tag,omitempty"`
XMLName xml.Name `xml:"And"`
Prefix string `xml:"Prefix,omitempty"`
Tags []Tag `xml:"Tag,omitempty"`
}
var errDuplicateTagKey = Errorf("Duplicate Tag Keys are not allowed")