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 | Bin 18993 -> 18993 bytes
accounting/grpc/service_grpc.pb.go | Bin 4234 -> 4321 bytes
accounting/grpc/types.pb.go | Bin 6048 -> 6048 bytes
acl/grpc/types.pb.go | Bin 39444 -> 39444 bytes
audit/grpc/types.pb.go | Bin 12413 -> 12413 bytes
container/grpc/service.pb.go | Bin 112809 -> 112809 bytes
container/grpc/service_grpc.pb.go | Bin 17499 -> 18225 bytes
container/grpc/types.pb.go | Bin 13664 -> 13664 bytes
lock/grpc/types.pb.go | Bin 5767 -> 5767 bytes
netmap/grpc/service.pb.go | Bin 46017 -> 46017 bytes
netmap/grpc/service_grpc.pb.go | Bin 8859 -> 9124 bytes
netmap/grpc/types.pb.go | Bin 47807 -> 47807 bytes
object/grpc/service.pb.go | Bin 131703 -> 131703 bytes
object/grpc/service_grpc.pb.go | Bin 32428 -> 33527 bytes
object/grpc/types.pb.go | Bin 41264 -> 41264 bytes
refs/grpc/types.pb.go | Bin 29099 -> 29099 bytes
reputation/convert.go | 604 -----------------------------
reputation/grpc/service.go | 90 -----
reputation/grpc/service.pb.go | Bin 35895 -> 0 bytes
reputation/grpc/service_grpc.pb.go | Bin 6971 -> 0 bytes
reputation/grpc/types.go | 55 ---
reputation/grpc/types.pb.go | Bin 17571 -> 0 bytes
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 | Bin 18263 -> 18263 bytes
session/grpc/service_grpc.pb.go | Bin 4026 -> 4108 bytes
session/grpc/types.pb.go | Bin 57088 -> 57088 bytes
signature/body.go | 11 -
status/grpc/types.pb.go | Bin 21744 -> 21744 bytes
storagegroup/grpc/types.pb.go | Bin 8923 -> 8923 bytes
subnet/grpc/types.pb.go | Bin 6215 -> 6215 bytes
tombstone/grpc/types.pb.go | Bin 7272 -> 7272 bytes
util/proto/test/test.pb.go | Bin 13851 -> 13851 bytes
38 files changed, 3 insertions(+), 1680 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 8f7a84ec..27506b4f 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 196c7ab5b5d200e927764c644172e317bd64f5c5..9699622c290ee7cc4515ab0a56c1f05ed3ff5473 100644
GIT binary patch
delta 14
Wcmdlug>mB)#tC7Jh8x3gc>(||Qw7if
delta 14
Wcmdlug>mB)#tC7J1{=d~c>(||P6f{Z
diff --git a/accounting/grpc/service_grpc.pb.go b/accounting/grpc/service_grpc.pb.go
index f1cfeb52d5dd9534e8c1751cd9c46812ac7918df..1e1b17e20923032c26033210575bccaa9759f088 100644
GIT binary patch
delta 106
zcmeBDe5g1fj?s8y{0TPmX3X+&qa*i5<+i!^_GH0Pp?`Bme*a
diff --git a/accounting/grpc/types.pb.go b/accounting/grpc/types.pb.go
index 322a56cd48a7a5e225c520af83ce2e944102fe8f..b8dff215d33a7d5a6f8fdbe8c0a52ce9bfd37e97 100644
GIT binary patch
delta 12
TcmZ3Wzd(ON7^C6Fa8Gdn9lr!0
delta 12
TcmZ3Wzd(ON7^A_)a8Gdn9l8V_
diff --git a/acl/grpc/types.pb.go b/acl/grpc/types.pb.go
index 583f89ac0cf970438f7b790a14291264c888316a..94a8e4751780de1a937133934ac45bed9cfe0aec 100644
GIT binary patch
delta 14
WcmbQTg=xwbrU_w;h8x58&IAA~i3SS*
delta 14
WcmbQTg=xwbrU_w;1{=fo&IAA~ga!%#
diff --git a/audit/grpc/types.pb.go b/audit/grpc/types.pb.go
index b542ec227c66a0c148f071e8ba2f2126affae67e..a2cac438899cffba3df1e2a0773962127101d0ec 100644
GIT binary patch
delta 12
TcmeyH@Hb&X7^C6Fa5Vz}DP#pP
delta 12
TcmeyH@Hb&X7^A_)a5Vz}DPILJ
diff --git a/container/grpc/service.pb.go b/container/grpc/service.pb.go
index 6786337a14d68e23870a6b7ffc4b71038cbb56dc..e3bdaf0c8a0ac920cb107136c95fb5201a7c0dcf 100644
GIT binary patch
delta 17
ZcmZ4ak!|Hiwh3X3hK=D{!x@8i002j62S@+_
delta 17
ZcmZ4ak!|Hiwh3X3294oc!x@8i002i}2S)$^
diff --git a/container/grpc/service_grpc.pb.go b/container/grpc/service_grpc.pb.go
index 1de8b5f290d441334bb8ae7f389b8012488cd335..c70bce77db8158277cd8ff5abcba7892f3fe7c30 100644
GIT binary patch
delta 1235
zcmccJ!ML%HaY7uU@y7ULj5f*ndBr6P8eE*t`FSOYnR%&2!Kp=MnaQc~0i`AJZlyUn
zzNsY{`6+&hxv2`Mz;?2rm>y#m$b&@Y2y4KB{!Xw1<*`@c<;Z25C@kg
z7ni=ig7f480nyENOiE0Q3X|hmG$sde3r(KRVg%$#^6PE>#?rwEl~~N?1`(Vr#(n@Q
z_M2S?ET+wF&BX~cO<{5vhu!2!9CxAeQ#cJFdNzOJw1ycJ#O(?ZoP31)B~;-h9*9Cz
zgYtN#f$|-^mXr7MeuJvK#pl4NuvwB{kx3aNgfSDsWI;*4$$TP;ldlNQ0L45XYIwk<
zIfZ*Ljl+y?sQQg67*=D6T)5#;qB}sbiOcToVmm;wiA!2U;s_`v(WEyEO8Vo7GU*Ih
zNF$=`o9qH;_+gK-Ao;yec|?>=QjmrjgorX1rIS#FgrZDd6tJCqf$t_*!4-aexTY&=l9MM2
zSWG@G@C7XQO3)6hIb7&7L8QVC)cv@gB5;}
zIx_hXizSflx7l2V5!L5cXj!P+yB2
z0+YjqgeO<(`ECBDF@Y24UhT;XZ7Me_8Q%gs9v&1R!P%zQ!Ge&m0EzHfT!Huz6c|8(
q$rCKOHg{UR0t;e<$U>V&CU}T|w4byWWC8~XNNcsD_~zM8(^vqcO2GC2
diff --git a/container/grpc/types.pb.go b/container/grpc/types.pb.go
index 10446179a1d4ed5734aacbf0bb42119c168cd14c..7f0cc1bc1851e013ea5006b883ce8ff8c91fff5c 100644
GIT binary patch
delta 12
TcmaEm^&o3P7^C6Fa86SICwT<(
delta 12
TcmaEm^&o3P7^A_)a86SICv*hz
diff --git a/lock/grpc/types.pb.go b/lock/grpc/types.pb.go
index 22758c13234432cde43c1bf4365623c90b01a41e..958476c73e5f17064810f0b1b36b2d0a18cd15c4 100644
GIT binary patch
delta 12
TcmZqIZP%R;#%Q=P+&~Nf8$JWi
delta 12
TcmZqIZP%R;#%QoH+&~Nf8#x2c
diff --git a/netmap/grpc/service.pb.go b/netmap/grpc/service.pb.go
index d74d7c3f36a368216a3f99d3c4d6b898866329ae..acfe43c41c18da00dda38033bfff90758005e225 100644
GIT binary patch
delta 14
WcmX^3oax|mrU_w;h8x4PHUj`O_Xd&x
delta 14
WcmX^3oax|mrU_w;1{=e(HUj`O@&=Ir
diff --git a/netmap/grpc/service_grpc.pb.go b/netmap/grpc/service_grpc.pb.go
index 9ac25db177c01a3b256c24e1869e5a7cbe55a7ec..3834c3d59f66b5f57a2d8819daf69c93709354b2 100644
GIT binary patch
delta 354
zcmbR3y2O1#9Ha5Z_ydfb$@zK3B?=l`oRc#ZWdz+yb8>uBOEU6P{1S6h6%=eIujWyj
zJV%mGpNrEkwInyOAUL(CEHgPZ9>^=tFUt1JOUsW(*9Fn1I=P;klL=_BoUE(>ni7z?
zhD=gztf)U73;VjQD%J$4l%U9aGlt%?5
uWH33E+i$ZIUmy=m@#OdNWs@zWgg3iMKS9$3l&ai(TJ|Sc?U3S
diff --git a/netmap/grpc/types.pb.go b/netmap/grpc/types.pb.go
index 0f017da399fe8f31d925babe174aef775fbc2929..276e648ea09c8bd783c359f704e1288693ef1d10 100644
GIT binary patch
delta 14
Wcmdo0m1+N1rU_w;h8x2(b^!o33I?wL
delta 14
Wcmdo0m1+N1rU_w;1{=dOb^!o31qQAF
diff --git a/object/grpc/service.pb.go b/object/grpc/service.pb.go
index 6ba4090c66ebffd0a385d126d9d652ad2a8dcbba..ddda473da8ee99ac3c346bd880009a34e05df0d9 100644
GIT binary patch
delta 20
bcmey~!tuR@V?r3CVPkk}IOEoECIuz{SrrEa
delta 20
bcmey~!tuR@V?r3CL1TDpIOEoECIuz{SqcXO
diff --git a/object/grpc/service_grpc.pb.go b/object/grpc/service_grpc.pb.go
index 6b1c32ae7ab1f5fe8d0866640d4a410e4d35847f..10f33b86b91105607e1d480c5171fb533969c742 100644
GIT binary patch
delta 2306
zcmZ4Um+^Zm(}XxiauTc8WTALruvmk=Hc(7t@?Lw@$q(!sCdWAh
zPhRhk#HcX2FhFCnF0cILI&m%_Z$W|~ki3v!I{BcZHjt$#VKG_JNfpS7QL>xd=wuFL
zJ&>`RY?Pz~WZBA^O)ivG-@KMH6=t>6WL+K(Bgy{gOrF4J4^$aAS%zO1s1M|f
z7Je-tYc0RUljCl^_Y@uL+wn{zEp!4ja7
z0bSDtYer_23_!mEA>Y|(&=m-i7YMLSHuidj5+u|r6V&_&W?D+hgeO79*m4kZSw=*e
z04%HZHt!3|#by+p%Z1J7W0sTe49d%dZAlfpMCIMA%CgO83a&5`&b*U>N+BQ*tl08oR;3dw0Gs08Z2$lO
delta 1613
zcmey~%CzP$6Xp+C&)Fxe?YeX@&}?Bs+vuE|0229q~>nM`it(ww}O%Y1T4sPg1O
zY1_#gq)jIm`PfcwOi-Boh}(4X5jV}roAu&0FW_N@*e5ml03QdcodT23d3r-lw}hLV
zFQ7a5Qh@H{FW&N#-v}5@RuGh$Y$Ip~xlSO>}gcOoeQ}Yy3
zQgc#EQd6wCIQ8`>Kjbz8IzV-Eys#W2x@QF^7id}lJ&bI*>|{Qmg)pzhifMx#z!<25
z<|Wn1Zvr_suMy8C!c=D|J-CTi;zTCDmr^1SV5*y!$OIE%va&qFtss-n$*X|fX{-PV
z`YBO5n|CNIz-ba{RQtoDI7Gz}$;IYquGMGN1BdN{c$3MFYFcO^qp?|6{W=*onoqu&
z!h>Y1<~zai!KsNw$r)fHCLgF^+q}WzHOLrEh^don
zZTTi|vp6vMZUe_;duz7I(+s3H|FQWAvRH4DncwCd`_1&oO`DIng%4ORnta{&9aS^Y
z<~M=FBy(~y(3vn}oQV*T;R$4*%~PUg;xvUenTIKH2^lt$m3cOEr`Pg=(>^qBY+haB
k1-046;`;s5{u
diff --git a/object/grpc/types.pb.go b/object/grpc/types.pb.go
index 506addaf7626b3d5e0cf93ad7e841ebd51376c18..11cb63e580389bce7497504bd6c62b06d92055e6 100644
GIT binary patch
delta 14
WcmdmRh-t$irU_w;h8x3gE&u>9#s-1_
delta 14
WcmdmRh-t$irU_w;1{=d~E&u>9!3Kc<
diff --git a/refs/grpc/types.pb.go b/refs/grpc/types.pb.go
index 5e9bfb5bf15556c57b12b94d77f01971a7e2c020..0d6b671b5a0c7c622018803d2a5c03857935d8e0 100644
GIT binary patch
delta 14
VcmZ4em~r)E#tC7Jh8x2}3IQ?l1_S^A
delta 14
VcmZ4em~r)E#tC7J1{=de3IQ?g1_J;9
diff --git a/reputation/convert.go b/reputation/convert.go
deleted file mode 100644
index ca542611..00000000
--- 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 81ed8907..00000000
--- 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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akHRTvutr-kh-G
zlQVYsW^$H9!y#J;ZKNvAh+g)#Y+;KR$;;&V<}%y-S-eVKzDRzcb)#yXiV@SIsx7x*
zJ0zh)BlJS1B60deQN`11J{KEgQ6!5>Y0KhhCsm~tA1v!N54~uIn6Tblsd+AvxypGt
zPn4cJ=2%W)xanFSx>ZmaXjFHT`Q={JkI0g>_D1RJgg7~FQksH)rQ|(3IGDFp&jBbKH5dq{GP!~VyilaH0I&e3kof}~^cl~n27Gh@eX0`}Z)Bbm
z_vQ?PQxqYTq%#USiaY+8Re^lU&b3NN!ve>&L&C^A`PSj0m{QB<)~T3FgY#1tC9VKb>j5)*(Pd(vvcX_h^sJk`@v}h2MYHrqnACAx>va(lhm+>T&$uzjg^o#?
zl{-G(4&04Gko1{I85LB#LE85or;!z2NJV8aIyjThORkrspwN@`8anF6?)JD!1|yK4
z7`S~`S&hMH=2M7bU+)I?%T5&
zvEP1omizZchaKwc4N0R&2oof9rxokk|D$l3cHh#!ZdqZ9JxXS{z3rQ=Y?ANq_~D4w
c6aE9|30j9^c*ZS9F!bu{jxFCsLABfHPY}15=>Px#
diff --git a/reputation/grpc/types.go b/reputation/grpc/types.go
deleted file mode 100644
index 63f2d34b..00000000
--- 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 b95b240673ac0e7c0a895c9680b7932a05ac6cc3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 17571
zcmd^H`)}LG5&l{FEB0I(W1TK1_(fi`vmx0l3-lf$7w;84=aVIz?$Nhxvz|L^@~
zW=Sro7vtEuM-7}#TJF4OzF980X*SimN3p!p_T
z=%>?QG5*ONHqDhockaQC=Caca^(10Z2UXD<15-VU!6^u?r`ov=rmlbO1mSg))fg@&
zL_~9B!2C$)q0n?U@xqV2nHFN24a!t##w@z=VGeyBRO{912;OBg;jEu^=uK`^{Lzi^
z;YC)cMie=WM2pG98+qD~r#EUbKa7LJF=FXdD_81?M3Y22XK)c54~`VSTBoHBt*b9Q
z-(0CzD+R$}(Tr~p%Z_DzUbrhG5sGwLbut}-U+Uo5rCRvje->KJwGNdxhHc)&qpy*2
zRkw>YjkTHv{
z{P`Hqrp-SFn
z6e0VOFNeLl3WWac>z@uIccQd
zQQ({3AZ{>G_dwC`;J}&}%)D67=JCzJhw5#$I#~cOYAf|voKjb>k)d&|PHuU;Leb0k
zm)mN^o8&B_u$}qtaEj!^9+-@{W3J`Wlosh<%ju)Z7
zSvJ)YgsW0CW*5|A=Q*DA`1uRB4LEDoOHVF7sQJa4Zgs-0}XqsmwKw=03a4YrA;beDx!l13Pk~C1ac-o>H}8+7D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6iBr~Z}$it1SsSF(Rq;@;^lr(`53F&b@(bHK)Tfa7@*p`N8-kl6i-qVpiKK{2D
z9!@=+)4&T_c&iF0&c+Id&LEOcI#nwrX*|C?iC)Fpr_+`yt*HHSG9vyq*686S?l07|P%ui6C?R(B;oo8
zOPoq`&Q^3d7_U)d1w-qEC5{~7r}Vpq^5|#X9^-XHCBoUm(MPqU18qwuZHj*Z0j)DC
zBOI&*V$#>7^FLZTeD*NC++Mq!9WFE+I>jluLx;p^tS9bb8t3NG+m^U=ix2v*yg%Ca
z<`2fm`tRHwoqKafp`rcW9n-xx$5?>=i0a>VT;N+vcKSu8^(P8Y|
z3EwxE@%M!{9qW)_kpO=nZ!hp&6}`4#U9LP2F67^DxNzf-^e;W|zoFm|7dk`w<+koz
ze7dHKIIKw!_gao`%3;yL{%&QCdou0I#q7*q%%XwZ!q8K}N(F=FhKa}NPMrtOl8%hw
zbmpZFm)=P8OdhCfff$*^VSdlA^&ZxJ~T$Z8))Ek`%!_}_}S?`TK;MAhB%;eN~=c3falGJ#&(wrRM
y)RK(+6u-pWR0UfFCH=|k_!K7JVdY@r(%dZ1G@Dt47@eD+upVP0PURJzXG{RGc06tX
delta 35
ocmeBC*d;$9j?rji{2|88^-MFFCkHZVZMI=M#s+4n@jhb$0OJh{`2YX_
diff --git a/session/grpc/types.pb.go b/session/grpc/types.pb.go
index ed7672576f025bd942c3b85b2f36992f4a03292a..25e07157a6b6621d094cce2e596a10d6f6855494 100644
GIT binary patch
delta 14
VcmZqJ$K0@wc|sVY;l}Wl_W&!c1}Xpm
delta 14
VcmZqJ$K0@wc|sVY!N%~F_W&!X1}Ojl
diff --git a/signature/body.go b/signature/body.go
index bf3ab6c1..a160ed34 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 f6fd81c509683b342d8bcdf88a0db12e6618452b..a30533fae9ba9d9de2936a468b2025d832c5bb42 100644
GIT binary patch
delta 14
WcmeyclJUbz#tC7Jh8x3Yh5!IF<_1Cl
delta 14
WcmeyclJUbz#tC7J1{=d?h5!IF;RZnf
diff --git a/storagegroup/grpc/types.pb.go b/storagegroup/grpc/types.pb.go
index 6629364dc44e8819822d7f957e3561c1ba6c14c3..75f5b46e7146728539bb93c07444537fd30323d5 100644
GIT binary patch
delta 12
TcmccZdfRnE7^C6F@D?QiB?<)x
delta 12
TcmccZdfRnE7^A_)@D?QiB?Scr
diff --git a/subnet/grpc/types.pb.go b/subnet/grpc/types.pb.go
index c2d752996c8f645f973aba0ecdfb58dc2865e3fd..032ba6c4cf7c4f1de64db29c22636e4046d809f9 100644
GIT binary patch
delta 12
TcmX?ZaNJ-*7^C6F@DJhuB6|fE
delta 12
TcmX?ZaNJ-*7^A_)@DJhuB6bB8
diff --git a/tombstone/grpc/types.pb.go b/tombstone/grpc/types.pb.go
index 33659121b9d8e7e267a0959acaa9dfca0b755a80..d1065baffc2b57317ebf6217e1eb481fcd722adc 100644
GIT binary patch
delta 12
TcmaE1@xo$47^C6Fa6uUWBsc_)
delta 12
TcmaE1@xo$47^A_)a6uUWBr^n!
diff --git a/util/proto/test/test.pb.go b/util/proto/test/test.pb.go
index de6f380584db9c0c4b9b69583776b06e3c419cb3..0dfa4dc28064e4b471d35a3d873fabaf5bacb9ce 100644
GIT binary patch
delta 12
TcmbQ8GdpKO7^C6F@FS)GBPj(a
delta 12
TcmbQ8GdpKO7^A_)@FS)GBP0bU