Add bucket info handler

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
Evgeniy Kulikov 2020-08-19 14:53:17 +03:00
parent 92b039fa5e
commit cea8f9d4ca
3 changed files with 46 additions and 72 deletions

View file

@ -80,3 +80,9 @@ type Object struct {
// StringMap is a map[string]string.
type StringMap map[string]string
// LocationResponse - format for location response.
type LocationResponse struct {
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint" json:"-"`
Location string `xml:",chardata"`
}