Commit graph

27 commits

Author SHA1 Message Date
aaa922f600
[#58] *: Run pre-commit
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2024-09-02 15:03:58 +03:00
4a4a7612f6 [#57] *: Format with clang-format
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-07-26 10:12:27 +03:00
Airat Arifullin
0916cb5398 [#49] status: Introduce new common status code
* Introduce `INVALID_ARGUMENT` for common status section;
* Regenerate docs.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-06-17 15:30:06 +00:00
Airat Arifullin
c94b8ab6ae [#46] apemanager: Introduce proto-s for apemanager service
* Introduce proto-s for `APEManagerService` and related types.
* Introduce a new status section related to `APEManagerService`.
* Generate proto-docs.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-04-27 13:48:04 +00:00
Airat Arifullin
07eb6a438c [#40] status: Introduce CONTAINER_ACCESS_DENIED status
* Add a new status CONTAINER_ACCESS_DENIED.
* Fix descriptions for methods of container and object services.
* Also regenerate md docs.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-03-20 12:24:51 +03:00
4c68d92468 [#39] Makefile: Add fmt target
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-02-28 18:54:53 +03:00
eafcbff11f Rename go package names
Due to source code relocation from GitHub.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
2023-03-07 11:50:02 +03:00
7431075ca1 Rename go package names
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2022-12-11 12:18:48 +03:00
Evgenii Stratonikov
4d8dd727ea [#237] status: Add NODE_UNDER_MAINTENANCE status code
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-09-15 15:29:54 +03:00
Pavel Karpy
22a7d8be6c [#230] status: Add EACL_NOT_FOUND status
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-08-01 09:31:52 +03:00
Pavel Karpy
2f52216400 [#225] status: Add signature related status
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-06-21 15:30:26 +03:00
Evgenii Stratonikov
869fb64155 [#208] status: Add OUT_OF_RANGE status in Object section
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-05-27 12:51:13 +03:00
Elizaveta Chichindaeva
f233a2fd67 [#216] English Check
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-05-12 15:06:51 +03:00
Leonard Lyubich
fc79cd18cc [#190] status: Add OBJECT_ALREADY_REMOVED code
Add `OBJECT_ALREADY_REMOVED` value to `Object` enumeration. Return this
status from object GET/HEAD/RANGE operations.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-02-22 11:58:44 +03:00
Leonard Lyubich
83b0eef37d [#189] status: Refine format of the ACCESS_DENIED status detail
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-02-22 11:58:44 +03:00
Leonard Lyubich
7b83b9df4e [#194] object: Add status returns related to LOCKs
Add `status.Object` section for object failures. Add `LOCKED` and
`LOCK_NON_REGULAR_OBJECT` codes to it. Return these codes from `Put` and
`Delete` RPCs of `ObjectService`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-02-22 11:58:44 +03:00
Evgenii Stratonikov
3a154760b5 [#191] status: add Session section and some status codes
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-21 15:52:48 +03:00
Evgenii Stratonikov
31b7b073c2 [#190] status: add Container section and CONTAINER_NOT_FOUND code
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-21 15:52:48 +03:00
Evgenii Stratonikov
5f53a683d1 [#190] status: add Object.OBJECT_NOT_FOUND code
`OBJECT_` prefix is needed because of possible conflicts with other
`NOT_FOUND` codes declared in the same file.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-21 15:52:48 +03:00
Evgenii Stratonikov
5f3fa3fdd8 [#189] status: add Object section and ACL_DENIED code
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-21 15:52:48 +03:00
Leonard Lyubich
e09a560d57 [#187] status: Add detail with supported network magic
Add detail for `WRONG_MAGIC_NUMBER` status code which carries the
correct magic of the served network served. Clients will be able to fix
incorrect magic and re-send the request. ID is 0, binary format
is uint64 in big-endian.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-01-27 16:48:52 +03:00
Leonard Lyubich
d9d71ccd66 [#82] status: Add status code for wrong network magic
After the recent update of NeoFS V2 protocol all requests must carry
correct network magic.

Add `WRONG_MAGIC_NUMBER` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-01-10 17:32:31 +03:00
Leonard Lyubich
7ea5a1d2f1 [#150] *: Write status-related docs
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00
Leonard Lyubich
f55f83fb24 [#150] status: Define enum of sequence numbers of the failure sections
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00
Leonard Lyubich
c907451350 [#150] status: Define enumeration of the codes for common failures
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00
Leonard Lyubich
fd0366bbf5 [#150] status: Define enumeration of success status codes
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00
Leonard Lyubich
f61eaf5353 [#150] Define status return message
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-16 09:46:14 +03:00