|
|
@ -526,7 +526,6 @@ func (s *storageRESTServer) WalkSplunkHandler(w http.ResponseWriter, r *http.Req |
|
|
|
for fi := range fch { |
|
|
|
for fi := range fch { |
|
|
|
encoder.Encode(&fi) |
|
|
|
encoder.Encode(&fi) |
|
|
|
} |
|
|
|
} |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// WalkVersionsHandler - remote caller to start walking at a requested directory path.
|
|
|
|
// WalkVersionsHandler - remote caller to start walking at a requested directory path.
|
|
|
@ -553,9 +552,8 @@ func (s *storageRESTServer) WalkVersionsHandler(w http.ResponseWriter, r *http.R |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
for fi := range fch { |
|
|
|
for fi := range fch { |
|
|
|
encoder.Encode(&fi) |
|
|
|
logger.LogIf(r.Context(), encoder.Encode(&fi)) |
|
|
|
} |
|
|
|
} |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// WalkHandler - remote caller to start walking at a requested directory path.
|
|
|
|
// WalkHandler - remote caller to start walking at a requested directory path.
|
|
|
@ -582,9 +580,8 @@ func (s *storageRESTServer) WalkHandler(w http.ResponseWriter, r *http.Request) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
for fi := range fch { |
|
|
|
for fi := range fch { |
|
|
|
encoder.Encode(&fi) |
|
|
|
logger.LogIf(r.Context(), encoder.Encode(&fi)) |
|
|
|
} |
|
|
|
} |
|
|
|
w.(http.Flusher).Flush() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ListDirHandler - list a directory.
|
|
|
|
// ListDirHandler - list a directory.
|
|
|
@ -889,7 +886,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpointZones EndpointZones |
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodWalkSplunk).HandlerFunc(httpTraceHdrs(server.WalkSplunkHandler)). |
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodWalkSplunk).HandlerFunc(httpTraceHdrs(server.WalkSplunkHandler)). |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTDirPath, storageRESTMarkerPath)...) |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTDirPath, storageRESTMarkerPath)...) |
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodWalkVersions).HandlerFunc(httpTraceHdrs(server.WalkVersionsHandler)). |
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodWalkVersions).HandlerFunc(httpTraceHdrs(server.WalkVersionsHandler)). |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTDirPath, storageRESTMarkerPath)...) |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTDirPath, storageRESTMarkerPath, storageRESTRecursive)...) |
|
|
|
|
|
|
|
|
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodDeleteVersions).HandlerFunc(httpTraceHdrs(server.DeleteVersionsHandler)). |
|
|
|
subrouter.Methods(http.MethodPost).Path(storageRESTVersionPrefix + storageRESTMethodDeleteVersions).HandlerFunc(httpTraceHdrs(server.DeleteVersionsHandler)). |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTTotalVersions)...) |
|
|
|
Queries(restQueries(storageRESTVolume, storageRESTTotalVersions)...) |
|
|
|