Documentation ¶
Index ¶
- type Error
- type Tag
- type Tags
- func MapToBucketTags(tagMap map[string]string) (*Tags, error)
- func MapToObjectTags(tagMap map[string]string) (*Tags, error)
- func NewTags(tagMap map[string]string, isObject bool) (*Tags, error)
- func Parse(s string, isObject bool) (*Tags, error)
- func ParseBucketXML(reader io.Reader) (*Tags, error)
- func ParseObjectTags(s string) (*Tags, error)
- func ParseObjectXML(reader io.Reader) (*Tags, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tag ¶
Tag denotes key and value.
func (Tag) MarshalXML ¶
MarshalXML encodes to XML data.
func (*Tag) UnmarshalXML ¶
UnmarshalXML decodes XML data to tag.
type Tags ¶
type Tags tagging
Tags is list of tags of XML request/response as per https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketTagging.html#API_GetBucketTagging_RequestBody
func MapToBucketTags ¶
MapToBucketTags converts an input map of key and value into *Tags data structure with validation.
func MapToObjectTags ¶
MapToObjectTags converts an input map of key and value into *Tags data structure with validation.
func Parse ¶
Parse decodes HTTP query formatted string into tags which is limited by isObject. A query formatted string is like "key1=value1&key2=value2".
func ParseBucketXML ¶
ParseBucketXML decodes XML data of tags in reader specified in https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketTagging.html#API_PutBucketTagging_RequestSyntax.
func ParseObjectTags ¶
ParseObjectTags decodes HTTP query formatted string into tags. A query formatted string is like "key1=value1&key2=value2".
func ParseObjectXML ¶
ParseObjectXML decodes XML data of tags in reader specified in https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html#API_PutObjectTagging_RequestSyntax