Merge branch 'release/0.2.14'

This commit is contained in:
Evgeniy Kulikov 2020-02-04 13:53:11 +03:00
commit bd623f2a8b
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
6 changed files with 22 additions and 5 deletions

View file

@ -1,6 +1,17 @@
# Changelog # Changelog
This is the changelog for NeoFS Proto 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 ## [0.2.13] - 2020-02-03
### Fixed ### 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.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.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.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

View file

@ -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. can be used for integration with NeoFS.
## Description ## Description
@ -107,7 +107,7 @@ State package defines:
## How to use ## 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 these packages can be found in NeoFS-CLI repository. CLI implements and
demonstrates all basic interactions with NeoFS: container, object, storage demonstrates all basic interactions with NeoFS: container, object, storage
group, and accounting operations. group, and accounting operations.

View file

@ -63,7 +63,7 @@ rpc Get(GetRequest) returns (stream GetResponse);
rpc Put(stream PutRequest) returns (PutResponse); rpc Put(stream PutRequest) returns (PutResponse);
rpc Delete(DeleteRequest) returns (DeleteResponse); rpc Delete(DeleteRequest) returns (DeleteResponse);
rpc Head(HeadRequest) returns (HeadResponse); rpc Head(HeadRequest) returns (HeadResponse);
rpc Search(SearchRequest) returns (SearchResponse); rpc Search(SearchRequest) returns (stream SearchResponse);
rpc GetRange(GetRangeRequest) returns (GetRangeResponse); rpc GetRange(GetRangeRequest) returns (GetRangeResponse);
rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse); rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse);

Binary file not shown.

View file

@ -40,7 +40,7 @@ service Service {
// Search objects in container. Version of query language format SHOULD BE // Search objects in container. Version of query language format SHOULD BE
// set to 1. Search query represented in serialized format (see query // set to 1. Search query represented in serialized format (see query
// package). // package).
rpc Search(SearchRequest) returns (SearchResponse); rpc Search(SearchRequest) returns (stream SearchResponse);
// GetRange of data payload. Ranges are set of pairs (offset, length). // GetRange of data payload. Ranges are set of pairs (offset, length).
// Fragments order in response corresponds to ranges order in request. // Fragments order in response corresponds to ranges order in request.

View file

@ -8,6 +8,11 @@ import (
"github.com/pkg/errors" "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 // ByteSize used to format bytes
type ByteSize uint64 type ByteSize uint64