[#1] Fix project name in control service

Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
KirillovDenis/poc/impersonate
Stanislav Bogatyrev 2023-02-03 19:58:09 +03:00 committed by Stanislav Bogatyrev
parent f825cfac78
commit c761a95eef
12 changed files with 37 additions and 37 deletions

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.26.0 // protoc-gen-go v1.26.0
// protoc v3.21.12 // protoc v3.12.4
// source: pkg/services/control/ir/service.proto // source: pkg/services/control/ir/service.proto
package control package control

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:
// - protoc-gen-go-grpc v1.2.0 // - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.12 // - protoc v3.12.4
// source: pkg/services/control/ir/service.proto // source: pkg/services/control/ir/service.proto
package control package control

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.26.0 // protoc-gen-go v1.26.0
// protoc v3.21.12 // protoc v3.12.4
// source: pkg/services/control/ir/types.proto // source: pkg/services/control/ir/types.proto
package control package control

View File

@ -19,7 +19,7 @@ type Server struct {
// HealthChecker is component interface for calculating // HealthChecker is component interface for calculating
// the current health status of a node. // the current health status of a node.
type HealthChecker interface { type HealthChecker interface {
// Must calculate and return current status of the node in NeoFS network map. // Must calculate and return current status of the node in FrostFS network map.
// //
// If status can not be calculated for any reason, // If status can not be calculated for any reason,
// control.netmapStatus_STATUS_UNDEFINED should be returned. // control.netmapStatus_STATUS_UNDEFINED should be returned.

View File

@ -8,7 +8,7 @@ import (
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )
// SetNetmapStatus sets node status in NeoFS network. // SetNetmapStatus sets node status in FrostFS network.
// //
// If request is unsigned or signed by disallowed key, permission error returns. // If request is unsigned or signed by disallowed key, permission error returns.
func (s *Server) SetNetmapStatus(ctx context.Context, req *control.SetNetmapStatusRequest) (*control.SetNetmapStatusResponse, error) { func (s *Server) SetNetmapStatus(ctx context.Context, req *control.SetNetmapStatusRequest) (*control.SetNetmapStatusResponse, error) {

View File

@ -7,7 +7,7 @@ func (x *HealthCheckRequest) SetBody(v *HealthCheckRequest_Body) {
} }
} }
// SetNetmapStatus sets status of the storage node in NeoFS network map. // SetNetmapStatus sets status of the storage node in FrostFS network map.
func (x *HealthCheckResponse_Body) SetNetmapStatus(v NetmapStatus) { func (x *HealthCheckResponse_Body) SetNetmapStatus(v NetmapStatus) {
if x != nil { if x != nil {
x.NetmapStatus = v x.NetmapStatus = v
@ -28,7 +28,7 @@ func (x *HealthCheckResponse) SetBody(v *HealthCheckResponse_Body) {
} }
} }
// SetStatus sets new storage node status in NeoFS network map. // SetStatus sets new storage node status in FrostFS network map.
func (x *SetNetmapStatusRequest_Body) SetStatus(v NetmapStatus) { func (x *SetNetmapStatusRequest_Body) SetStatus(v NetmapStatus) {
if x != nil { if x != nil {
x.Status = v x.Status = v
@ -54,7 +54,7 @@ func (x *SetNetmapStatusResponse) SetBody(v *SetNetmapStatusResponse_Body) {
} }
} }
// SetAddressList sets list of objects to be removed in NeoFS API binary format. // SetAddressList sets list of objects to be removed in FrostFS API binary format.
func (x *DropObjectsRequest_Body) SetAddressList(v [][]byte) { func (x *DropObjectsRequest_Body) SetAddressList(v [][]byte) {
if x != nil { if x != nil {
x.AddressList = v x.AddressList = v

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.26.0 // protoc-gen-go v1.26.0
// protoc v3.21.12 // protoc v3.12.4
// source: pkg/services/control/service.proto // source: pkg/services/control/service.proto
package control package control
@ -1217,7 +1217,7 @@ type HealthCheckResponse_Body struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
// Status of the storage node in NeoFS network map. // Status of the storage node in FrostFS network map.
NetmapStatus NetmapStatus `protobuf:"varint,1,opt,name=netmap_status,json=netmapStatus,proto3,enum=control.NetmapStatus" json:"netmap_status,omitempty"` NetmapStatus NetmapStatus `protobuf:"varint,1,opt,name=netmap_status,json=netmapStatus,proto3,enum=control.NetmapStatus" json:"netmap_status,omitempty"`
// Health status of storage node application. // Health status of storage node application.
HealthStatus HealthStatus `protobuf:"varint,2,opt,name=health_status,json=healthStatus,proto3,enum=control.HealthStatus" json:"health_status,omitempty"` HealthStatus HealthStatus `protobuf:"varint,2,opt,name=health_status,json=healthStatus,proto3,enum=control.HealthStatus" json:"health_status,omitempty"`
@ -1275,7 +1275,7 @@ type SetNetmapStatusRequest_Body struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
// New storage node status in NeoFS network map. // New storage node status in FrostFS network map.
// If status is MAINTENANCE, the node checks whether maintenance is // If status is MAINTENANCE, the node checks whether maintenance is
// allowed in the network settings. In case of prohibition, the request // allowed in the network settings. In case of prohibition, the request
// is denied. Otherwise, node switches to local maintenance state. To // is denied. Otherwise, node switches to local maintenance state. To
@ -1379,7 +1379,7 @@ type DropObjectsRequest_Body struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
// List of object addresses to be removed. // List of object addresses to be removed.
// in NeoFS API binary format. // in FrostFS API binary format.
AddressList [][]byte `protobuf:"bytes,1,rep,name=address_list,json=addressList,proto3" json:"address_list,omitempty"` AddressList [][]byte `protobuf:"bytes,1,rep,name=address_list,json=addressList,proto3" json:"address_list,omitempty"`
} }

View File

@ -11,7 +11,7 @@ service ControlService {
// Performs health check of the storage node. // Performs health check of the storage node.
rpc HealthCheck (HealthCheckRequest) returns (HealthCheckResponse); rpc HealthCheck (HealthCheckRequest) returns (HealthCheckResponse);
// Sets status of the storage node in NeoFS network map. // Sets status of the storage node in FrostFS network map.
rpc SetNetmapStatus (SetNetmapStatusRequest) returns (SetNetmapStatusResponse); rpc SetNetmapStatus (SetNetmapStatusRequest) returns (SetNetmapStatusResponse);
// Mark objects to be removed from node's local object storage. // Mark objects to be removed from node's local object storage.
@ -56,7 +56,7 @@ message HealthCheckRequest {
message HealthCheckResponse { message HealthCheckResponse {
// Health check response body // Health check response body
message Body { message Body {
// Status of the storage node in NeoFS network map. // Status of the storage node in FrostFS network map.
NetmapStatus netmap_status = 1; NetmapStatus netmap_status = 1;
// Health status of storage node application. // Health status of storage node application.
@ -74,7 +74,7 @@ message HealthCheckResponse {
message SetNetmapStatusRequest { message SetNetmapStatusRequest {
// Set netmap status request body. // Set netmap status request body.
message Body { message Body {
// New storage node status in NeoFS network map. // New storage node status in FrostFS network map.
// If status is MAINTENANCE, the node checks whether maintenance is // If status is MAINTENANCE, the node checks whether maintenance is
// allowed in the network settings. In case of prohibition, the request // allowed in the network settings. In case of prohibition, the request
// is denied. Otherwise, node switches to local maintenance state. To // is denied. Otherwise, node switches to local maintenance state. To
@ -112,7 +112,7 @@ message DropObjectsRequest {
// Request body structure. // Request body structure.
message Body { message Body {
// List of object addresses to be removed. // List of object addresses to be removed.
// in NeoFS API binary format. // in FrostFS API binary format.
repeated bytes address_list = 1; repeated bytes address_list = 1;
} }

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:
// - protoc-gen-go-grpc v1.2.0 // - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.12 // - protoc v3.12.4
// source: pkg/services/control/service.proto // source: pkg/services/control/service.proto
package control package control
@ -24,7 +24,7 @@ const _ = grpc.SupportPackageIsVersion7
type ControlServiceClient interface { type ControlServiceClient interface {
// Performs health check of the storage node. // Performs health check of the storage node.
HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
// Sets status of the storage node in NeoFS network map. // Sets status of the storage node in FrostFS network map.
SetNetmapStatus(ctx context.Context, in *SetNetmapStatusRequest, opts ...grpc.CallOption) (*SetNetmapStatusResponse, error) SetNetmapStatus(ctx context.Context, in *SetNetmapStatusRequest, opts ...grpc.CallOption) (*SetNetmapStatusResponse, error)
// Mark objects to be removed from node's local object storage. // Mark objects to be removed from node's local object storage.
DropObjects(ctx context.Context, in *DropObjectsRequest, opts ...grpc.CallOption) (*DropObjectsResponse, error) DropObjects(ctx context.Context, in *DropObjectsRequest, opts ...grpc.CallOption) (*DropObjectsResponse, error)
@ -148,7 +148,7 @@ func (c *controlServiceClient) FlushCache(ctx context.Context, in *FlushCacheReq
type ControlServiceServer interface { type ControlServiceServer interface {
// Performs health check of the storage node. // Performs health check of the storage node.
HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
// Sets status of the storage node in NeoFS network map. // Sets status of the storage node in FrostFS network map.
SetNetmapStatus(context.Context, *SetNetmapStatusRequest) (*SetNetmapStatusResponse, error) SetNetmapStatus(context.Context, *SetNetmapStatusRequest) (*SetNetmapStatusResponse, error)
// Mark objects to be removed from node's local object storage. // Mark objects to be removed from node's local object storage.
DropObjects(context.Context, *DropObjectsRequest) (*DropObjectsResponse, error) DropObjects(context.Context, *DropObjectsRequest) (*DropObjectsResponse, error)

View File

@ -39,7 +39,7 @@ func (x *NodeInfo_Attribute) SetParents(v []string) {
} }
} }
// SetPublicKey sets public key of the NeoFS node in a binary format. // SetPublicKey sets public key of the FrostFS node in a binary format.
func (x *NodeInfo) SetPublicKey(v []byte) { func (x *NodeInfo) SetPublicKey(v []byte) {
if x != nil { if x != nil {
x.PublicKey = v x.PublicKey = v
@ -53,14 +53,14 @@ func (x *NodeInfo) SetAddresses(v []string) {
} }
} }
// SetAttributes sets attributes of the NeoFS Storage Node. // SetAttributes sets attributes of the FrostFS Storage Node.
func (x *NodeInfo) SetAttributes(v []*NodeInfo_Attribute) { func (x *NodeInfo) SetAttributes(v []*NodeInfo_Attribute) {
if x != nil { if x != nil {
x.Attributes = v x.Attributes = v
} }
} }
// SetState sets state of the NeoFS node. // SetState sets state of the FrostFS node.
func (x *NodeInfo) SetState(v NetmapStatus) { func (x *NodeInfo) SetState(v NetmapStatus) {
if x != nil { if x != nil {
x.State = v x.State = v

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// versions: // versions:
// protoc-gen-go v1.26.0 // protoc-gen-go v1.26.0
// protoc v3.21.12 // protoc v3.12.4
// source: pkg/services/control/types.proto // source: pkg/services/control/types.proto
package control package control
@ -20,7 +20,7 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
// Status of the storage node in the NeoFS network map. // Status of the storage node in the FrostFS network map.
type NetmapStatus int32 type NetmapStatus int32
const ( const (
@ -253,22 +253,22 @@ func (x *Signature) GetSign() []byte {
return nil return nil
} }
// NeoFS node description. // FrostFS node description.
type NodeInfo struct { type NodeInfo struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
// Public key of the NeoFS node in a binary format. // Public key of the FrostFS node in a binary format.
PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Ways to connect to a node. // Ways to connect to a node.
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
// Carries list of the NeoFS node attributes in a key-value form. Key name // Carries list of the FrostFS node attributes in a key-value form. Key name
// must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo // must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo
// structures with duplicated attribute names or attributes with empty values // structures with duplicated attribute names or attributes with empty values
// will be considered invalid. // will be considered invalid.
Attributes []*NodeInfo_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` Attributes []*NodeInfo_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
// Carries state of the NeoFS node. // Carries state of the FrostFS node.
State NetmapStatus `protobuf:"varint,4,opt,name=state,proto3,enum=control.NetmapStatus" json:"state,omitempty"` State NetmapStatus `protobuf:"varint,4,opt,name=state,proto3,enum=control.NetmapStatus" json:"state,omitempty"`
} }
@ -551,7 +551,7 @@ func (x *BlobstorInfo) GetType() string {
return "" return ""
} }
// Administrator-defined Attributes of the NeoFS Storage Node. // Administrator-defined Attributes of the FrostFS Storage Node.
// //
// `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8 // `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8
// string. Value can't be empty. // string. Value can't be empty.
@ -589,7 +589,7 @@ func (x *BlobstorInfo) GetType() string {
// without diacritics . Calculated automatically from `Locode` attribute. // without diacritics . Calculated automatically from `Locode` attribute.
// //
// For detailed description of each well-known attribute please see the // For detailed description of each well-known attribute please see the
// corresponding section in NeoFS Technical specification. // corresponding section in FrostFS Technical specification.
type NodeInfo_Attribute struct { type NodeInfo_Attribute struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache

View File

@ -13,7 +13,7 @@ message Signature {
bytes sign = 2 [json_name = "signature"]; bytes sign = 2 [json_name = "signature"];
} }
// Status of the storage node in the NeoFS network map. // Status of the storage node in the FrostFS network map.
enum NetmapStatus { enum NetmapStatus {
// Undefined status, default value. // Undefined status, default value.
STATUS_UNDEFINED = 0; STATUS_UNDEFINED = 0;
@ -28,15 +28,15 @@ enum NetmapStatus {
MAINTENANCE = 3; MAINTENANCE = 3;
} }
// NeoFS node description. // FrostFS node description.
message NodeInfo { message NodeInfo {
// Public key of the NeoFS node in a binary format. // Public key of the FrostFS node in a binary format.
bytes public_key = 1 [json_name = "publicKey"]; bytes public_key = 1 [json_name = "publicKey"];
// Ways to connect to a node. // Ways to connect to a node.
repeated string addresses = 2 [json_name = "addresses"]; repeated string addresses = 2 [json_name = "addresses"];
// Administrator-defined Attributes of the NeoFS Storage Node. // Administrator-defined Attributes of the FrostFS Storage Node.
// //
// `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8 // `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8
// string. Value can't be empty. // string. Value can't be empty.
@ -74,7 +74,7 @@ message NodeInfo {
// without diacritics . Calculated automatically from `Locode` attribute. // without diacritics . Calculated automatically from `Locode` attribute.
// //
// For detailed description of each well-known attribute please see the // For detailed description of each well-known attribute please see the
// corresponding section in NeoFS Technical specification. // corresponding section in FrostFS Technical specification.
message Attribute { message Attribute {
// Key of the node attribute. // Key of the node attribute.
string key = 1 [json_name = "key"]; string key = 1 [json_name = "key"];
@ -86,13 +86,13 @@ message NodeInfo {
// `Country`. // `Country`.
repeated string parents = 3 [json_name = "parents"]; repeated string parents = 3 [json_name = "parents"];
} }
// Carries list of the NeoFS node attributes in a key-value form. Key name // Carries list of the FrostFS node attributes in a key-value form. Key name
// must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo // must be a node-unique valid UTF-8 string. Value can't be empty. NodeInfo
// structures with duplicated attribute names or attributes with empty values // structures with duplicated attribute names or attributes with empty values
// will be considered invalid. // will be considered invalid.
repeated Attribute attributes = 3 [json_name = "attributes"]; repeated Attribute attributes = 3 [json_name = "attributes"];
// Carries state of the NeoFS node. // Carries state of the FrostFS node.
NetmapStatus state = 4 [json_name = "state"]; NetmapStatus state = 4 [json_name = "state"];
} }