From d9347a05f027d337b214e80c4dfa9f3b11220cfb Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Mon, 17 Apr 2023 15:44:35 +0300
Subject: [PATCH] [#21] *: Drop reputation system
Signed-off-by: Pavel Karpy
---
CHANGELOG.md | 3 +
accounting/grpc/service.pb.go | 2 +-
accounting/grpc/service_grpc.pb.go | 10 +-
accounting/grpc/types.pb.go | 2 +-
acl/grpc/types.pb.go | 2 +-
audit/grpc/types.pb.go | 2 +-
container/grpc/service.pb.go | 2 +-
container/grpc/service_grpc.pb.go | 148 +++---
container/grpc/types.pb.go | 2 +-
lock/grpc/types.pb.go | 2 +-
netmap/grpc/service.pb.go | 2 +-
netmap/grpc/service_grpc.pb.go | 20 +-
netmap/grpc/types.pb.go | 2 +-
object/grpc/service.pb.go | 2 +-
object/grpc/service_grpc.pb.go | 562 ++++++++++----------
object/grpc/types.pb.go | 2 +-
refs/grpc/types.pb.go | 2 +-
reputation/convert.go | 604 ---------------------
reputation/grpc/service.go | 90 ----
reputation/grpc/service.pb.go | 808 -----------------------------
reputation/grpc/service_grpc.pb.go | 165 ------
reputation/grpc/types.go | 55 --
reputation/grpc/types.pb.go | 500 ------------------
reputation/json.go | 38 --
reputation/marshal.go | 276 ----------
reputation/message_test.go | 34 --
reputation/test/generate.go | 160 ------
reputation/types.go | 366 -------------
rpc/reputation.go | 46 --
session/grpc/service.pb.go | 2 +-
session/grpc/service_grpc.pb.go | 10 +-
session/grpc/types.pb.go | 2 +-
signature/body.go | 11 -
status/grpc/types.pb.go | 2 +-
storagegroup/grpc/types.pb.go | 2 +-
subnet/grpc/types.pb.go | 2 +-
tombstone/grpc/types.pb.go | 2 +-
util/proto/test/test.pb.go | 2 +-
38 files changed, 415 insertions(+), 3529 deletions(-)
delete mode 100644 reputation/convert.go
delete mode 100644 reputation/grpc/service.go
delete mode 100644 reputation/grpc/service.pb.go
delete mode 100644 reputation/grpc/service_grpc.pb.go
delete mode 100644 reputation/grpc/types.go
delete mode 100644 reputation/grpc/types.pb.go
delete mode 100644 reputation/json.go
delete mode 100644 reputation/marshal.go
delete mode 100644 reputation/message_test.go
delete mode 100644 reputation/test/generate.go
delete mode 100644 reputation/types.go
delete mode 100644 rpc/reputation.go
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8f7a84e..27506b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@
### Fixed
### Changed
+### Removed
+- Reputation system (#21)
+
### Updated
## 2.15.0 - 2023-04-11
diff --git a/accounting/grpc/service.pb.go b/accounting/grpc/service.pb.go
index 196c7ab..9699622 100644
--- a/accounting/grpc/service.pb.go
+++ b/accounting/grpc/service.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: accounting/grpc/service.proto
diff --git a/accounting/grpc/service_grpc.pb.go b/accounting/grpc/service_grpc.pb.go
index f1cfeb5..1e1b17e 100644
--- a/accounting/grpc/service_grpc.pb.go
+++ b/accounting/grpc/service_grpc.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.2.0
+// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
// source: accounting/grpc/service.proto
@@ -18,6 +18,10 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
+const (
+ AccountingService_Balance_FullMethodName = "/neo.fs.v2.accounting.AccountingService/Balance"
+)
+
// AccountingServiceClient is the client API for AccountingService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -41,7 +45,7 @@ func NewAccountingServiceClient(cc grpc.ClientConnInterface) AccountingServiceCl
func (c *accountingServiceClient) Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error) {
out := new(BalanceResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.accounting.AccountingService/Balance", in, out, opts...)
+ err := c.cc.Invoke(ctx, AccountingService_Balance_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -90,7 +94,7 @@ func _AccountingService_Balance_Handler(srv interface{}, ctx context.Context, de
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.accounting.AccountingService/Balance",
+ FullMethod: AccountingService_Balance_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AccountingServiceServer).Balance(ctx, req.(*BalanceRequest))
diff --git a/accounting/grpc/types.pb.go b/accounting/grpc/types.pb.go
index 322a56c..b8dff21 100644
--- a/accounting/grpc/types.pb.go
+++ b/accounting/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: accounting/grpc/types.proto
diff --git a/acl/grpc/types.pb.go b/acl/grpc/types.pb.go
index 583f89a..94a8e47 100644
--- a/acl/grpc/types.pb.go
+++ b/acl/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: acl/grpc/types.proto
diff --git a/audit/grpc/types.pb.go b/audit/grpc/types.pb.go
index b542ec2..a2cac43 100644
--- a/audit/grpc/types.pb.go
+++ b/audit/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: audit/grpc/types.proto
diff --git a/container/grpc/service.pb.go b/container/grpc/service.pb.go
index 6786337..e3bdaf0 100644
--- a/container/grpc/service.pb.go
+++ b/container/grpc/service.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: container/grpc/service.proto
diff --git a/container/grpc/service_grpc.pb.go b/container/grpc/service_grpc.pb.go
index 1de8b5f..c70bce7 100644
--- a/container/grpc/service_grpc.pb.go
+++ b/container/grpc/service_grpc.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.2.0
+// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
// source: container/grpc/service.proto
@@ -18,6 +18,16 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
+const (
+ ContainerService_Put_FullMethodName = "/neo.fs.v2.container.ContainerService/Put"
+ ContainerService_Delete_FullMethodName = "/neo.fs.v2.container.ContainerService/Delete"
+ ContainerService_Get_FullMethodName = "/neo.fs.v2.container.ContainerService/Get"
+ ContainerService_List_FullMethodName = "/neo.fs.v2.container.ContainerService/List"
+ ContainerService_SetExtendedACL_FullMethodName = "/neo.fs.v2.container.ContainerService/SetExtendedACL"
+ ContainerService_GetExtendedACL_FullMethodName = "/neo.fs.v2.container.ContainerService/GetExtendedACL"
+ ContainerService_AnnounceUsedSpace_FullMethodName = "/neo.fs.v2.container.ContainerService/AnnounceUsedSpace"
+)
+
// ContainerServiceClient is the client API for ContainerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -28,9 +38,9 @@ type ContainerServiceClient interface {
// is added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to save the container has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to save the container has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
// `Delete` invokes `Container` smart contract's `Delete` method and returns
// response immediately. After a new block is issued in sidechain, request is
@@ -38,53 +48,53 @@ type ContainerServiceClient interface {
// is added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to remove the container has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to remove the container has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
// Returns container structure from `Container` smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // requested container not found.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // requested container not found.
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
// Returns all owner's containers from 'Container` smart contract' storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container list has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container list has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON).
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
// Invokes 'SetEACL' method of 'Container` smart contract and returns response
// immediately. After one more block in sidechain, changes in an Extended ACL are
// added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to save container eACL has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to save container eACL has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
SetExtendedACL(ctx context.Context, in *SetExtendedACLRequest, opts ...grpc.CallOption) (*SetExtendedACLResponse, error)
// Returns Extended ACL table and signature from `Container` smart contract
// storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container eACL has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // container not found;
- // - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
- // eACL table not found.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container eACL has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // container not found;
+ // - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
+ // eACL table not found.
GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error)
// Announces the space values used by the container for P2P synchronization.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // estimation of used space has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // estimation of used space has been successfully announced;
+ // - Common failures (SECTION_FAILURE_COMMON).
AnnounceUsedSpace(ctx context.Context, in *AnnounceUsedSpaceRequest, opts ...grpc.CallOption) (*AnnounceUsedSpaceResponse, error)
}
@@ -98,7 +108,7 @@ func NewContainerServiceClient(cc grpc.ClientConnInterface) ContainerServiceClie
func (c *containerServiceClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
out := new(PutResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/Put", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_Put_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -107,7 +117,7 @@ func (c *containerServiceClient) Put(ctx context.Context, in *PutRequest, opts .
func (c *containerServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
out := new(DeleteResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/Delete", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_Delete_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -116,7 +126,7 @@ func (c *containerServiceClient) Delete(ctx context.Context, in *DeleteRequest,
func (c *containerServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
out := new(GetResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/Get", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_Get_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -125,7 +135,7 @@ func (c *containerServiceClient) Get(ctx context.Context, in *GetRequest, opts .
func (c *containerServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
out := new(ListResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/List", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_List_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -134,7 +144,7 @@ func (c *containerServiceClient) List(ctx context.Context, in *ListRequest, opts
func (c *containerServiceClient) SetExtendedACL(ctx context.Context, in *SetExtendedACLRequest, opts ...grpc.CallOption) (*SetExtendedACLResponse, error) {
out := new(SetExtendedACLResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/SetExtendedACL", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_SetExtendedACL_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -143,7 +153,7 @@ func (c *containerServiceClient) SetExtendedACL(ctx context.Context, in *SetExte
func (c *containerServiceClient) GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error) {
out := new(GetExtendedACLResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/GetExtendedACL", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_GetExtendedACL_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -152,7 +162,7 @@ func (c *containerServiceClient) GetExtendedACL(ctx context.Context, in *GetExte
func (c *containerServiceClient) AnnounceUsedSpace(ctx context.Context, in *AnnounceUsedSpaceRequest, opts ...grpc.CallOption) (*AnnounceUsedSpaceResponse, error) {
out := new(AnnounceUsedSpaceResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.container.ContainerService/AnnounceUsedSpace", in, out, opts...)
+ err := c.cc.Invoke(ctx, ContainerService_AnnounceUsedSpace_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -169,9 +179,9 @@ type ContainerServiceServer interface {
// is added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to save the container has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to save the container has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
Put(context.Context, *PutRequest) (*PutResponse, error)
// `Delete` invokes `Container` smart contract's `Delete` method and returns
// response immediately. After a new block is issued in sidechain, request is
@@ -179,53 +189,53 @@ type ContainerServiceServer interface {
// is added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to remove the container has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to remove the container has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
// Returns container structure from `Container` smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // requested container not found.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // requested container not found.
Get(context.Context, *GetRequest) (*GetResponse, error)
// Returns all owner's containers from 'Container` smart contract' storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container list has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container list has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON).
List(context.Context, *ListRequest) (*ListResponse, error)
// Invokes 'SetEACL' method of 'Container` smart contract and returns response
// immediately. After one more block in sidechain, changes in an Extended ACL are
// added into smart contract storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // request to save container eACL has been sent to the sidechain;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // request to save container eACL has been sent to the sidechain;
+ // - Common failures (SECTION_FAILURE_COMMON).
SetExtendedACL(context.Context, *SetExtendedACLRequest) (*SetExtendedACLResponse, error)
// Returns Extended ACL table and signature from `Container` smart contract
// storage.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // container eACL has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // container not found;
- // - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
- // eACL table not found.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // container eACL has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // container not found;
+ // - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
+ // eACL table not found.
GetExtendedACL(context.Context, *GetExtendedACLRequest) (*GetExtendedACLResponse, error)
// Announces the space values used by the container for P2P synchronization.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // estimation of used space has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
+ // - **OK** (0, SECTION_SUCCESS): \
+ // estimation of used space has been successfully announced;
+ // - Common failures (SECTION_FAILURE_COMMON).
AnnounceUsedSpace(context.Context, *AnnounceUsedSpaceRequest) (*AnnounceUsedSpaceResponse, error)
}
@@ -276,7 +286,7 @@ func _ContainerService_Put_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/Put",
+ FullMethod: ContainerService_Put_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).Put(ctx, req.(*PutRequest))
@@ -294,7 +304,7 @@ func _ContainerService_Delete_Handler(srv interface{}, ctx context.Context, dec
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/Delete",
+ FullMethod: ContainerService_Delete_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).Delete(ctx, req.(*DeleteRequest))
@@ -312,7 +322,7 @@ func _ContainerService_Get_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/Get",
+ FullMethod: ContainerService_Get_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).Get(ctx, req.(*GetRequest))
@@ -330,7 +340,7 @@ func _ContainerService_List_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/List",
+ FullMethod: ContainerService_List_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).List(ctx, req.(*ListRequest))
@@ -348,7 +358,7 @@ func _ContainerService_SetExtendedACL_Handler(srv interface{}, ctx context.Conte
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/SetExtendedACL",
+ FullMethod: ContainerService_SetExtendedACL_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).SetExtendedACL(ctx, req.(*SetExtendedACLRequest))
@@ -366,7 +376,7 @@ func _ContainerService_GetExtendedACL_Handler(srv interface{}, ctx context.Conte
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/GetExtendedACL",
+ FullMethod: ContainerService_GetExtendedACL_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).GetExtendedACL(ctx, req.(*GetExtendedACLRequest))
@@ -384,7 +394,7 @@ func _ContainerService_AnnounceUsedSpace_Handler(srv interface{}, ctx context.Co
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.container.ContainerService/AnnounceUsedSpace",
+ FullMethod: ContainerService_AnnounceUsedSpace_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ContainerServiceServer).AnnounceUsedSpace(ctx, req.(*AnnounceUsedSpaceRequest))
diff --git a/container/grpc/types.pb.go b/container/grpc/types.pb.go
index 1044617..7f0cc1b 100644
--- a/container/grpc/types.pb.go
+++ b/container/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: container/grpc/types.proto
diff --git a/lock/grpc/types.pb.go b/lock/grpc/types.pb.go
index 22758c1..958476c 100644
--- a/lock/grpc/types.pb.go
+++ b/lock/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: lock/grpc/types.proto
diff --git a/netmap/grpc/service.pb.go b/netmap/grpc/service.pb.go
index d74d7c3..acfe43c 100644
--- a/netmap/grpc/service.pb.go
+++ b/netmap/grpc/service.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: netmap/grpc/service.proto
diff --git a/netmap/grpc/service_grpc.pb.go b/netmap/grpc/service_grpc.pb.go
index 9ac25db..3834c3d 100644
--- a/netmap/grpc/service_grpc.pb.go
+++ b/netmap/grpc/service_grpc.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.2.0
+// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
// source: netmap/grpc/service.proto
@@ -18,6 +18,12 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
+const (
+ NetmapService_LocalNodeInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo"
+ NetmapService_NetworkInfo_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetworkInfo"
+ NetmapService_NetmapSnapshot_FullMethodName = "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot"
+)
+
// NetmapServiceClient is the client API for NetmapService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -59,7 +65,7 @@ func NewNetmapServiceClient(cc grpc.ClientConnInterface) NetmapServiceClient {
func (c *netmapServiceClient) LocalNodeInfo(ctx context.Context, in *LocalNodeInfoRequest, opts ...grpc.CallOption) (*LocalNodeInfoResponse, error) {
out := new(LocalNodeInfoResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo", in, out, opts...)
+ err := c.cc.Invoke(ctx, NetmapService_LocalNodeInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -68,7 +74,7 @@ func (c *netmapServiceClient) LocalNodeInfo(ctx context.Context, in *LocalNodeIn
func (c *netmapServiceClient) NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error) {
out := new(NetworkInfoResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/NetworkInfo", in, out, opts...)
+ err := c.cc.Invoke(ctx, NetmapService_NetworkInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -77,7 +83,7 @@ func (c *netmapServiceClient) NetworkInfo(ctx context.Context, in *NetworkInfoRe
func (c *netmapServiceClient) NetmapSnapshot(ctx context.Context, in *NetmapSnapshotRequest, opts ...grpc.CallOption) (*NetmapSnapshotResponse, error) {
out := new(NetmapSnapshotResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot", in, out, opts...)
+ err := c.cc.Invoke(ctx, NetmapService_NetmapSnapshot_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -150,7 +156,7 @@ func _NetmapService_LocalNodeInfo_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.netmap.NetmapService/LocalNodeInfo",
+ FullMethod: NetmapService_LocalNodeInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetmapServiceServer).LocalNodeInfo(ctx, req.(*LocalNodeInfoRequest))
@@ -168,7 +174,7 @@ func _NetmapService_NetworkInfo_Handler(srv interface{}, ctx context.Context, de
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.netmap.NetmapService/NetworkInfo",
+ FullMethod: NetmapService_NetworkInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetmapServiceServer).NetworkInfo(ctx, req.(*NetworkInfoRequest))
@@ -186,7 +192,7 @@ func _NetmapService_NetmapSnapshot_Handler(srv interface{}, ctx context.Context,
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot",
+ FullMethod: NetmapService_NetmapSnapshot_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetmapServiceServer).NetmapSnapshot(ctx, req.(*NetmapSnapshotRequest))
diff --git a/netmap/grpc/types.pb.go b/netmap/grpc/types.pb.go
index 0f017da..276e648 100644
--- a/netmap/grpc/types.pb.go
+++ b/netmap/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: netmap/grpc/types.proto
diff --git a/object/grpc/service.pb.go b/object/grpc/service.pb.go
index 6ba4090..ddda473 100644
--- a/object/grpc/service.pb.go
+++ b/object/grpc/service.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: object/grpc/service.proto
diff --git a/object/grpc/service_grpc.pb.go b/object/grpc/service_grpc.pb.go
index 6b1c32a..10f33b8 100644
--- a/object/grpc/service_grpc.pb.go
+++ b/object/grpc/service_grpc.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.2.0
+// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
// source: object/grpc/service.proto
@@ -18,6 +18,16 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
+const (
+ ObjectService_Get_FullMethodName = "/neo.fs.v2.object.ObjectService/Get"
+ ObjectService_Put_FullMethodName = "/neo.fs.v2.object.ObjectService/Put"
+ ObjectService_Delete_FullMethodName = "/neo.fs.v2.object.ObjectService/Delete"
+ ObjectService_Head_FullMethodName = "/neo.fs.v2.object.ObjectService/Head"
+ ObjectService_Search_FullMethodName = "/neo.fs.v2.object.ObjectService/Search"
+ ObjectService_GetRange_FullMethodName = "/neo.fs.v2.object.ObjectService/GetRange"
+ ObjectService_GetRangeHash_FullMethodName = "/neo.fs.v2.object.ObjectService/GetRangeHash"
+)
+
// ObjectServiceClient is the client API for ObjectService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -30,32 +40,32 @@ type ObjectServiceClient interface {
// keeping the receiving order.
//
// Extended headers can change `Get` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requsted version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH` (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or
- // the latest one otherwise) of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requsted version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH` (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or
+ // the latest one otherwise) of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // read access to the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // read access to the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (ObjectService_GetClient, error)
// Put the object into container. Request uses gRPC stream. First message
// SHOULD be of PutHeader type. `ContainerID` and `OwnerID` of an object
@@ -65,106 +75,107 @@ type ObjectServiceClient interface {
// Chunk messages SHOULD be sent in the direct order of fragmentation.
//
// Extended headers can change `Put` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requsted version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requsted version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully saved in the container;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // write access to the container is denied;
- // - **LOCKED** (2050, SECTION_OBJECT): \
- // placement of an object of type TOMBSTONE that includes at least one locked
- // object is prohibited;
- // - **LOCK_NON_REGULAR_OBJECT** (2051, SECTION_OBJECT): \
- // placement of an object of type LOCK that includes at least one object of
- // type other than REGULAR is prohibited;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object storage container not found;
- // - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
- // (for trusted object preparation) session private key does not exist or has
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully saved in the container;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // write access to the container is denied;
+ // - **LOCKED** (2050, SECTION_OBJECT): \
+ // placement of an object of type TOMBSTONE that includes at least one locked
+ // object is prohibited;
+ // - **LOCK_NON_REGULAR_OBJECT** (2051, SECTION_OBJECT): \
+ // placement of an object of type LOCK that includes at least one object of
+ // type other than REGULAR is prohibited;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object storage container not found;
+ // - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
+ // (for trusted object preparation) session private key does not exist or has
+ //
// been deleted;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Put(ctx context.Context, opts ...grpc.CallOption) (ObjectService_PutClient, error)
// Delete the object from a container. There is no immediate removal
// guarantee. Object will be marked for removal and deleted eventually.
//
// Extended headers can change `Delete` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully marked to be removed from the container;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // delete access to the object is denied;
- // - **LOCKED** (2050, SECTION_OBJECT): \
- // deleting a locked object is prohibited;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully marked to be removed from the container;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // delete access to the object is denied;
+ // - **LOCKED** (2050, SECTION_OBJECT): \
+ // deleting a locked object is prohibited;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
// Returns the object Headers without data payload. By default full header is
// returned. If `main_only` request field is set, the short header with only
// the very minimal information will be returned instead.
//
// Extended headers can change `Head` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object header has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation HEAD of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object header has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation HEAD of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error)
// Search objects in container. Search query allows to match by Object
// Header's filed values. Please see the corresponding NeoFS Technical
// Specification section for more details.
//
// Extended headers can change `Search` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // objects have been successfully selected;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation SEARCH of the object is denied;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // search container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // objects have been successfully selected;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation SEARCH of the object is denied;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // search container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (ObjectService_SearchClient, error)
// Get byte range of data payload. Range is set as an (offset, length) tuple.
// Like in `Get` method, the response uses gRPC stream. Requested range can be
@@ -172,33 +183,33 @@ type ObjectServiceClient interface {
// order.
//
// Extended headers can change `GetRange` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // data range of the object payload has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation RANGE of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted.
- // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
- // the requested range is out of bounds;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // data range of the object payload has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation RANGE of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted.
+ // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
+ // the requested range is out of bounds;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (ObjectService_GetRangeClient, error)
// Returns homomorphic or regular hash of object's payload range after
// applying XOR operation with the provided `salt`. Ranges are set of (offset,
@@ -206,31 +217,31 @@ type ObjectServiceClient interface {
// the request. Note that hash is calculated for XORed data.
//
// Extended headers can change `GetRangeHash` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // data range of the object payload has been successfully hashed;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation RANGEHASH of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
- // the requested range is out of bounds;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // data range of the object payload has been successfully hashed;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation RANGEHASH of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
+ // the requested range is out of bounds;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
GetRangeHash(ctx context.Context, in *GetRangeHashRequest, opts ...grpc.CallOption) (*GetRangeHashResponse, error)
}
@@ -243,7 +254,7 @@ func NewObjectServiceClient(cc grpc.ClientConnInterface) ObjectServiceClient {
}
func (c *objectServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (ObjectService_GetClient, error) {
- stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[0], "/neo.fs.v2.object.ObjectService/Get", opts...)
+ stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[0], ObjectService_Get_FullMethodName, opts...)
if err != nil {
return nil, err
}
@@ -275,7 +286,7 @@ func (x *objectServiceGetClient) Recv() (*GetResponse, error) {
}
func (c *objectServiceClient) Put(ctx context.Context, opts ...grpc.CallOption) (ObjectService_PutClient, error) {
- stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[1], "/neo.fs.v2.object.ObjectService/Put", opts...)
+ stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[1], ObjectService_Put_FullMethodName, opts...)
if err != nil {
return nil, err
}
@@ -310,7 +321,7 @@ func (x *objectServicePutClient) CloseAndRecv() (*PutResponse, error) {
func (c *objectServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
out := new(DeleteResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.object.ObjectService/Delete", in, out, opts...)
+ err := c.cc.Invoke(ctx, ObjectService_Delete_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -319,7 +330,7 @@ func (c *objectServiceClient) Delete(ctx context.Context, in *DeleteRequest, opt
func (c *objectServiceClient) Head(ctx context.Context, in *HeadRequest, opts ...grpc.CallOption) (*HeadResponse, error) {
out := new(HeadResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.object.ObjectService/Head", in, out, opts...)
+ err := c.cc.Invoke(ctx, ObjectService_Head_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -327,7 +338,7 @@ func (c *objectServiceClient) Head(ctx context.Context, in *HeadRequest, opts ..
}
func (c *objectServiceClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (ObjectService_SearchClient, error) {
- stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[2], "/neo.fs.v2.object.ObjectService/Search", opts...)
+ stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[2], ObjectService_Search_FullMethodName, opts...)
if err != nil {
return nil, err
}
@@ -359,7 +370,7 @@ func (x *objectServiceSearchClient) Recv() (*SearchResponse, error) {
}
func (c *objectServiceClient) GetRange(ctx context.Context, in *GetRangeRequest, opts ...grpc.CallOption) (ObjectService_GetRangeClient, error) {
- stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[3], "/neo.fs.v2.object.ObjectService/GetRange", opts...)
+ stream, err := c.cc.NewStream(ctx, &ObjectService_ServiceDesc.Streams[3], ObjectService_GetRange_FullMethodName, opts...)
if err != nil {
return nil, err
}
@@ -392,7 +403,7 @@ func (x *objectServiceGetRangeClient) Recv() (*GetRangeResponse, error) {
func (c *objectServiceClient) GetRangeHash(ctx context.Context, in *GetRangeHashRequest, opts ...grpc.CallOption) (*GetRangeHashResponse, error) {
out := new(GetRangeHashResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.object.ObjectService/GetRangeHash", in, out, opts...)
+ err := c.cc.Invoke(ctx, ObjectService_GetRangeHash_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -411,32 +422,32 @@ type ObjectServiceServer interface {
// keeping the receiving order.
//
// Extended headers can change `Get` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requsted version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH` (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or
- // the latest one otherwise) of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requsted version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions (starting from `__SYSTEM__NETMAP_EPOCH` (`__NEOFS__NETMAP_EPOCH` is deprecated) if specified or
+ // the latest one otherwise) of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // read access to the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // read access to the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Get(*GetRequest, ObjectService_GetServer) error
// Put the object into container. Request uses gRPC stream. First message
// SHOULD be of PutHeader type. `ContainerID` and `OwnerID` of an object
@@ -446,106 +457,107 @@ type ObjectServiceServer interface {
// Chunk messages SHOULD be sent in the direct order of fragmentation.
//
// Extended headers can change `Put` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requsted version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requsted version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully saved in the container;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // write access to the container is denied;
- // - **LOCKED** (2050, SECTION_OBJECT): \
- // placement of an object of type TOMBSTONE that includes at least one locked
- // object is prohibited;
- // - **LOCK_NON_REGULAR_OBJECT** (2051, SECTION_OBJECT): \
- // placement of an object of type LOCK that includes at least one object of
- // type other than REGULAR is prohibited;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object storage container not found;
- // - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
- // (for trusted object preparation) session private key does not exist or has
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully saved in the container;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // write access to the container is denied;
+ // - **LOCKED** (2050, SECTION_OBJECT): \
+ // placement of an object of type TOMBSTONE that includes at least one locked
+ // object is prohibited;
+ // - **LOCK_NON_REGULAR_OBJECT** (2051, SECTION_OBJECT): \
+ // placement of an object of type LOCK that includes at least one object of
+ // type other than REGULAR is prohibited;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object storage container not found;
+ // - **TOKEN_NOT_FOUND** (4096, SECTION_SESSION): \
+ // (for trusted object preparation) session private key does not exist or has
+ //
// been deleted;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Put(ObjectService_PutServer) error
// Delete the object from a container. There is no immediate removal
// guarantee. Object will be marked for removal and deleted eventually.
//
// Extended headers can change `Delete` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object has been successfully marked to be removed from the container;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // delete access to the object is denied;
- // - **LOCKED** (2050, SECTION_OBJECT): \
- // deleting a locked object is prohibited;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object has been successfully marked to be removed from the container;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // delete access to the object is denied;
+ // - **LOCKED** (2050, SECTION_OBJECT): \
+ // deleting a locked object is prohibited;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
// Returns the object Headers without data payload. By default full header is
// returned. If `main_only` request field is set, the short header with only
// the very minimal information will be returned instead.
//
// Extended headers can change `Head` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // object header has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation HEAD of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // object header has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation HEAD of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Head(context.Context, *HeadRequest) (*HeadResponse, error)
// Search objects in container. Search query allows to match by Object
// Header's filed values. Please see the corresponding NeoFS Technical
// Specification section for more details.
//
// Extended headers can change `Search` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // objects have been successfully selected;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation SEARCH of the object is denied;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // search container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // objects have been successfully selected;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation SEARCH of the object is denied;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // search container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
Search(*SearchRequest, ObjectService_SearchServer) error
// Get byte range of data payload. Range is set as an (offset, length) tuple.
// Like in `Get` method, the response uses gRPC stream. Requested range can be
@@ -553,33 +565,33 @@ type ObjectServiceServer interface {
// order.
//
// Extended headers can change `GetRange` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // data range of the object payload has been successfully read;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation RANGE of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
- // the requested object has been marked as deleted.
- // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
- // the requested range is out of bounds;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // data range of the object payload has been successfully read;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation RANGE of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \
+ // the requested object has been marked as deleted.
+ // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
+ // the requested range is out of bounds;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
GetRange(*GetRangeRequest, ObjectService_GetRangeServer) error
// Returns homomorphic or regular hash of object's payload range after
// applying XOR operation with the provided `salt`. Ranges are set of (offset,
@@ -587,31 +599,31 @@ type ObjectServiceServer interface {
// the request. Note that hash is calculated for XORed data.
//
// Extended headers can change `GetRangeHash` behaviour:
- // * [ __SYSTEM__NETMAP_EPOCH ] \
- // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
- // Will use the requested version of Network Map for object placement
- // calculation.
- // * [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
- // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
- // Will try older versions of Network Map to find an object until the depth
- // limit is reached.
+ // - [ __SYSTEM__NETMAP_EPOCH ] \
+ // (`__NEOFS__NETMAP_EPOCH` is deprecated) \
+ // Will use the requested version of Network Map for object placement
+ // calculation.
+ // - [ __SYSTEM__NETMAP_LOOKUP_DEPTH ] \
+ // (`__NEOFS__NETMAP_LOOKUP_DEPTH` is deprecated) \
+ // Will try older versions of Network Map to find an object until the depth
+ // limit is reached.
//
// Please refer to detailed `XHeader` description.
//
// Statuses:
- // - **OK** (0, SECTION_SUCCESS): \
- // data range of the object payload has been successfully hashed;
- // - Common failures (SECTION_FAILURE_COMMON);
- // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
- // access to operation RANGEHASH of the object is denied;
- // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
- // object not found in container;
- // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
- // the requested range is out of bounds;
- // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
- // object container not found;
- // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
- // provided session token has expired.
+ // - **OK** (0, SECTION_SUCCESS): \
+ // data range of the object payload has been successfully hashed;
+ // - Common failures (SECTION_FAILURE_COMMON);
+ // - **ACCESS_DENIED** (2048, SECTION_OBJECT): \
+ // access to operation RANGEHASH of the object is denied;
+ // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \
+ // object not found in container;
+ // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \
+ // the requested range is out of bounds;
+ // - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
+ // object container not found;
+ // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \
+ // provided session token has expired.
GetRangeHash(context.Context, *GetRangeHashRequest) (*GetRangeHashResponse, error)
}
@@ -709,7 +721,7 @@ func _ObjectService_Delete_Handler(srv interface{}, ctx context.Context, dec fun
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.object.ObjectService/Delete",
+ FullMethod: ObjectService_Delete_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Delete(ctx, req.(*DeleteRequest))
@@ -727,7 +739,7 @@ func _ObjectService_Head_Handler(srv interface{}, ctx context.Context, dec func(
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.object.ObjectService/Head",
+ FullMethod: ObjectService_Head_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Head(ctx, req.(*HeadRequest))
@@ -787,7 +799,7 @@ func _ObjectService_GetRangeHash_Handler(srv interface{}, ctx context.Context, d
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.object.ObjectService/GetRangeHash",
+ FullMethod: ObjectService_GetRangeHash_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).GetRangeHash(ctx, req.(*GetRangeHashRequest))
diff --git a/object/grpc/types.pb.go b/object/grpc/types.pb.go
index 506adda..11cb63e 100644
--- a/object/grpc/types.pb.go
+++ b/object/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: object/grpc/types.proto
diff --git a/refs/grpc/types.pb.go b/refs/grpc/types.pb.go
index 5e9bfb5..0d6b671 100644
--- a/refs/grpc/types.pb.go
+++ b/refs/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: refs/grpc/types.proto
diff --git a/reputation/convert.go b/reputation/convert.go
deleted file mode 100644
index ca54261..0000000
--- a/reputation/convert.go
+++ /dev/null
@@ -1,604 +0,0 @@
-package reputation
-
-import (
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs"
- refsGRPC "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
- reputation "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation/grpc"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/grpc"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
-)
-
-// ToGRPCMessage converts PeerID to gRPC-generated
-// reputation.PeerID message.
-func (x *PeerID) ToGRPCMessage() grpc.Message {
- var m *reputation.PeerID
-
- if x != nil {
- m = new(reputation.PeerID)
-
- m.SetPublicKey(x.publicKey)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore PeerID from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.PeerID message.
-func (x *PeerID) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.PeerID)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- x.publicKey = v.GetPublicKey()
-
- return nil
-}
-
-// ToGRPCMessage converts Trust to gRPC-generated
-// reputation.Trust message.
-func (x *Trust) ToGRPCMessage() grpc.Message {
- var m *reputation.Trust
-
- if x != nil {
- m = new(reputation.Trust)
-
- m.SetValue(x.val)
- m.SetPeer(x.peer.ToGRPCMessage().(*reputation.PeerID))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore Trust from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.Trust message.
-func (x *Trust) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.Trust)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- peer := v.GetPeer()
- if peer == nil {
- x.peer = nil
- } else {
- if x.peer == nil {
- x.peer = new(PeerID)
- }
-
- err := x.peer.FromGRPCMessage(peer)
- if err != nil {
- return err
- }
- }
-
- x.val = v.GetValue()
-
- return nil
-}
-
-// ToGRPCMessage converts PeerToPeerTrust to gRPC-generated
-// reputation.PeerToPeerTrust message.
-func (x *PeerToPeerTrust) ToGRPCMessage() grpc.Message {
- var m *reputation.PeerToPeerTrust
-
- if x != nil {
- m = new(reputation.PeerToPeerTrust)
-
- m.SetTrustingPeer(x.trusting.ToGRPCMessage().(*reputation.PeerID))
- m.SetTrust(x.trust.ToGRPCMessage().(*reputation.Trust))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore PeerToPeerTrust from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.PeerToPeerTrust message.
-func (x *PeerToPeerTrust) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.PeerToPeerTrust)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- trusting := v.GetTrustingPeer()
- if trusting == nil {
- x.trusting = nil
- } else {
- if x.trusting == nil {
- x.trusting = new(PeerID)
- }
-
- err = x.trusting.FromGRPCMessage(trusting)
- if err != nil {
- return err
- }
- }
-
- trust := v.GetTrust()
- if trust == nil {
- x.trust = nil
- } else {
- if x.trust == nil {
- x.trust = new(Trust)
- }
-
- err = x.trust.FromGRPCMessage(trust)
- }
-
- return err
-}
-
-// TrustsToGRPC converts slice of Trust structures
-// to slice of gRPC-generated Trust messages.
-func TrustsToGRPC(xs []Trust) (res []*reputation.Trust) {
- if xs != nil {
- res = make([]*reputation.Trust, 0, len(xs))
-
- for i := range xs {
- res = append(res, xs[i].ToGRPCMessage().(*reputation.Trust))
- }
- }
-
- return
-}
-
-// TrustsFromGRPC tries to restore slice of Trust structures from
-// slice of gRPC-generated reputation.Trust messages.
-func TrustsFromGRPC(xs []*reputation.Trust) (res []Trust, err error) {
- if xs != nil {
- res = make([]Trust, len(xs))
-
- for i := range xs {
- if xs[i] != nil {
- err = res[i].FromGRPCMessage(xs[i])
- if err != nil {
- return
- }
- }
- }
- }
-
- return
-}
-
-// ToGRPCMessage converts GlobalTrustBody to gRPC-generated
-// reputation.GlobalTrust_Body message.
-func (x *GlobalTrustBody) ToGRPCMessage() grpc.Message {
- var m *reputation.GlobalTrust_Body
-
- if x != nil {
- m = new(reputation.GlobalTrust_Body)
-
- m.SetManager(x.manager.ToGRPCMessage().(*reputation.PeerID))
- m.SetTrust(x.trust.ToGRPCMessage().(*reputation.Trust))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore GlobalTrustBody from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.GlobalTrust_Body message.
-func (x *GlobalTrustBody) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.GlobalTrust_Body)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- manager := v.GetManager()
- if manager == nil {
- x.manager = nil
- } else {
- if x.manager == nil {
- x.manager = new(PeerID)
- }
-
- err = x.manager.FromGRPCMessage(manager)
- if err != nil {
- return err
- }
- }
-
- trust := v.GetTrust()
- if trust == nil {
- x.trust = nil
- } else {
- if x.trust == nil {
- x.trust = new(Trust)
- }
-
- err = x.trust.FromGRPCMessage(trust)
- }
-
- return err
-}
-
-// ToGRPCMessage converts GlobalTrust to gRPC-generated
-// reputation.GlobalTrust message.
-func (x *GlobalTrust) ToGRPCMessage() grpc.Message {
- var m *reputation.GlobalTrust
-
- if x != nil {
- m = new(reputation.GlobalTrust)
-
- m.SetVersion(x.version.ToGRPCMessage().(*refsGRPC.Version))
- m.SetBody(x.body.ToGRPCMessage().(*reputation.GlobalTrust_Body))
- m.SetSignature(x.sig.ToGRPCMessage().(*refsGRPC.Signature))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore GlobalTrust from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.GlobalTrust message.
-func (x *GlobalTrust) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.GlobalTrust)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- version := v.GetVersion()
- if version == nil {
- x.version = nil
- } else {
- if x.version == nil {
- x.version = new(refs.Version)
- }
-
- err = x.version.FromGRPCMessage(version)
- if err != nil {
- return err
- }
- }
-
- body := v.GetBody()
- if body == nil {
- x.body = nil
- } else {
- if x.body == nil {
- x.body = new(GlobalTrustBody)
- }
-
- err = x.body.FromGRPCMessage(body)
- if err != nil {
- return err
- }
- }
-
- sig := v.GetSignature()
- if sig == nil {
- x.sig = nil
- } else {
- if x.sig == nil {
- x.sig = new(refs.Signature)
- }
-
- err = x.sig.FromGRPCMessage(sig)
- }
-
- return err
-}
-
-// ToGRPCMessage converts AnnounceLocalTrustRequestBody to gRPC-generated
-// reputation.AnnounceLocalTrustRequest_Body message.
-func (x *AnnounceLocalTrustRequestBody) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceLocalTrustRequest_Body
-
- if x != nil {
- m = new(reputation.AnnounceLocalTrustRequest_Body)
-
- m.SetEpoch(x.epoch)
- m.SetTrusts(TrustsToGRPC(x.trusts))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceLocalTrustRequestBody from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceLocalTrustRequest_Body message.
-func (x *AnnounceLocalTrustRequestBody) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceLocalTrustRequest_Body)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- x.trusts, err = TrustsFromGRPC(v.GetTrusts())
- if err != nil {
- return err
- }
-
- x.epoch = v.GetEpoch()
-
- return nil
-}
-
-// ToGRPCMessage converts AnnounceLocalTrustRequest to gRPC-generated
-// reputation.AnnounceLocalTrustRequest message.
-func (x *AnnounceLocalTrustRequest) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceLocalTrustRequest
-
- if x != nil {
- m = new(reputation.AnnounceLocalTrustRequest)
-
- m.SetBody(x.body.ToGRPCMessage().(*reputation.AnnounceLocalTrustRequest_Body))
- x.RequestHeaders.ToMessage(m)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceLocalTrustRequest from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceLocalTrustRequest message.
-func (x *AnnounceLocalTrustRequest) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceLocalTrustRequest)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- body := v.GetBody()
- if body == nil {
- x.body = nil
- } else {
- if x.body == nil {
- x.body = new(AnnounceLocalTrustRequestBody)
- }
-
- err = x.body.FromGRPCMessage(body)
- if err != nil {
- return err
- }
- }
-
- return x.RequestHeaders.FromMessage(v)
-}
-
-// ToGRPCMessage converts AnnounceLocalTrustResponseBody to gRPC-generated
-// reputation.AnnounceLocalTrustResponse_Body message.
-func (x *AnnounceLocalTrustResponseBody) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceLocalTrustResponse_Body
-
- if x != nil {
- m = new(reputation.AnnounceLocalTrustResponse_Body)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceLocalTrustResponseBody from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceLocalTrustResponse_Body message.
-func (x *AnnounceLocalTrustResponseBody) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceLocalTrustResponse_Body)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- return nil
-}
-
-// ToGRPCMessage converts AnnounceLocalTrustResponse to gRPC-generated
-// reputation.AnnounceLocalTrustResponse message.
-func (x *AnnounceLocalTrustResponse) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceLocalTrustResponse
-
- if x != nil {
- m = new(reputation.AnnounceLocalTrustResponse)
-
- m.SetBody(x.body.ToGRPCMessage().(*reputation.AnnounceLocalTrustResponse_Body))
- x.ResponseHeaders.ToMessage(m)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceLocalTrustResponse from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceLocalTrustResponse message.
-func (x *AnnounceLocalTrustResponse) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceLocalTrustResponse)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- body := v.GetBody()
- if body == nil {
- x.body = nil
- } else {
- if x.body == nil {
- x.body = new(AnnounceLocalTrustResponseBody)
- }
-
- err = x.body.FromGRPCMessage(body)
- if err != nil {
- return err
- }
- }
-
- return x.ResponseHeaders.FromMessage(v)
-}
-
-// ToGRPCMessage converts AnnounceIntermediateResultRequestBody to gRPC-generated
-// reputation.AnnounceIntermediateResultRequest_Body message.
-func (x *AnnounceIntermediateResultRequestBody) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceIntermediateResultRequest_Body
-
- if x != nil {
- m = new(reputation.AnnounceIntermediateResultRequest_Body)
-
- m.SetEpoch(x.epoch)
- m.SetIteration(x.iter)
- m.SetTrust(x.trust.ToGRPCMessage().(*reputation.PeerToPeerTrust))
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceIntermediateResultRequestBody from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceIntermediateResultRequest_Body message.
-func (x *AnnounceIntermediateResultRequestBody) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceIntermediateResultRequest_Body)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- trust := v.GetTrust()
- if trust == nil {
- x.trust = nil
- } else {
- if x.trust == nil {
- x.trust = new(PeerToPeerTrust)
- }
-
- err := x.trust.FromGRPCMessage(trust)
- if err != nil {
- return err
- }
- }
-
- x.epoch = v.GetEpoch()
- x.iter = v.GetIteration()
-
- return nil
-}
-
-// ToGRPCMessage converts AnnounceIntermediateResultRequest to gRPC-generated
-// reputation.AnnounceIntermediateResultRequest message.
-func (x *AnnounceIntermediateResultRequest) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceIntermediateResultRequest
-
- if x != nil {
- m = new(reputation.AnnounceIntermediateResultRequest)
-
- m.SetBody(x.body.ToGRPCMessage().(*reputation.AnnounceIntermediateResultRequest_Body))
- x.RequestHeaders.ToMessage(m)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceIntermediateResultRequest from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceIntermediateResultRequest message.
-func (x *AnnounceIntermediateResultRequest) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceIntermediateResultRequest)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- body := v.GetBody()
- if body == nil {
- x.body = nil
- } else {
- if x.body == nil {
- x.body = new(AnnounceIntermediateResultRequestBody)
- }
-
- err = x.body.FromGRPCMessage(body)
- if err != nil {
- return err
- }
- }
-
- return x.RequestHeaders.FromMessage(v)
-}
-
-// ToGRPCMessage converts AnnounceIntermediateResultResponseBody to gRPC-generated
-// reputation.AnnounceIntermediateResultResponse_Body message.
-func (x *AnnounceIntermediateResultResponseBody) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceIntermediateResultResponse_Body
-
- if x != nil {
- m = new(reputation.AnnounceIntermediateResultResponse_Body)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceIntermediateResultResponseBody from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceIntermediateResultResponse_Body message.
-func (x *AnnounceIntermediateResultResponseBody) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceIntermediateResultResponse_Body)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- return nil
-}
-
-// ToGRPCMessage converts AnnounceIntermediateResultResponse to gRPC-generated
-// reputation.AnnounceIntermediateResultResponse message.
-func (x *AnnounceIntermediateResultResponse) ToGRPCMessage() grpc.Message {
- var m *reputation.AnnounceIntermediateResultResponse
-
- if x != nil {
- m = new(reputation.AnnounceIntermediateResultResponse)
-
- m.SetBody(x.body.ToGRPCMessage().(*reputation.AnnounceIntermediateResultResponse_Body))
- x.ResponseHeaders.ToMessage(m)
- }
-
- return m
-}
-
-// FromGRPCMessage tries to restore AnnounceIntermediateResultResponse from grpc.Message.
-//
-// Returns message.ErrUnexpectedMessageType if m is not
-// a gRPC-generated reputation.AnnounceIntermediateResultResponse message.
-func (x *AnnounceIntermediateResultResponse) FromGRPCMessage(m grpc.Message) error {
- v, ok := m.(*reputation.AnnounceIntermediateResultResponse)
- if !ok {
- return message.NewUnexpectedMessageType(m, v)
- }
-
- var err error
-
- body := v.GetBody()
- if body == nil {
- x.body = nil
- } else {
- if x.body == nil {
- x.body = new(AnnounceIntermediateResultResponseBody)
- }
-
- err = x.body.FromGRPCMessage(body)
- if err != nil {
- return err
- }
- }
-
- return x.ResponseHeaders.FromMessage(v)
-}
diff --git a/reputation/grpc/service.go b/reputation/grpc/service.go
deleted file mode 100644
index 81ed890..0000000
--- a/reputation/grpc/service.go
+++ /dev/null
@@ -1,90 +0,0 @@
-package reputation
-
-import (
- session "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
-)
-
-// SetEpoch sets epoch in which the trust was assessed.
-func (x *AnnounceLocalTrustRequest_Body) SetEpoch(v uint64) {
- x.Epoch = v
-}
-
-// SetTrusts sets list of normalized trust values.
-func (x *AnnounceLocalTrustRequest_Body) SetTrusts(v []*Trust) {
- x.Trusts = v
-}
-
-// SetBody sets body of the request.
-func (x *AnnounceLocalTrustRequest) SetBody(v *AnnounceLocalTrustRequest_Body) {
- x.Body = v
-}
-
-// SetMetaHeader sets meta header of the request.
-func (x *AnnounceLocalTrustRequest) SetMetaHeader(v *session.RequestMetaHeader) {
- x.MetaHeader = v
-}
-
-// SetVerifyHeader sets verification header of the request.
-func (x *AnnounceLocalTrustRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
- x.VerifyHeader = v
-}
-
-// SetBody sets body of the response.
-func (x *AnnounceLocalTrustResponse) SetBody(v *AnnounceLocalTrustResponse_Body) {
- x.Body = v
-}
-
-// SetMetaHeader sets meta header of the response.
-func (x *AnnounceLocalTrustResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
- x.MetaHeader = v
-}
-
-// SetVerifyHeader sets verification header of the response.
-func (x *AnnounceLocalTrustResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
- x.VerifyHeader = v
-}
-
-// SetEpoch sets epoch in which the intermediate trust was assessed.
-func (x *AnnounceIntermediateResultRequest_Body) SetEpoch(v uint64) {
- x.Epoch = v
-}
-
-// SetIteration sets sequence number of the iteration.
-func (x *AnnounceIntermediateResultRequest_Body) SetIteration(v uint32) {
- x.Iteration = v
-}
-
-// SetTrust sets current global trust value.
-func (x *AnnounceIntermediateResultRequest_Body) SetTrust(v *PeerToPeerTrust) {
- x.Trust = v
-}
-
-// SetBody sets body of the request.
-func (x *AnnounceIntermediateResultRequest) SetBody(v *AnnounceIntermediateResultRequest_Body) {
- x.Body = v
-}
-
-// SetMetaHeader sets meta header of the request.
-func (x *AnnounceIntermediateResultRequest) SetMetaHeader(v *session.RequestMetaHeader) {
- x.MetaHeader = v
-}
-
-// SetVerifyHeader sets verification header of the request.
-func (x *AnnounceIntermediateResultRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
- x.VerifyHeader = v
-}
-
-// SetBody sets body of the response.
-func (x *AnnounceIntermediateResultResponse) SetBody(v *AnnounceIntermediateResultResponse_Body) {
- x.Body = v
-}
-
-// SetMetaHeader sets meta header of the response.
-func (x *AnnounceIntermediateResultResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
- x.MetaHeader = v
-}
-
-// SetVerifyHeader sets verification header of the response.
-func (x *AnnounceIntermediateResultResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
- x.VerifyHeader = v
-}
diff --git a/reputation/grpc/service.pb.go b/reputation/grpc/service.pb.go
deleted file mode 100644
index 2d0f61f..0000000
--- a/reputation/grpc/service.pb.go
+++ /dev/null
@@ -1,808 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.28.0
-// protoc v3.21.9
-// source: reputation/grpc/service.proto
-
-package reputation
-
-import (
- grpc "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// Announce node's local trust information.
-type AnnounceLocalTrustRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Body of the request message.
- Body *AnnounceLocalTrustRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
- // Carries request meta information. Header data is used only to regulate
- // message transport and does not affect request execution.
- MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
- // Carries request verification information. This header is used to
- // authenticate the nodes of the message route and check the correctness of
- // transmission.
- VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
-}
-
-func (x *AnnounceLocalTrustRequest) Reset() {
- *x = AnnounceLocalTrustRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceLocalTrustRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceLocalTrustRequest) ProtoMessage() {}
-
-func (x *AnnounceLocalTrustRequest) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceLocalTrustRequest.ProtoReflect.Descriptor instead.
-func (*AnnounceLocalTrustRequest) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *AnnounceLocalTrustRequest) GetBody() *AnnounceLocalTrustRequest_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *AnnounceLocalTrustRequest) GetMetaHeader() *grpc.RequestMetaHeader {
- if x != nil {
- return x.MetaHeader
- }
- return nil
-}
-
-func (x *AnnounceLocalTrustRequest) GetVerifyHeader() *grpc.RequestVerificationHeader {
- if x != nil {
- return x.VerifyHeader
- }
- return nil
-}
-
-// Node's local trust information announcement response.
-type AnnounceLocalTrustResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Body of the response message.
- Body *AnnounceLocalTrustResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
- // Carries response meta information. Header data is used only to regulate
- // message transport and does not affect request execution.
- MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
- // Carries response verification information. This header is used to
- // authenticate the nodes of the message route and check the correctness of
- // transmission.
- VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
-}
-
-func (x *AnnounceLocalTrustResponse) Reset() {
- *x = AnnounceLocalTrustResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceLocalTrustResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceLocalTrustResponse) ProtoMessage() {}
-
-func (x *AnnounceLocalTrustResponse) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceLocalTrustResponse.ProtoReflect.Descriptor instead.
-func (*AnnounceLocalTrustResponse) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *AnnounceLocalTrustResponse) GetBody() *AnnounceLocalTrustResponse_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *AnnounceLocalTrustResponse) GetMetaHeader() *grpc.ResponseMetaHeader {
- if x != nil {
- return x.MetaHeader
- }
- return nil
-}
-
-func (x *AnnounceLocalTrustResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader {
- if x != nil {
- return x.VerifyHeader
- }
- return nil
-}
-
-// Announce intermediate global trust information.
-type AnnounceIntermediateResultRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Body of the request message.
- Body *AnnounceIntermediateResultRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
- // Carries request meta information. Header data is used only to regulate
- // message transport and does not affect request execution.
- MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
- // Carries request verification information. This header is used to
- // authenticate the nodes of the message route and check the correctness of
- // transmission.
- VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
-}
-
-func (x *AnnounceIntermediateResultRequest) Reset() {
- *x = AnnounceIntermediateResultRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceIntermediateResultRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceIntermediateResultRequest) ProtoMessage() {}
-
-func (x *AnnounceIntermediateResultRequest) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceIntermediateResultRequest.ProtoReflect.Descriptor instead.
-func (*AnnounceIntermediateResultRequest) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *AnnounceIntermediateResultRequest) GetBody() *AnnounceIntermediateResultRequest_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *AnnounceIntermediateResultRequest) GetMetaHeader() *grpc.RequestMetaHeader {
- if x != nil {
- return x.MetaHeader
- }
- return nil
-}
-
-func (x *AnnounceIntermediateResultRequest) GetVerifyHeader() *grpc.RequestVerificationHeader {
- if x != nil {
- return x.VerifyHeader
- }
- return nil
-}
-
-// Intermediate global trust information announcement response.
-type AnnounceIntermediateResultResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Body of the response message.
- Body *AnnounceIntermediateResultResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
- // Carries response meta information. Header data is used only to regulate
- // message transport and does not affect request execution.
- MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
- // Carries response verification information. This header is used to
- // authenticate the nodes of the message route and check the correctness of
- // transmission.
- VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
-}
-
-func (x *AnnounceIntermediateResultResponse) Reset() {
- *x = AnnounceIntermediateResultResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceIntermediateResultResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceIntermediateResultResponse) ProtoMessage() {}
-
-func (x *AnnounceIntermediateResultResponse) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceIntermediateResultResponse.ProtoReflect.Descriptor instead.
-func (*AnnounceIntermediateResultResponse) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *AnnounceIntermediateResultResponse) GetBody() *AnnounceIntermediateResultResponse_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *AnnounceIntermediateResultResponse) GetMetaHeader() *grpc.ResponseMetaHeader {
- if x != nil {
- return x.MetaHeader
- }
- return nil
-}
-
-func (x *AnnounceIntermediateResultResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader {
- if x != nil {
- return x.VerifyHeader
- }
- return nil
-}
-
-// Announce node's local trust information.
-type AnnounceLocalTrustRequest_Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Trust assessment Epoch number
- Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
- // List of normalized local trust values to other NeoFS nodes. The value
- // is calculated according to EigenTrust++ algorithm and must be a
- // floating point number in [0;1] range.
- Trusts []*Trust `protobuf:"bytes,2,rep,name=trusts,proto3" json:"trusts,omitempty"`
-}
-
-func (x *AnnounceLocalTrustRequest_Body) Reset() {
- *x = AnnounceLocalTrustRequest_Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceLocalTrustRequest_Body) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceLocalTrustRequest_Body) ProtoMessage() {}
-
-func (x *AnnounceLocalTrustRequest_Body) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceLocalTrustRequest_Body.ProtoReflect.Descriptor instead.
-func (*AnnounceLocalTrustRequest_Body) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{0, 0}
-}
-
-func (x *AnnounceLocalTrustRequest_Body) GetEpoch() uint64 {
- if x != nil {
- return x.Epoch
- }
- return 0
-}
-
-func (x *AnnounceLocalTrustRequest_Body) GetTrusts() []*Trust {
- if x != nil {
- return x.Trusts
- }
- return nil
-}
-
-// Response to the node's local trust information announcement has an empty body
-// because the trust exchange operation is asynchronous. If Trust information
-// does not pass sanity checks, it is silently ignored.
-type AnnounceLocalTrustResponse_Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-}
-
-func (x *AnnounceLocalTrustResponse_Body) Reset() {
- *x = AnnounceLocalTrustResponse_Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceLocalTrustResponse_Body) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceLocalTrustResponse_Body) ProtoMessage() {}
-
-func (x *AnnounceLocalTrustResponse_Body) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceLocalTrustResponse_Body.ProtoReflect.Descriptor instead.
-func (*AnnounceLocalTrustResponse_Body) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{1, 0}
-}
-
-// Announce intermediate global trust information.
-type AnnounceIntermediateResultRequest_Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Iteration execution Epoch number
- Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
- // Iteration sequence number
- Iteration uint32 `protobuf:"varint,2,opt,name=iteration,proto3" json:"iteration,omitempty"`
- // Current global trust value calculated at the specified iteration
- Trust *PeerToPeerTrust `protobuf:"bytes,3,opt,name=trust,proto3" json:"trust,omitempty"`
-}
-
-func (x *AnnounceIntermediateResultRequest_Body) Reset() {
- *x = AnnounceIntermediateResultRequest_Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceIntermediateResultRequest_Body) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceIntermediateResultRequest_Body) ProtoMessage() {}
-
-func (x *AnnounceIntermediateResultRequest_Body) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceIntermediateResultRequest_Body.ProtoReflect.Descriptor instead.
-func (*AnnounceIntermediateResultRequest_Body) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{2, 0}
-}
-
-func (x *AnnounceIntermediateResultRequest_Body) GetEpoch() uint64 {
- if x != nil {
- return x.Epoch
- }
- return 0
-}
-
-func (x *AnnounceIntermediateResultRequest_Body) GetIteration() uint32 {
- if x != nil {
- return x.Iteration
- }
- return 0
-}
-
-func (x *AnnounceIntermediateResultRequest_Body) GetTrust() *PeerToPeerTrust {
- if x != nil {
- return x.Trust
- }
- return nil
-}
-
-// Response to the node's intermediate global trust information announcement has
-// an empty body because the trust exchange operation is asynchronous. If
-// Trust information does not pass sanity checks, it is silently ignored.
-type AnnounceIntermediateResultResponse_Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-}
-
-func (x *AnnounceIntermediateResultResponse_Body) Reset() {
- *x = AnnounceIntermediateResultResponse_Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_service_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *AnnounceIntermediateResultResponse_Body) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AnnounceIntermediateResultResponse_Body) ProtoMessage() {}
-
-func (x *AnnounceIntermediateResultResponse_Body) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_service_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AnnounceIntermediateResultResponse_Body.ProtoReflect.Descriptor instead.
-func (*AnnounceIntermediateResultResponse_Body) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_service_proto_rawDescGZIP(), []int{3, 0}
-}
-
-var File_reputation_grpc_service_proto protoreflect.FileDescriptor
-
-var file_reputation_grpc_service_proto_rawDesc = []byte{
- 0x0a, 0x1d, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
- 0x63, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x14, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x1a, 0x18, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63,
- 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x02, 0x0a,
- 0x19, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x72,
- 0x75, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x62, 0x6f,
- 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
- 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
- 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x72, 0x75,
- 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04,
- 0x62, 0x6f, 0x64, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61,
- 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
- 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
- 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x0d, 0x76,
- 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73,
- 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65,
- 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
- 0x52, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x51,
- 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x33, 0x0a, 0x06,
- 0x74, 0x72, 0x75, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e,
- 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x06, 0x74, 0x72, 0x75, 0x73, 0x74,
- 0x73, 0x22, 0x8b, 0x02, 0x0a, 0x1a, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f,
- 0x63, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x12, 0x49, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35,
- 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f,
- 0x63, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x46, 0x0a, 0x0b, 0x6d,
- 0x65, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x25, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73,
- 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74,
- 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61,
- 0x64, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x68, 0x65,
- 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x65, 0x6f,
- 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66,
- 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x06, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x22,
- 0x88, 0x03, 0x0a, 0x21, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65,
- 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
- 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75,
- 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x52,
- 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x6f, 0x64,
- 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f,
- 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e,
- 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
- 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64,
- 0x65, 0x72, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x51,
- 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
- 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61,
- 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65,
- 0x72, 0x1a, 0x77, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f,
- 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12,
- 0x1c, 0x0a, 0x09, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0d, 0x52, 0x09, 0x69, 0x74, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a,
- 0x05, 0x74, 0x72, 0x75, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6e,
- 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x54, 0x6f, 0x50, 0x65, 0x65, 0x72, 0x54, 0x72,
- 0x75, 0x73, 0x74, 0x52, 0x05, 0x74, 0x72, 0x75, 0x73, 0x74, 0x22, 0x9b, 0x02, 0x0a, 0x22, 0x41,
- 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69,
- 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x51, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x3d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x49,
- 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04,
- 0x62, 0x6f, 0x64, 0x79, 0x12, 0x46, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61,
- 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
- 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
- 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x0d,
- 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e,
- 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64,
- 0x65, 0x72, 0x52, 0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
- 0x1a, 0x06, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x32, 0x9e, 0x02, 0x0a, 0x11, 0x52, 0x65, 0x70,
- 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x77,
- 0x0a, 0x12, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x54,
- 0x72, 0x75, 0x73, 0x74, 0x12, 0x2f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32,
- 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f,
- 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
- 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e,
- 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x1a, 0x41, 0x6e, 0x6e, 0x6f,
- 0x75, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65,
- 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x37, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
- 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e,
- 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61,
- 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x38, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x49,
- 0x6e, 0x74, 0x65, 0x72, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6d, 0x5a, 0x4a, 0x67, 0x69, 0x74,
- 0x2e, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x54, 0x72,
- 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74,
- 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70,
- 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x72, 0x65, 0x70,
- 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1e, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69,
- 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x52, 0x65,
- 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
-}
-
-var (
- file_reputation_grpc_service_proto_rawDescOnce sync.Once
- file_reputation_grpc_service_proto_rawDescData = file_reputation_grpc_service_proto_rawDesc
-)
-
-func file_reputation_grpc_service_proto_rawDescGZIP() []byte {
- file_reputation_grpc_service_proto_rawDescOnce.Do(func() {
- file_reputation_grpc_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_reputation_grpc_service_proto_rawDescData)
- })
- return file_reputation_grpc_service_proto_rawDescData
-}
-
-var file_reputation_grpc_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
-var file_reputation_grpc_service_proto_goTypes = []interface{}{
- (*AnnounceLocalTrustRequest)(nil), // 0: neo.fs.v2.reputation.AnnounceLocalTrustRequest
- (*AnnounceLocalTrustResponse)(nil), // 1: neo.fs.v2.reputation.AnnounceLocalTrustResponse
- (*AnnounceIntermediateResultRequest)(nil), // 2: neo.fs.v2.reputation.AnnounceIntermediateResultRequest
- (*AnnounceIntermediateResultResponse)(nil), // 3: neo.fs.v2.reputation.AnnounceIntermediateResultResponse
- (*AnnounceLocalTrustRequest_Body)(nil), // 4: neo.fs.v2.reputation.AnnounceLocalTrustRequest.Body
- (*AnnounceLocalTrustResponse_Body)(nil), // 5: neo.fs.v2.reputation.AnnounceLocalTrustResponse.Body
- (*AnnounceIntermediateResultRequest_Body)(nil), // 6: neo.fs.v2.reputation.AnnounceIntermediateResultRequest.Body
- (*AnnounceIntermediateResultResponse_Body)(nil), // 7: neo.fs.v2.reputation.AnnounceIntermediateResultResponse.Body
- (*grpc.RequestMetaHeader)(nil), // 8: neo.fs.v2.session.RequestMetaHeader
- (*grpc.RequestVerificationHeader)(nil), // 9: neo.fs.v2.session.RequestVerificationHeader
- (*grpc.ResponseMetaHeader)(nil), // 10: neo.fs.v2.session.ResponseMetaHeader
- (*grpc.ResponseVerificationHeader)(nil), // 11: neo.fs.v2.session.ResponseVerificationHeader
- (*Trust)(nil), // 12: neo.fs.v2.reputation.Trust
- (*PeerToPeerTrust)(nil), // 13: neo.fs.v2.reputation.PeerToPeerTrust
-}
-var file_reputation_grpc_service_proto_depIdxs = []int32{
- 4, // 0: neo.fs.v2.reputation.AnnounceLocalTrustRequest.body:type_name -> neo.fs.v2.reputation.AnnounceLocalTrustRequest.Body
- 8, // 1: neo.fs.v2.reputation.AnnounceLocalTrustRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
- 9, // 2: neo.fs.v2.reputation.AnnounceLocalTrustRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
- 5, // 3: neo.fs.v2.reputation.AnnounceLocalTrustResponse.body:type_name -> neo.fs.v2.reputation.AnnounceLocalTrustResponse.Body
- 10, // 4: neo.fs.v2.reputation.AnnounceLocalTrustResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
- 11, // 5: neo.fs.v2.reputation.AnnounceLocalTrustResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
- 6, // 6: neo.fs.v2.reputation.AnnounceIntermediateResultRequest.body:type_name -> neo.fs.v2.reputation.AnnounceIntermediateResultRequest.Body
- 8, // 7: neo.fs.v2.reputation.AnnounceIntermediateResultRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
- 9, // 8: neo.fs.v2.reputation.AnnounceIntermediateResultRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
- 7, // 9: neo.fs.v2.reputation.AnnounceIntermediateResultResponse.body:type_name -> neo.fs.v2.reputation.AnnounceIntermediateResultResponse.Body
- 10, // 10: neo.fs.v2.reputation.AnnounceIntermediateResultResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
- 11, // 11: neo.fs.v2.reputation.AnnounceIntermediateResultResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
- 12, // 12: neo.fs.v2.reputation.AnnounceLocalTrustRequest.Body.trusts:type_name -> neo.fs.v2.reputation.Trust
- 13, // 13: neo.fs.v2.reputation.AnnounceIntermediateResultRequest.Body.trust:type_name -> neo.fs.v2.reputation.PeerToPeerTrust
- 0, // 14: neo.fs.v2.reputation.ReputationService.AnnounceLocalTrust:input_type -> neo.fs.v2.reputation.AnnounceLocalTrustRequest
- 2, // 15: neo.fs.v2.reputation.ReputationService.AnnounceIntermediateResult:input_type -> neo.fs.v2.reputation.AnnounceIntermediateResultRequest
- 1, // 16: neo.fs.v2.reputation.ReputationService.AnnounceLocalTrust:output_type -> neo.fs.v2.reputation.AnnounceLocalTrustResponse
- 3, // 17: neo.fs.v2.reputation.ReputationService.AnnounceIntermediateResult:output_type -> neo.fs.v2.reputation.AnnounceIntermediateResultResponse
- 16, // [16:18] is the sub-list for method output_type
- 14, // [14:16] is the sub-list for method input_type
- 14, // [14:14] is the sub-list for extension type_name
- 14, // [14:14] is the sub-list for extension extendee
- 0, // [0:14] is the sub-list for field type_name
-}
-
-func init() { file_reputation_grpc_service_proto_init() }
-func file_reputation_grpc_service_proto_init() {
- if File_reputation_grpc_service_proto != nil {
- return
- }
- file_reputation_grpc_types_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_reputation_grpc_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceLocalTrustRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceLocalTrustResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceIntermediateResultRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceIntermediateResultResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceLocalTrustRequest_Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceLocalTrustResponse_Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceIntermediateResultRequest_Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AnnounceIntermediateResultResponse_Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_reputation_grpc_service_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_reputation_grpc_service_proto_goTypes,
- DependencyIndexes: file_reputation_grpc_service_proto_depIdxs,
- MessageInfos: file_reputation_grpc_service_proto_msgTypes,
- }.Build()
- File_reputation_grpc_service_proto = out.File
- file_reputation_grpc_service_proto_rawDesc = nil
- file_reputation_grpc_service_proto_goTypes = nil
- file_reputation_grpc_service_proto_depIdxs = nil
-}
diff --git a/reputation/grpc/service_grpc.pb.go b/reputation/grpc/service_grpc.pb.go
deleted file mode 100644
index 582a8cd..0000000
--- a/reputation/grpc/service_grpc.pb.go
+++ /dev/null
@@ -1,165 +0,0 @@
-// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
-// versions:
-// - protoc-gen-go-grpc v1.2.0
-// - protoc v3.21.9
-// source: reputation/grpc/service.proto
-
-package reputation
-
-import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
-)
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the grpc package it is being compiled against.
-// Requires gRPC-Go v1.32.0 or later.
-const _ = grpc.SupportPackageIsVersion7
-
-// ReputationServiceClient is the client API for ReputationService service.
-//
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
-type ReputationServiceClient interface {
- // Announce local client trust information to any node in NeoFS network.
- //
- // Statuses:
- // - **OK** (0, SECTION_SUCCESS):
- // local trust has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
- AnnounceLocalTrust(ctx context.Context, in *AnnounceLocalTrustRequest, opts ...grpc.CallOption) (*AnnounceLocalTrustResponse, error)
- // Announce the intermediate result of the iterative algorithm for
- // calculating the global reputation of the node in NeoFS network.
- //
- // Statuses:
- // - **OK** (0, SECTION_SUCCESS):
- // intermediate trust estimation has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
- AnnounceIntermediateResult(ctx context.Context, in *AnnounceIntermediateResultRequest, opts ...grpc.CallOption) (*AnnounceIntermediateResultResponse, error)
-}
-
-type reputationServiceClient struct {
- cc grpc.ClientConnInterface
-}
-
-func NewReputationServiceClient(cc grpc.ClientConnInterface) ReputationServiceClient {
- return &reputationServiceClient{cc}
-}
-
-func (c *reputationServiceClient) AnnounceLocalTrust(ctx context.Context, in *AnnounceLocalTrustRequest, opts ...grpc.CallOption) (*AnnounceLocalTrustResponse, error) {
- out := new(AnnounceLocalTrustResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.reputation.ReputationService/AnnounceLocalTrust", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *reputationServiceClient) AnnounceIntermediateResult(ctx context.Context, in *AnnounceIntermediateResultRequest, opts ...grpc.CallOption) (*AnnounceIntermediateResultResponse, error) {
- out := new(AnnounceIntermediateResultResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.reputation.ReputationService/AnnounceIntermediateResult", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-// ReputationServiceServer is the server API for ReputationService service.
-// All implementations should embed UnimplementedReputationServiceServer
-// for forward compatibility
-type ReputationServiceServer interface {
- // Announce local client trust information to any node in NeoFS network.
- //
- // Statuses:
- // - **OK** (0, SECTION_SUCCESS):
- // local trust has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
- AnnounceLocalTrust(context.Context, *AnnounceLocalTrustRequest) (*AnnounceLocalTrustResponse, error)
- // Announce the intermediate result of the iterative algorithm for
- // calculating the global reputation of the node in NeoFS network.
- //
- // Statuses:
- // - **OK** (0, SECTION_SUCCESS):
- // intermediate trust estimation has been successfully announced;
- // - Common failures (SECTION_FAILURE_COMMON).
- AnnounceIntermediateResult(context.Context, *AnnounceIntermediateResultRequest) (*AnnounceIntermediateResultResponse, error)
-}
-
-// UnimplementedReputationServiceServer should be embedded to have forward compatible implementations.
-type UnimplementedReputationServiceServer struct {
-}
-
-func (UnimplementedReputationServiceServer) AnnounceLocalTrust(context.Context, *AnnounceLocalTrustRequest) (*AnnounceLocalTrustResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AnnounceLocalTrust not implemented")
-}
-func (UnimplementedReputationServiceServer) AnnounceIntermediateResult(context.Context, *AnnounceIntermediateResultRequest) (*AnnounceIntermediateResultResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AnnounceIntermediateResult not implemented")
-}
-
-// UnsafeReputationServiceServer may be embedded to opt out of forward compatibility for this service.
-// Use of this interface is not recommended, as added methods to ReputationServiceServer will
-// result in compilation errors.
-type UnsafeReputationServiceServer interface {
- mustEmbedUnimplementedReputationServiceServer()
-}
-
-func RegisterReputationServiceServer(s grpc.ServiceRegistrar, srv ReputationServiceServer) {
- s.RegisterService(&ReputationService_ServiceDesc, srv)
-}
-
-func _ReputationService_AnnounceLocalTrust_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AnnounceLocalTrustRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ReputationServiceServer).AnnounceLocalTrust(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/neo.fs.v2.reputation.ReputationService/AnnounceLocalTrust",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReputationServiceServer).AnnounceLocalTrust(ctx, req.(*AnnounceLocalTrustRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _ReputationService_AnnounceIntermediateResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(AnnounceIntermediateResultRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(ReputationServiceServer).AnnounceIntermediateResult(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/neo.fs.v2.reputation.ReputationService/AnnounceIntermediateResult",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(ReputationServiceServer).AnnounceIntermediateResult(ctx, req.(*AnnounceIntermediateResultRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-// ReputationService_ServiceDesc is the grpc.ServiceDesc for ReputationService service.
-// It's only intended for direct use with grpc.RegisterService,
-// and not to be introspected or modified (even as a copy)
-var ReputationService_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "neo.fs.v2.reputation.ReputationService",
- HandlerType: (*ReputationServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "AnnounceLocalTrust",
- Handler: _ReputationService_AnnounceLocalTrust_Handler,
- },
- {
- MethodName: "AnnounceIntermediateResult",
- Handler: _ReputationService_AnnounceIntermediateResult_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "reputation/grpc/service.proto",
-}
diff --git a/reputation/grpc/types.go b/reputation/grpc/types.go
deleted file mode 100644
index 63f2d34..0000000
--- a/reputation/grpc/types.go
+++ /dev/null
@@ -1,55 +0,0 @@
-package reputation
-
-import (
- refs "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
-)
-
-// SetPublicKey sets binary public key of ID.
-func (x *PeerID) SetPublicKey(v []byte) {
- x.PublicKey = v
-}
-
-// SetPeer sets trusted peer's ID.
-func (x *Trust) SetPeer(v *PeerID) {
- x.Peer = v
-}
-
-// SetValue sets trust value.
-func (x *Trust) SetValue(v float64) {
- x.Value = v
-}
-
-// SetTrustingPeer sets trusting peer ID.
-func (x *PeerToPeerTrust) SetTrustingPeer(v *PeerID) {
- x.TrustingPeer = v
-}
-
-// SetTrust sets trust value of trusting peer to the trusted one.
-func (x *PeerToPeerTrust) SetTrust(v *Trust) {
- x.Trust = v
-}
-
-// SetManager sets manager ID.
-func (x *GlobalTrust_Body) SetManager(v *PeerID) {
- x.Manager = v
-}
-
-// SetTrust sets global trust value.
-func (x *GlobalTrust_Body) SetTrust(v *Trust) {
- x.Trust = v
-}
-
-// SetVersion sets message format version.
-func (x *GlobalTrust) SetVersion(v *refs.Version) {
- x.Version = v
-}
-
-// SetBody sets message body.
-func (x *GlobalTrust) SetBody(v *GlobalTrust_Body) {
- x.Body = v
-}
-
-// SetSignature sets body signature.
-func (x *GlobalTrust) SetSignature(v *refs.Signature) {
- x.Signature = v
-}
diff --git a/reputation/grpc/types.pb.go b/reputation/grpc/types.pb.go
deleted file mode 100644
index b95b240..0000000
--- a/reputation/grpc/types.pb.go
+++ /dev/null
@@ -1,500 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.28.0
-// protoc v3.21.9
-// source: reputation/grpc/types.proto
-
-package reputation
-
-import (
- grpc "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// NeoFS unique peer identifier is a 33 byte long compressed public key of the
-// node, the same as the one stored in the network map.
-//
-// String presentation is a
-// [base58](https://tools.ietf.org/html/draft-msporny-base58-02) encoded string.
-//
-// JSON value will be data encoded as a string using standard base64
-// encoding with paddings. Either
-// [standard](https://tools.ietf.org/html/rfc4648#section-4) or
-// [URL-safe](https://tools.ietf.org/html/rfc4648#section-5) base64 encoding
-// with/without paddings are accepted.
-type PeerID struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Peer node's public key
- PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
-}
-
-func (x *PeerID) Reset() {
- *x = PeerID{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_types_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *PeerID) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PeerID) ProtoMessage() {}
-
-func (x *PeerID) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_types_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PeerID.ProtoReflect.Descriptor instead.
-func (*PeerID) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_types_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *PeerID) GetPublicKey() []byte {
- if x != nil {
- return x.PublicKey
- }
- return nil
-}
-
-// Trust level to a NeoFS network peer.
-type Trust struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Identifier of the trusted peer
- Peer *PeerID `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
- // Trust level in [0:1] range
- Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
-}
-
-func (x *Trust) Reset() {
- *x = Trust{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_types_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *Trust) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Trust) ProtoMessage() {}
-
-func (x *Trust) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_types_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Trust.ProtoReflect.Descriptor instead.
-func (*Trust) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_types_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *Trust) GetPeer() *PeerID {
- if x != nil {
- return x.Peer
- }
- return nil
-}
-
-func (x *Trust) GetValue() float64 {
- if x != nil {
- return x.Value
- }
- return 0
-}
-
-// Trust level of a peer to a peer.
-type PeerToPeerTrust struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Identifier of the trusting peer
- TrustingPeer *PeerID `protobuf:"bytes,1,opt,name=trusting_peer,json=trustingPeer,proto3" json:"trusting_peer,omitempty"`
- // Trust level
- Trust *Trust `protobuf:"bytes,2,opt,name=trust,proto3" json:"trust,omitempty"`
-}
-
-func (x *PeerToPeerTrust) Reset() {
- *x = PeerToPeerTrust{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_types_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *PeerToPeerTrust) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PeerToPeerTrust) ProtoMessage() {}
-
-func (x *PeerToPeerTrust) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_types_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PeerToPeerTrust.ProtoReflect.Descriptor instead.
-func (*PeerToPeerTrust) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_types_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *PeerToPeerTrust) GetTrustingPeer() *PeerID {
- if x != nil {
- return x.TrustingPeer
- }
- return nil
-}
-
-func (x *PeerToPeerTrust) GetTrust() *Trust {
- if x != nil {
- return x.Trust
- }
- return nil
-}
-
-// Global trust level to NeoFS node.
-type GlobalTrust struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Message format version. Effectively, the version of API library used to create
- // the message.
- Version *grpc.Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
- // Message body
- Body *GlobalTrust_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
- // Signature of the binary `body` field by the manager.
- Signature *grpc.Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
-}
-
-func (x *GlobalTrust) Reset() {
- *x = GlobalTrust{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_types_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *GlobalTrust) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GlobalTrust) ProtoMessage() {}
-
-func (x *GlobalTrust) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_types_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use GlobalTrust.ProtoReflect.Descriptor instead.
-func (*GlobalTrust) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_types_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *GlobalTrust) GetVersion() *grpc.Version {
- if x != nil {
- return x.Version
- }
- return nil
-}
-
-func (x *GlobalTrust) GetBody() *GlobalTrust_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *GlobalTrust) GetSignature() *grpc.Signature {
- if x != nil {
- return x.Signature
- }
- return nil
-}
-
-// Message body structure.
-type GlobalTrust_Body struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Node manager ID
- Manager *PeerID `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"`
- // Global trust level
- Trust *Trust `protobuf:"bytes,2,opt,name=trust,proto3" json:"trust,omitempty"`
-}
-
-func (x *GlobalTrust_Body) Reset() {
- *x = GlobalTrust_Body{}
- if protoimpl.UnsafeEnabled {
- mi := &file_reputation_grpc_types_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *GlobalTrust_Body) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GlobalTrust_Body) ProtoMessage() {}
-
-func (x *GlobalTrust_Body) ProtoReflect() protoreflect.Message {
- mi := &file_reputation_grpc_types_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use GlobalTrust_Body.ProtoReflect.Descriptor instead.
-func (*GlobalTrust_Body) Descriptor() ([]byte, []int) {
- return file_reputation_grpc_types_proto_rawDescGZIP(), []int{3, 0}
-}
-
-func (x *GlobalTrust_Body) GetManager() *PeerID {
- if x != nil {
- return x.Manager
- }
- return nil
-}
-
-func (x *GlobalTrust_Body) GetTrust() *Trust {
- if x != nil {
- return x.Trust
- }
- return nil
-}
-
-var File_reputation_grpc_types_proto protoreflect.FileDescriptor
-
-var file_reputation_grpc_types_proto_rawDesc = []byte{
- 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
- 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6e,
- 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x1a, 0x15, 0x72, 0x65, 0x66, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x74,
- 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x06, 0x50, 0x65,
- 0x65, 0x72, 0x49, 0x44, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b,
- 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
- 0x4b, 0x65, 0x79, 0x22, 0x4f, 0x0a, 0x05, 0x54, 0x72, 0x75, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x04,
- 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6e, 0x65, 0x6f,
- 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x49, 0x44, 0x52, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x14,
- 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76,
- 0x61, 0x6c, 0x75, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x0f, 0x50, 0x65, 0x65, 0x72, 0x54, 0x6f, 0x50,
- 0x65, 0x65, 0x72, 0x54, 0x72, 0x75, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x74, 0x72, 0x75, 0x73,
- 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x1c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x49, 0x44, 0x52, 0x0c, 0x74,
- 0x72, 0x75, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x74,
- 0x72, 0x75, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f,
- 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x52, 0x05, 0x74, 0x72, 0x75, 0x73, 0x74, 0x22, 0xa8,
- 0x02, 0x0a, 0x0b, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x54, 0x72, 0x75, 0x73, 0x74, 0x12, 0x31,
- 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x17, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66, 0x73,
- 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
- 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x26, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x54, 0x72, 0x75,
- 0x73, 0x74, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x37, 0x0a,
- 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x19, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x66,
- 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x69, 0x67,
- 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x1a, 0x71, 0x0a, 0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x36,
- 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x1c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75,
- 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x49, 0x44, 0x52, 0x07, 0x6d,
- 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x72, 0x75, 0x73, 0x74, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
- 0x32, 0x2e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x72, 0x75,
- 0x73, 0x74, 0x52, 0x05, 0x74, 0x72, 0x75, 0x73, 0x74, 0x42, 0x6d, 0x5a, 0x4a, 0x67, 0x69, 0x74,
- 0x2e, 0x66, 0x72, 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2e, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x54, 0x72,
- 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 0x6f, 0x73, 0x74,
- 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70,
- 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x72, 0x65, 0x70,
- 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1e, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69,
- 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x52, 0x65,
- 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
-}
-
-var (
- file_reputation_grpc_types_proto_rawDescOnce sync.Once
- file_reputation_grpc_types_proto_rawDescData = file_reputation_grpc_types_proto_rawDesc
-)
-
-func file_reputation_grpc_types_proto_rawDescGZIP() []byte {
- file_reputation_grpc_types_proto_rawDescOnce.Do(func() {
- file_reputation_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_reputation_grpc_types_proto_rawDescData)
- })
- return file_reputation_grpc_types_proto_rawDescData
-}
-
-var file_reputation_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
-var file_reputation_grpc_types_proto_goTypes = []interface{}{
- (*PeerID)(nil), // 0: neo.fs.v2.reputation.PeerID
- (*Trust)(nil), // 1: neo.fs.v2.reputation.Trust
- (*PeerToPeerTrust)(nil), // 2: neo.fs.v2.reputation.PeerToPeerTrust
- (*GlobalTrust)(nil), // 3: neo.fs.v2.reputation.GlobalTrust
- (*GlobalTrust_Body)(nil), // 4: neo.fs.v2.reputation.GlobalTrust.Body
- (*grpc.Version)(nil), // 5: neo.fs.v2.refs.Version
- (*grpc.Signature)(nil), // 6: neo.fs.v2.refs.Signature
-}
-var file_reputation_grpc_types_proto_depIdxs = []int32{
- 0, // 0: neo.fs.v2.reputation.Trust.peer:type_name -> neo.fs.v2.reputation.PeerID
- 0, // 1: neo.fs.v2.reputation.PeerToPeerTrust.trusting_peer:type_name -> neo.fs.v2.reputation.PeerID
- 1, // 2: neo.fs.v2.reputation.PeerToPeerTrust.trust:type_name -> neo.fs.v2.reputation.Trust
- 5, // 3: neo.fs.v2.reputation.GlobalTrust.version:type_name -> neo.fs.v2.refs.Version
- 4, // 4: neo.fs.v2.reputation.GlobalTrust.body:type_name -> neo.fs.v2.reputation.GlobalTrust.Body
- 6, // 5: neo.fs.v2.reputation.GlobalTrust.signature:type_name -> neo.fs.v2.refs.Signature
- 0, // 6: neo.fs.v2.reputation.GlobalTrust.Body.manager:type_name -> neo.fs.v2.reputation.PeerID
- 1, // 7: neo.fs.v2.reputation.GlobalTrust.Body.trust:type_name -> neo.fs.v2.reputation.Trust
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
-}
-
-func init() { file_reputation_grpc_types_proto_init() }
-func file_reputation_grpc_types_proto_init() {
- if File_reputation_grpc_types_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_reputation_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PeerID); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Trust); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PeerToPeerTrust); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GlobalTrust); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_reputation_grpc_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GlobalTrust_Body); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_reputation_grpc_types_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_reputation_grpc_types_proto_goTypes,
- DependencyIndexes: file_reputation_grpc_types_proto_depIdxs,
- MessageInfos: file_reputation_grpc_types_proto_msgTypes,
- }.Build()
- File_reputation_grpc_types_proto = out.File
- file_reputation_grpc_types_proto_rawDesc = nil
- file_reputation_grpc_types_proto_goTypes = nil
- file_reputation_grpc_types_proto_depIdxs = nil
-}
diff --git a/reputation/json.go b/reputation/json.go
deleted file mode 100644
index 3976462..0000000
--- a/reputation/json.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package reputation
-
-import (
- reputation "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation/grpc"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
-)
-
-func (x *PeerID) MarshalJSON() ([]byte, error) {
- return message.MarshalJSON(x)
-}
-
-func (x *PeerID) UnmarshalJSON(data []byte) error {
- return message.UnmarshalJSON(x, data, new(reputation.PeerID))
-}
-
-func (x *Trust) MarshalJSON() ([]byte, error) {
- return message.MarshalJSON(x)
-}
-
-func (x *Trust) UnmarshalJSON(data []byte) error {
- return message.UnmarshalJSON(x, data, new(reputation.Trust))
-}
-
-func (x *PeerToPeerTrust) MarshalJSON() ([]byte, error) {
- return message.MarshalJSON(x)
-}
-
-func (x *PeerToPeerTrust) UnmarshalJSON(data []byte) error {
- return message.UnmarshalJSON(x, data, new(reputation.PeerToPeerTrust))
-}
-
-func (x *GlobalTrust) MarshalJSON() ([]byte, error) {
- return message.MarshalJSON(x)
-}
-
-func (x *GlobalTrust) UnmarshalJSON(data []byte) error {
- return message.UnmarshalJSON(x, data, new(reputation.GlobalTrust))
-}
diff --git a/reputation/marshal.go b/reputation/marshal.go
deleted file mode 100644
index a64e822..0000000
--- a/reputation/marshal.go
+++ /dev/null
@@ -1,276 +0,0 @@
-package reputation
-
-import (
- reputation "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation/grpc"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
- protoutil "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
-)
-
-const (
- _ = iota
- peerIDPubKeyFNum
-)
-
-func (x *PeerID) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- protoutil.BytesMarshal(peerIDPubKeyFNum, buf, x.publicKey)
-
- return buf
-}
-
-func (x *PeerID) StableSize() (size int) {
- size += protoutil.BytesSize(peerIDPubKeyFNum, x.publicKey)
-
- return
-}
-
-func (x *PeerID) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.PeerID))
-}
-
-const (
- _ = iota
- trustPeerFNum
- trustValueFNum
-)
-
-func (x *Trust) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.NestedStructureMarshal(trustPeerFNum, buf[offset:], x.peer)
- protoutil.Float64Marshal(trustValueFNum, buf[offset:], x.val)
-
- return buf
-}
-
-func (x *Trust) StableSize() (size int) {
- size += protoutil.NestedStructureSize(trustPeerFNum, x.peer)
- size += protoutil.Float64Size(trustValueFNum, x.val)
-
- return
-}
-
-func (x *Trust) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.Trust))
-}
-
-const (
- _ = iota
- p2pTrustTrustingFNum
- p2pTrustValueFNum
-)
-
-func (x *PeerToPeerTrust) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.NestedStructureMarshal(p2pTrustTrustingFNum, buf, x.trusting)
- protoutil.NestedStructureMarshal(p2pTrustValueFNum, buf[offset:], x.trust)
-
- return buf
-}
-
-func (x *PeerToPeerTrust) StableSize() (size int) {
- size += protoutil.NestedStructureSize(p2pTrustTrustingFNum, x.trusting)
- size += protoutil.NestedStructureSize(p2pTrustValueFNum, x.trust)
-
- return
-}
-
-func (x *PeerToPeerTrust) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.PeerToPeerTrust))
-}
-
-const (
- _ = iota
- globalTrustBodyManagerFNum
- globalTrustBodyValueFNum
-)
-
-func (x *GlobalTrustBody) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.NestedStructureMarshal(globalTrustBodyManagerFNum, buf, x.manager)
- protoutil.NestedStructureMarshal(globalTrustBodyValueFNum, buf[offset:], x.trust)
-
- return buf
-}
-
-func (x *GlobalTrustBody) StableSize() (size int) {
- size += protoutil.NestedStructureSize(globalTrustBodyManagerFNum, x.manager)
- size += protoutil.NestedStructureSize(globalTrustBodyValueFNum, x.trust)
-
- return
-}
-
-func (x *GlobalTrustBody) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.GlobalTrust_Body))
-}
-
-const (
- _ = iota
- globalTrustVersionFNum
- globalTrustBodyFNum
- globalTrustSigFNum
-)
-
-func (x *GlobalTrust) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.NestedStructureMarshal(globalTrustVersionFNum, buf, x.version)
- offset += protoutil.NestedStructureMarshal(globalTrustBodyFNum, buf[offset:], x.body)
- protoutil.NestedStructureMarshal(globalTrustSigFNum, buf[offset:], x.sig)
-
- return buf
-}
-
-func (x *GlobalTrust) StableSize() (size int) {
- size += protoutil.NestedStructureSize(globalTrustVersionFNum, x.version)
- size += protoutil.NestedStructureSize(globalTrustBodyFNum, x.body)
- size += protoutil.NestedStructureSize(globalTrustSigFNum, x.sig)
-
- return
-}
-
-func (x *GlobalTrust) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.GlobalTrust))
-}
-
-const (
- _ = iota
- announceLocalTrustBodyEpochFNum
- announceLocalTrustBodyTrustsFNum
-)
-
-func (x *AnnounceLocalTrustRequestBody) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.UInt64Marshal(announceLocalTrustBodyEpochFNum, buf[offset:], x.epoch)
-
- for i := range x.trusts {
- offset += protoutil.NestedStructureMarshal(announceLocalTrustBodyTrustsFNum, buf[offset:], &x.trusts[i])
- }
-
- return buf
-}
-
-func (x *AnnounceLocalTrustRequestBody) StableSize() (size int) {
- size += protoutil.UInt64Size(announceLocalTrustBodyEpochFNum, x.epoch)
-
- for i := range x.trusts {
- size += protoutil.NestedStructureSize(announceLocalTrustBodyTrustsFNum, &x.trusts[i])
- }
-
- return
-}
-
-func (x *AnnounceLocalTrustRequestBody) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.AnnounceLocalTrustRequest_Body))
-}
-
-func (x *AnnounceLocalTrustResponseBody) StableMarshal(buf []byte) []byte {
- return buf
-}
-
-func (x *AnnounceLocalTrustResponseBody) StableSize() int {
- return 0
-}
-
-func (x *AnnounceLocalTrustResponseBody) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.AnnounceLocalTrustResponse_Body))
-}
-
-const (
- _ = iota
- announceInterResBodyEpochFNum
- announceInterResBodyIterFNum
- announceInterResBodyTrustFNum
-)
-
-func (x *AnnounceIntermediateResultRequestBody) StableMarshal(buf []byte) []byte {
- if x == nil {
- return []byte{}
- }
-
- if buf == nil {
- buf = make([]byte, x.StableSize())
- }
-
- var offset int
-
- offset += protoutil.UInt64Marshal(announceInterResBodyEpochFNum, buf, x.epoch)
- offset += protoutil.UInt32Marshal(announceInterResBodyIterFNum, buf[offset:], x.iter)
- protoutil.NestedStructureMarshal(announceInterResBodyTrustFNum, buf[offset:], x.trust)
-
- return buf
-}
-
-func (x *AnnounceIntermediateResultRequestBody) StableSize() (size int) {
- size += protoutil.UInt64Size(announceInterResBodyEpochFNum, x.epoch)
- size += protoutil.UInt32Size(announceInterResBodyIterFNum, x.iter)
- size += protoutil.NestedStructureSize(announceInterResBodyTrustFNum, x.trust)
-
- return
-}
-
-func (x *AnnounceIntermediateResultRequestBody) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.AnnounceIntermediateResultRequest_Body))
-}
-
-func (x *AnnounceIntermediateResultResponseBody) StableMarshal(buf []byte) []byte {
- return buf
-}
-
-func (x *AnnounceIntermediateResultResponseBody) StableSize() int {
- return 0
-}
-
-func (x *AnnounceIntermediateResultResponseBody) Unmarshal(data []byte) error {
- return message.Unmarshal(x, data, new(reputation.AnnounceIntermediateResultResponse_Body))
-}
diff --git a/reputation/message_test.go b/reputation/message_test.go
deleted file mode 100644
index 891c2e4..0000000
--- a/reputation/message_test.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package reputation_test
-
-import (
- "testing"
-
- reputationtest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation/test"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
- messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
-)
-
-func TestMessageConvert(t *testing.T) {
- messagetest.TestRPCMessage(t,
- func(empty bool) message.Message { return reputationtest.GenerateTrust(empty) },
- func(empty bool) message.Message { return reputationtest.GenerateAnnounceLocalTrustRequestBody(empty) },
- func(empty bool) message.Message { return reputationtest.GenerateAnnounceLocalTrustRequest(empty) },
- func(empty bool) message.Message { return reputationtest.GenerateAnnounceLocalTrustResponseBody(empty) },
- func(empty bool) message.Message { return reputationtest.GenerateAnnounceLocalTrustResponse(empty) },
- func(empty bool) message.Message {
- return reputationtest.GenerateAnnounceIntermediateResultRequestBody(empty)
- },
- func(empty bool) message.Message {
- return reputationtest.GenerateAnnounceIntermediateResultRequest(empty)
- },
- func(empty bool) message.Message {
- return reputationtest.GenerateAnnounceIntermediateResultResponseBody(empty)
- },
- func(empty bool) message.Message {
- return reputationtest.GenerateAnnounceIntermediateResultResponse(empty)
- },
- func(empty bool) message.Message { return reputationtest.GenerateGlobalTrustBody(empty) },
- func(empty bool) message.Message { return reputationtest.GenerateGlobalTrust(empty) },
- func(empty bool) message.Message { return reputationtest.GeneratePeerToPeerTrust(empty) },
- )
-}
diff --git a/reputation/test/generate.go b/reputation/test/generate.go
deleted file mode 100644
index 7731ad9..0000000
--- a/reputation/test/generate.go
+++ /dev/null
@@ -1,160 +0,0 @@
-package reputationtest
-
-import (
- refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation"
- sessiontest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/test"
-)
-
-func GeneratePeerID(empty bool) *reputation.PeerID {
- m := new(reputation.PeerID)
-
- if !empty {
- m.SetPublicKey([]byte{1, 2, 3})
- }
-
- return m
-}
-
-func GenerateTrust(empty bool) *reputation.Trust {
- m := new(reputation.Trust)
-
- if !empty {
- m.SetValue(1)
- m.SetPeer(GeneratePeerID(false))
- }
-
- return m
-}
-
-func GeneratePeerToPeerTrust(empty bool) *reputation.PeerToPeerTrust {
- m := new(reputation.PeerToPeerTrust)
-
- if !empty {
- m.SetTrustingPeer(GeneratePeerID(false))
- m.SetTrust(GenerateTrust(false))
- }
-
- return m
-}
-
-func GenerateGlobalTrustBody(empty bool) *reputation.GlobalTrustBody {
- m := new(reputation.GlobalTrustBody)
-
- if !empty {
- m.SetManager(GeneratePeerID(false))
- m.SetTrust(GenerateTrust(false))
- }
-
- return m
-}
-
-func GenerateGlobalTrust(empty bool) *reputation.GlobalTrust {
- m := new(reputation.GlobalTrust)
-
- if !empty {
- m.SetVersion(refstest.GenerateVersion(false))
- m.SetBody(GenerateGlobalTrustBody(false))
- m.SetSignature(refstest.GenerateSignature(empty))
- }
-
- return m
-}
-
-func GenerateTrusts(empty bool) []reputation.Trust {
- var res []reputation.Trust
-
- if !empty {
- res = append(res,
- *GenerateTrust(false),
- *GenerateTrust(false),
- )
- }
-
- return res
-}
-
-func GenerateAnnounceLocalTrustRequestBody(empty bool) *reputation.AnnounceLocalTrustRequestBody {
- m := new(reputation.AnnounceLocalTrustRequestBody)
-
- if !empty {
- m.SetEpoch(13)
- m.SetTrusts(GenerateTrusts(false))
- }
-
- return m
-}
-
-func GenerateAnnounceLocalTrustRequest(empty bool) *reputation.AnnounceLocalTrustRequest {
- m := new(reputation.AnnounceLocalTrustRequest)
-
- if !empty {
- m.SetBody(GenerateAnnounceLocalTrustRequestBody(false))
- m.SetMetaHeader(sessiontest.GenerateRequestMetaHeader(empty))
- m.SetVerificationHeader(sessiontest.GenerateRequestVerificationHeader(empty))
- }
-
- return m
-}
-
-func GenerateAnnounceLocalTrustResponseBody(empty bool) *reputation.AnnounceLocalTrustResponseBody {
- m := new(reputation.AnnounceLocalTrustResponseBody)
-
- return m
-}
-
-func GenerateAnnounceLocalTrustResponse(empty bool) *reputation.AnnounceLocalTrustResponse {
- m := new(reputation.AnnounceLocalTrustResponse)
-
- if !empty {
- m.SetBody(GenerateAnnounceLocalTrustResponseBody(false))
- m.SetMetaHeader(sessiontest.GenerateResponseMetaHeader(empty))
- m.SetVerificationHeader(sessiontest.GenerateResponseVerificationHeader(empty))
- }
-
- return m
-}
-
-func GenerateAnnounceIntermediateResultRequestBody(empty bool) *reputation.AnnounceIntermediateResultRequestBody {
- m := new(reputation.AnnounceIntermediateResultRequestBody)
-
- if !empty {
- m.SetEpoch(123)
- m.SetIteration(564)
- m.SetTrust(GeneratePeerToPeerTrust(false))
- }
-
- return m
-}
-
-func GenerateAnnounceIntermediateResultRequest(empty bool) *reputation.AnnounceIntermediateResultRequest {
- m := new(reputation.AnnounceIntermediateResultRequest)
-
- if !empty {
- m.SetBody(GenerateAnnounceIntermediateResultRequestBody(false))
- }
-
- m.SetMetaHeader(sessiontest.GenerateRequestMetaHeader(empty))
- m.SetVerificationHeader(sessiontest.GenerateRequestVerificationHeader(empty))
-
- return m
-}
-
-func GenerateAnnounceIntermediateResultResponseBody(empty bool) *reputation.AnnounceIntermediateResultResponseBody {
- m := new(reputation.AnnounceIntermediateResultResponseBody)
-
- return m
-}
-
-func GenerateAnnounceIntermediateResultResponse(empty bool) *reputation.AnnounceIntermediateResultResponse {
- m := new(reputation.AnnounceIntermediateResultResponse)
-
- if !empty {
- m.SetBody(GenerateAnnounceIntermediateResultResponseBody(false))
- }
-
- m.SetMetaHeader(sessiontest.GenerateResponseMetaHeader(empty))
- m.SetVerificationHeader(sessiontest.GenerateResponseVerificationHeader(empty))
-
- return m
-}
diff --git a/reputation/types.go b/reputation/types.go
deleted file mode 100644
index a339183..0000000
--- a/reputation/types.go
+++ /dev/null
@@ -1,366 +0,0 @@
-package reputation
-
-import (
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session"
-)
-
-// PeerID represents reputation.PeerID message
-// from NeoFS API v2.
-type PeerID struct {
- publicKey []byte
-}
-
-// GetPublicKey returns peer's binary public key of ID.
-func (x *PeerID) GetPublicKey() []byte {
- if x != nil {
- return x.publicKey
- }
-
- return nil
-}
-
-// SetPublicKey sets peer's binary public key of ID.
-func (x *PeerID) SetPublicKey(v []byte) {
- x.publicKey = v
-}
-
-// Trust represents reputation.Trust message
-// from NeoFS API v2.
-type Trust struct {
- val float64
-
- peer *PeerID
-}
-
-// GetPeer returns trusted peer's ID.
-func (x *Trust) GetPeer() *PeerID {
- if x != nil {
- return x.peer
- }
-
- return nil
-}
-
-// SetPeer sets trusted peer's ID.
-func (x *Trust) SetPeer(v *PeerID) {
- x.peer = v
-}
-
-// GetValue returns trust value.
-func (x *Trust) GetValue() float64 {
- if x != nil {
- return x.val
- }
-
- return 0
-}
-
-// SetValue sets trust value.
-func (x *Trust) SetValue(v float64) {
- x.val = v
-}
-
-// PeerToPeerTrust represents reputation.PeerToPeerTrust message
-// from NeoFS API v2.
-type PeerToPeerTrust struct {
- trusting *PeerID
-
- trust *Trust
-}
-
-// GetTrustingPeer returns trusting peer ID.
-func (x *PeerToPeerTrust) GetTrustingPeer() *PeerID {
- if x != nil {
- return x.trusting
- }
-
- return nil
-}
-
-// SetTrustingPeer sets trusting peer ID.
-func (x *PeerToPeerTrust) SetTrustingPeer(v *PeerID) {
- x.trusting = v
-}
-
-// GetTrust returns trust value of trusting peer to the trusted one.
-func (x *PeerToPeerTrust) GetTrust() *Trust {
- if x != nil {
- return x.trust
- }
-
- return nil
-}
-
-// SetTrust sets trust value of trusting peer to the trusted one.
-func (x *PeerToPeerTrust) SetTrust(v *Trust) {
- x.trust = v
-}
-
-// GlobalTrustBody represents reputation.GlobalTrust.Body message
-// from NeoFS API v2.
-type GlobalTrustBody struct {
- manager *PeerID
-
- trust *Trust
-}
-
-// GetManager returns node manager ID.
-func (x *GlobalTrustBody) GetManager() *PeerID {
- if x != nil {
- return x.manager
- }
-
- return nil
-}
-
-// SetManager sets node manager ID.
-func (x *GlobalTrustBody) SetManager(v *PeerID) {
- x.manager = v
-}
-
-// GetTrust returns global trust value.
-func (x *GlobalTrustBody) GetTrust() *Trust {
- if x != nil {
- return x.trust
- }
-
- return nil
-}
-
-// SetTrust sets global trust value.
-func (x *GlobalTrustBody) SetTrust(v *Trust) {
- x.trust = v
-}
-
-// GlobalTrust represents reputation.GlobalTrust message
-// from NeoFS API v2.
-type GlobalTrust struct {
- version *refs.Version
-
- body *GlobalTrustBody
-
- sig *refs.Signature
-}
-
-// GetVersion returns message format version.
-func (x *GlobalTrust) GetVersion() *refs.Version {
- if x != nil {
- return x.version
- }
-
- return nil
-}
-
-// SetVersion sets message format version.
-func (x *GlobalTrust) SetVersion(v *refs.Version) {
- x.version = v
-}
-
-// GetBody returns message body.
-func (x *GlobalTrust) GetBody() *GlobalTrustBody {
- if x != nil {
- return x.body
- }
-
- return nil
-}
-
-// SetBody sets message body.
-func (x *GlobalTrust) SetBody(v *GlobalTrustBody) {
- x.body = v
-}
-
-// GetSignature returns body signature.
-func (x *GlobalTrust) GetSignature() *refs.Signature {
- if x != nil {
- return x.sig
- }
-
- return nil
-}
-
-// SetSignature sets body signature.
-func (x *GlobalTrust) SetSignature(v *refs.Signature) {
- x.sig = v
-}
-
-// AnnounceLocalTrustRequestBody is a structure of AnnounceLocalTrust request body.
-type AnnounceLocalTrustRequestBody struct {
- epoch uint64
-
- trusts []Trust
-}
-
-// GetEpoch returns epoch in which the trust was assessed.
-func (x *AnnounceLocalTrustRequestBody) GetEpoch() uint64 {
- if x != nil {
- return x.epoch
- }
-
- return 0
-}
-
-// SetEpoch sets epoch in which the trust was assessed.
-func (x *AnnounceLocalTrustRequestBody) SetEpoch(v uint64) {
- x.epoch = v
-}
-
-// GetTrusts returns list of normalized trust values.
-func (x *AnnounceLocalTrustRequestBody) GetTrusts() []Trust {
- if x != nil {
- return x.trusts
- }
-
- return nil
-}
-
-// SetTrusts sets list of normalized trust values.
-func (x *AnnounceLocalTrustRequestBody) SetTrusts(v []Trust) {
- x.trusts = v
-}
-
-// AnnounceLocalTrustResponseBody is a structure of AnnounceLocalTrust response body.
-type AnnounceLocalTrustResponseBody struct{}
-
-// AnnounceLocalTrustRequest represents reputation.AnnounceLocalTrustRequest
-// message from NeoFS API v2.
-type AnnounceLocalTrustRequest struct {
- body *AnnounceLocalTrustRequestBody
-
- session.RequestHeaders
-}
-
-// GetBody returns request body.
-func (x *AnnounceLocalTrustRequest) GetBody() *AnnounceLocalTrustRequestBody {
- if x != nil {
- return x.body
- }
-
- return nil
-}
-
-// SetBody sets request body.
-func (x *AnnounceLocalTrustRequest) SetBody(v *AnnounceLocalTrustRequestBody) {
- x.body = v
-}
-
-// AnnounceLocalTrustResponse represents reputation.AnnounceLocalTrustResponse
-// message from NeoFS API v2.
-type AnnounceLocalTrustResponse struct {
- body *AnnounceLocalTrustResponseBody
-
- session.ResponseHeaders
-}
-
-// GetBody returns response body.
-func (x *AnnounceLocalTrustResponse) GetBody() *AnnounceLocalTrustResponseBody {
- if x != nil {
- return x.body
- }
-
- return nil
-}
-
-// SetBody sets response body.
-func (x *AnnounceLocalTrustResponse) SetBody(v *AnnounceLocalTrustResponseBody) {
- x.body = v
-}
-
-// AnnounceIntermediateResultRequestBody is a structure of AnnounceIntermediateResult request body.
-type AnnounceIntermediateResultRequestBody struct {
- epoch uint64
-
- iter uint32
-
- trust *PeerToPeerTrust
-}
-
-// GetEpoch returns epoch number in which the intermediate trust was assessed.
-func (x *AnnounceIntermediateResultRequestBody) GetEpoch() uint64 {
- if x != nil {
- return x.epoch
- }
-
- return 0
-}
-
-// SetEpoch sets epoch number in which the intermediate trust was assessed.
-func (x *AnnounceIntermediateResultRequestBody) SetEpoch(v uint64) {
- x.epoch = v
-}
-
-// GetIteration returns sequence number of the iteration.
-func (x *AnnounceIntermediateResultRequestBody) GetIteration() uint32 {
- if x != nil {
- return x.iter
- }
-
- return 0
-}
-
-// SetIteration sets sequence number of the iteration.
-func (x *AnnounceIntermediateResultRequestBody) SetIteration(v uint32) {
- x.iter = v
-}
-
-// GetTrust returns current global trust value.
-func (x *AnnounceIntermediateResultRequestBody) GetTrust() *PeerToPeerTrust {
- if x != nil {
- return x.trust
- }
-
- return nil
-}
-
-// SetTrust sets current global trust value.
-func (x *AnnounceIntermediateResultRequestBody) SetTrust(v *PeerToPeerTrust) {
- x.trust = v
-}
-
-// AnnounceIntermediateResultResponseBody is a structure of AnnounceIntermediateResult response body.
-type AnnounceIntermediateResultResponseBody struct{}
-
-// AnnounceIntermediateResultRequest represents reputation.AnnounceIntermediateResult
-// message from NeoFS API v2.
-type AnnounceIntermediateResultRequest struct {
- body *AnnounceIntermediateResultRequestBody
-
- session.RequestHeaders
-}
-
-// GetBody returns request body.
-func (x *AnnounceIntermediateResultRequest) GetBody() *AnnounceIntermediateResultRequestBody {
- if x != nil {
- return x.body
- }
-
- return nil
-}
-
-// SetBody sets request body.
-func (x *AnnounceIntermediateResultRequest) SetBody(v *AnnounceIntermediateResultRequestBody) {
- x.body = v
-}
-
-// AnnounceIntermediateResultResponse represents reputation.AnnounceIntermediateResultResponse
-// message from NeoFS API v2.
-type AnnounceIntermediateResultResponse struct {
- body *AnnounceIntermediateResultResponseBody
-
- session.ResponseHeaders
-}
-
-// GetBody returns response body.
-func (x *AnnounceIntermediateResultResponse) GetBody() *AnnounceIntermediateResultResponseBody {
- if x != nil {
- return x.body
- }
-
- return nil
-}
-
-// SetBody sets response body.
-func (x *AnnounceIntermediateResultResponse) SetBody(v *AnnounceIntermediateResultResponseBody) {
- x.body = v
-}
diff --git a/rpc/reputation.go b/rpc/reputation.go
deleted file mode 100644
index 3d036b2..0000000
--- a/rpc/reputation.go
+++ /dev/null
@@ -1,46 +0,0 @@
-package rpc
-
-import (
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/common"
-)
-
-const serviceReputation = serviceNamePrefix + "reputation.ReputationService"
-
-const (
- rpcReputationAnnounceLocalTrust = "AnnounceLocalTrust"
- rpcReputationAnnounceIntermediateResult = "AnnounceIntermediateResult"
-)
-
-// AnnounceLocalTrust executes ReputationService.AnnounceLocalTrust RPC.
-func AnnounceLocalTrust(
- cli *client.Client,
- req *reputation.AnnounceLocalTrustRequest,
- opts ...client.CallOption,
-) (*reputation.AnnounceLocalTrustResponse, error) {
- resp := new(reputation.AnnounceLocalTrustResponse)
-
- err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceReputation, rpcReputationAnnounceLocalTrust), req, resp, opts...)
- if err != nil {
- return nil, err
- }
-
- return resp, nil
-}
-
-// AnnounceIntermediateResult executes ReputationService.AnnounceIntermediateResult RPC.
-func AnnounceIntermediateResult(
- cli *client.Client,
- req *reputation.AnnounceIntermediateResultRequest,
- opts ...client.CallOption,
-) (*reputation.AnnounceIntermediateResultResponse, error) {
- resp := new(reputation.AnnounceIntermediateResultResponse)
-
- err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceReputation, rpcReputationAnnounceIntermediateResult), req, resp, opts...)
- if err != nil {
- return nil, err
- }
-
- return resp, nil
-}
diff --git a/session/grpc/service.pb.go b/session/grpc/service.pb.go
index 23d6913..5ba114d 100644
--- a/session/grpc/service.pb.go
+++ b/session/grpc/service.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: session/grpc/service.proto
diff --git a/session/grpc/service_grpc.pb.go b/session/grpc/service_grpc.pb.go
index a056280..32793fe 100644
--- a/session/grpc/service_grpc.pb.go
+++ b/session/grpc/service_grpc.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
-// - protoc-gen-go-grpc v1.2.0
+// - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.9
// source: session/grpc/service.proto
@@ -18,6 +18,10 @@ import (
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
+const (
+ SessionService_Create_FullMethodName = "/neo.fs.v2.session.SessionService/Create"
+)
+
// SessionServiceClient is the client API for SessionService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
@@ -41,7 +45,7 @@ func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient {
func (c *sessionServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
out := new(CreateResponse)
- err := c.cc.Invoke(ctx, "/neo.fs.v2.session.SessionService/Create", in, out, opts...)
+ err := c.cc.Invoke(ctx, SessionService_Create_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
@@ -90,7 +94,7 @@ func _SessionService_Create_Handler(srv interface{}, ctx context.Context, dec fu
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/neo.fs.v2.session.SessionService/Create",
+ FullMethod: SessionService_Create_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SessionServiceServer).Create(ctx, req.(*CreateRequest))
diff --git a/session/grpc/types.pb.go b/session/grpc/types.pb.go
index ed76725..25e0715 100644
--- a/session/grpc/types.pb.go
+++ b/session/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: session/grpc/types.proto
diff --git a/signature/body.go b/signature/body.go
index bf3ab6c..a160ed3 100644
--- a/signature/body.go
+++ b/signature/body.go
@@ -7,7 +7,6 @@ import (
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/container"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/netmap"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object"
- "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/reputation"
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session"
)
@@ -101,15 +100,5 @@ func serviceMessageBody(req interface{}) stableMarshaler {
return v.GetBody()
case *netmap.SnapshotResponse:
return v.GetBody()
-
- /* Reputation */
- case *reputation.AnnounceLocalTrustRequest:
- return v.GetBody()
- case *reputation.AnnounceLocalTrustResponse:
- return v.GetBody()
- case *reputation.AnnounceIntermediateResultRequest:
- return v.GetBody()
- case *reputation.AnnounceIntermediateResultResponse:
- return v.GetBody()
}
}
diff --git a/status/grpc/types.pb.go b/status/grpc/types.pb.go
index f6fd81c..a30533f 100644
--- a/status/grpc/types.pb.go
+++ b/status/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: status/grpc/types.proto
diff --git a/storagegroup/grpc/types.pb.go b/storagegroup/grpc/types.pb.go
index 6629364..75f5b46 100644
--- a/storagegroup/grpc/types.pb.go
+++ b/storagegroup/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: storagegroup/grpc/types.proto
diff --git a/subnet/grpc/types.pb.go b/subnet/grpc/types.pb.go
index c2d7529..032ba6c 100644
--- a/subnet/grpc/types.pb.go
+++ b/subnet/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: subnet/grpc/types.proto
diff --git a/tombstone/grpc/types.pb.go b/tombstone/grpc/types.pb.go
index 3365912..d1065ba 100644
--- a/tombstone/grpc/types.pb.go
+++ b/tombstone/grpc/types.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: tombstone/grpc/types.proto
diff --git a/util/proto/test/test.pb.go b/util/proto/test/test.pb.go
index de6f380..0dfa4dc 100644
--- a/util/proto/test/test.pb.go
+++ b/util/proto/test/test.pb.go
@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
-// protoc-gen-go v1.28.0
+// protoc-gen-go v1.28.1
// protoc v3.21.9
// source: util/proto/test/test.proto