forked from TrueCloudLab/frostfs-s3-gw
[#122] Add enabling versioning
New handlers: PutBucketVersioning, GetBucketVersioning Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
d81a3d7b45
commit
c50a16a5e3
5 changed files with 163 additions and 35 deletions
|
@ -164,6 +164,13 @@ type ListObjectsVersionsResponse struct {
|
|||
CommonPrefixes []CommonPrefix `xml:"CommonPrefixes"`
|
||||
}
|
||||
|
||||
// VersioningConfiguration contains VersioningConfiguration XML representation.
|
||||
type VersioningConfiguration struct {
|
||||
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ VersioningConfiguration"`
|
||||
Status string `xml:"Status"`
|
||||
MfaDelete string `xml:"MfaDelete,omitempty"`
|
||||
}
|
||||
|
||||
// MarshalXML - StringMap marshals into XML.
|
||||
func (s StringMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
tokens := []xml.Token{start}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue