Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooManyTags = Errorf("Object tags cannot be greater than 10", "BadRequest") ErrInvalidTagKey = Errorf("The TagKey you have provided is invalid", "InvalidTag") ErrInvalidTagValue = Errorf("The TagValue you have provided is invalid", "InvalidTag") ErrInvalidTag = Errorf("Cannot provide multiple Tags with the same key", "InvalidTag") )
errors returned by tagging package
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 Tag ¶
type Tag struct { XMLName xml.Name `xml:"Tag"` Key string `xml:"Key,omitempty"` Value string `xml:"Value,omitempty"` }
Tag - single tag
type TagSet ¶
TagSet - Set of tags under Tagging
func (TagSet) ContainsDuplicateTag ¶
ContainsDuplicateTag - returns true if duplicate keys are present in TagSet
type Tagging ¶
Tagging - object tagging interface
func FromString ¶
FromString - returns a Tagging struct when given a string in format "tag1=value1&tag2=value2"
func ParseTagging ¶
ParseTagging - parses incoming xml data in given reader into Tagging interface. After parsing, also validates the parsed fields based on S3 API constraints.
Click to show internal directories.
Click to hide internal directories.