File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,19 @@ func (c *context) GetItemsSync(getItemsInput *v3io.GetItemsInput) (*v3io.Respons
346346 return nil , err
347347 }
348348
349- headers := getItemsHeadersCapnp
349+ commonHeaders := getItemsHeadersCapnp
350350 if getItemsInput .RequestJSONResponse {
351- headers = getItemsHeaders
351+ commonHeaders = getItemsHeaders
352+ }
353+
354+ headers := make (map [string ]string , len (commonHeaders ))
355+ for k , v := range commonHeaders {
356+ headers [k ] = v
357+ }
358+
359+ if len (getItemsInput .DataPlaneInput .MtimeSec ) > 0 {
360+ headers ["conditional-mtime-sec" ] = getItemsInput .DataPlaneInput .MtimeSec
361+ headers ["conditional-mtime-nsec" ] = getItemsInput .DataPlaneInput .MtimeNsec
352362 }
353363
354364 response , err := c .sendRequest (& getItemsInput .DataPlaneInput ,
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ type DataPlaneInput struct {
5050 ContainerName string
5151 AuthenticationToken string
5252 AccessKey string
53+ MtimeSec string
54+ MtimeNsec string
5355 Timeout time.Duration
5456 IncludeResponseInError bool
5557}
@@ -295,6 +297,7 @@ type GetItemsInput struct {
295297 SortKeyRangeEnd string
296298 AllowObjectScatter string
297299 ReturnData string
300+ ReturnAllInodes bool
298301 DataMaxSize int
299302 RequestJSONResponse bool `json:"RequestJsonResponse"`
300303 ChokeGetItemsMS int
You can’t perform that action at this time.
0 commit comments