From bef32abb9ca601347d168241f16b8b183ee781b4 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Mon, 20 Apr 2020 13:54:34 +0300 Subject: [PATCH] proto: regenerate files --- state/service.pb.go | Bin 62254 -> 75369 bytes state/service.proto | 29 ++++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/state/service.pb.go b/state/service.pb.go index 4c7db88a496621662c50e4b4518cae4a5fa2d645..187949bb3d221ca977353c12963e8d9f5680dc54 100644 GIT binary patch delta 6537 zcmb_gTaO$^6;^zSnTZ22YsYaClA0wkGk96|Wp2G>QIH`QVzR*(;mA04Pj|I<;@zJ0 zOs{v0v$T-l0VP33EgUJ~<`+OnAfgcpFT^qth=&LP5sx7IAyG`E06&13s_!d1-QHc` zftOKNb)EXo`ObGv)%4HaT7TvB4L|?M`ZPJcAjO_pKRzz^Cw?OL$&-t6kQ~K8bmPQz z%H^OJ4-!!=mv-+K2jdfQZz&etfe2;fFU}?6ls~s9C&g!aavowJtaLckcq+wrG8FkrRZ_tK>NNrsM+d$%sgb8 zNHHyJVn)&b3TjsVCsea!by%P}aNBD|XM6OV*Sa zH*}6qluNc6GEhBo^oS0q;c|IxkXX@n6!|kS1ULdT1#=x^N?2;+YZy~P*ccj+Dd7Mo zT8slx9j+Nrc6syIY`N5z$znei3;kZwoBV9NIRChcv$_^lU}1tJnE*PHJqa(*E> zJ$`KT?zX4b-I6oQF5V}0<;JGO&n$~&!{fa8c3nL z{nZ_h6;@x~^lD-J&Q9;cIW*%N(d;P&m$z?C!HkRE~`$i%DZ`LY>@#QVI7sl^x zdAKnCV`FDwe6?}tPFt78>RJ59J$nnwFE%d}##hIt3gZX2ju*x~(JG9ens5r^OIwTM zyDPP{8+Q|xB2`lC4EyBq?jVtUUCdPqeeH6XSTnVzf2@*Eh=T2}RxXY9ct_S{U-ODQ zp1)!IswX~C*osN6RpahlZ9=ScGyC=@zq77sXYK=W+GwbDGz@J0+m!k@boFmNP~FrT z+L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oxPc_t}=l4YIYcDc6!sG(Q!d-%}OfKy8gmyQ3t3rlRJt>0MyFv}ZpijsD zQ6xr?q+VjYjY6Ukwd~c1RIeyR+fM;}@pfN1|9<&VN9hx#OSI30Uk=~S2{LMB&3fgD%U@PnZp7LZX8 zpx{uAcwl7jLCH^=-Ym}X=a*_w*HUIbTPGUdbZbskrQU8U7kY194^)0pe1qe+BnEi* z)KieQ=-O>Nhfm*YviFfSKkpsY(|_+Ck6t|e{Q1idUVD7=A0s;}-~a#s diff --git a/state/service.proto b/state/service.proto index bebc913..410a000 100644 --- a/state/service.proto +++ b/state/service.proto @@ -10,7 +10,8 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto"; option (gogoproto.stable_marshaler_all) = true; -// Status service provides node's healthcheck and status info +// Status service provides node's healthcheck and status info. +// TODO: decide how to describe auth and were contains permissions. service Status { // Netmap request allows to receive current [bootstrap.SpreadMap](bootstrap.md#bootstrap.SpreadMap) rpc Netmap(NetmapRequest) returns (bootstrap.SpreadMap); @@ -27,6 +28,10 @@ service Status { // To permit access, used server config options. // The request should be signed. rpc DumpVars(DumpVarsRequest) returns (DumpVarsResponse); + // ChangeState allows to change current node state of node. + // To permit access, used server config options. + // The request should be signed. + rpc ChangeState(ChangeStateRequest) returns (ChangeStateResponse); } // NetmapRequest message to request current node netmap @@ -95,3 +100,25 @@ message DumpVarsRequest { message DumpVarsResponse { bytes Variables = 1; } + +// ChangeStateRequest contains a new state of node. +message ChangeStateRequest { + enum State { + // Unknown is default value. Does nothing. + Unknown = 0; + // Online used when need to set node to the online state. + Online = 1; + // Offline used when need to set node to the offline state. + Offline = 2; + } + + // State is a new state of node. + State state = 1; + // RequestMetaHeader contains information about request meta headers (should be embedded into message) + service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; + // RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message) + service.RequestVerificationHeader Verify = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; +} + +// ChangeStateResponse is an empty response, that returns when RPC invoked without errors. +message ChangeStateResponse {} \ No newline at end of file