Skip to content

Commit 3a7818a

Browse files
cryptobiozjtopjian
authored andcommitted
enable versioning with X-History-Location (#1318)
1 parent 04bc8f5 commit 3a7818a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

openstack/objectstorage/v1/containers/requests.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type CreateOpts struct {
7474
DetectContentType bool `h:"X-Detect-Content-Type"`
7575
IfNoneMatch string `h:"If-None-Match"`
7676
VersionsLocation string `h:"X-Versions-Location"`
77+
HistoryLocation string `h:"X-History-Location"`
7778
}
7879

7980
// ToContainerCreateMap formats a CreateOpts into a map of headers.
@@ -137,6 +138,8 @@ type UpdateOpts struct {
137138
DetectContentType bool `h:"X-Detect-Content-Type"`
138139
RemoveVersionsLocation string `h:"X-Remove-Versions-Location"`
139140
VersionsLocation string `h:"X-Versions-Location"`
141+
RemoveHistoryLocation string `h:"X-Remove-History-Location"`
142+
HistoryLocation string `h:"X-History-Location"`
140143
}
141144

142145
// ToContainerUpdateMap formats a UpdateOpts into a map of headers.

openstack/objectstorage/v1/containers/results.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type GetHeader struct {
100100
Read []string `json:"-"`
101101
TransID string `json:"X-Trans-Id"`
102102
VersionsLocation string `json:"X-Versions-Location"`
103+
HistoryLocation string `json:"X-History-Location"`
103104
Write []string `json:"-"`
104105
StoragePolicy string `json:"X-Storage-Policy"`
105106
}

0 commit comments

Comments
 (0)