diff --git a/CHANGELOG.md b/CHANGELOG.md index 281bedca..f4d4864b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Changelog This is the changelog for NeoFS Proto +## [0.2.14] - 2020-02-04 + +### Fixed +- Readme + +### Added +- Filename header + +### Updated +- Object.Search now uses streams + ## [0.2.13] - 2020-02-03 ### Fixed @@ -134,3 +145,4 @@ Initial public release [0.2.11]: https://github.com/nspcc-dev/neofs-api/compare/v0.2.10...v0.2.11 [0.2.12]: https://github.com/nspcc-dev/neofs-api/compare/v0.2.11...v0.2.12 [0.2.13]: https://github.com/nspcc-dev/neofs-api/compare/v0.2.12...v0.2.13 +[0.2.14]: https://github.com/nspcc-dev/neofs-api/compare/v0.2.13...v0.2.14 diff --git a/README.md b/README.md index a6662c35..d9a97b8c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# NeoFS-proto +# NeoFS API -NeoFS-proto repository contains implementation of core NeoFS structures that +NeoFS API repository contains implementation of core NeoFS structures that can be used for integration with NeoFS. ## Description @@ -107,7 +107,7 @@ State package defines: ## How to use -NeoFS-proto packages contain godoc documentation. Examples of using most of +NeoFS API packages contain godoc documentation. Examples of using most of these packages can be found in NeoFS-CLI repository. CLI implements and demonstrates all basic interactions with NeoFS: container, object, storage group, and accounting operations. diff --git a/docs/object.md b/docs/object.md index e749b985..dbdd6dc4 100644 --- a/docs/object.md +++ b/docs/object.md @@ -63,7 +63,7 @@ rpc Get(GetRequest) returns (stream GetResponse); rpc Put(stream PutRequest) returns (PutResponse); rpc Delete(DeleteRequest) returns (DeleteResponse); rpc Head(HeadRequest) returns (HeadResponse); -rpc Search(SearchRequest) returns (SearchResponse); +rpc Search(SearchRequest) returns (stream SearchResponse); rpc GetRange(GetRangeRequest) returns (GetRangeResponse); rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse); diff --git a/object/service.pb.go b/object/service.pb.go index 43013fe8..05e7c4b3 100644 Binary files a/object/service.pb.go and b/object/service.pb.go differ diff --git a/object/service.proto b/object/service.proto index 12f97412..4487a49f 100644 --- a/object/service.proto +++ b/object/service.proto @@ -40,7 +40,7 @@ service Service { // Search objects in container. Version of query language format SHOULD BE // set to 1. Search query represented in serialized format (see query // package). - rpc Search(SearchRequest) returns (SearchResponse); + rpc Search(SearchRequest) returns (stream SearchResponse); // GetRange of data payload. Ranges are set of pairs (offset, length). // Fragments order in response corresponds to ranges order in request. diff --git a/object/utils.go b/object/utils.go index baaed0fa..329f2875 100644 --- a/object/utils.go +++ b/object/utils.go @@ -8,6 +8,11 @@ import ( "github.com/pkg/errors" ) +// FilenameHeader is a user header key for names of files, stored by third +// party apps. We recommend to use this header to be compatible with neofs +// http gate, neofs minio gate and neofs-dropper application. +const FilenameHeader = "filename" + // ByteSize used to format bytes type ByteSize uint64