[#1] Fix project name in control service

Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
This commit is contained in:
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.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.21.12
// protoc v3.12.4
// source: pkg/services/control/ir/service.proto
package control

View file

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

View file

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

View file

@ -19,7 +19,7 @@ type Server struct {
// HealthChecker is component interface for calculating
// the current health status of a node.
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,
// control.netmapStatus_STATUS_UNDEFINED should be returned.

View file

@ -8,7 +8,7 @@ import (
"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.
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) {
if x != nil {
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) {
if x != nil {
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) {
if x != nil {
x.AddressList = v

View file

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.21.12
// protoc v3.12.4
// source: pkg/services/control/service.proto
package control
@ -1217,7 +1217,7 @@ type HealthCheckResponse_Body struct {
sizeCache protoimpl.SizeCache
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"`
// 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"`
@ -1275,7 +1275,7 @@ type SetNetmapStatusRequest_Body struct {
sizeCache protoimpl.SizeCache
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
// allowed in the network settings. In case of prohibition, the request
// is denied. Otherwise, node switches to local maintenance state. To
@ -1379,7 +1379,7 @@ type DropObjectsRequest_Body struct {
unknownFields protoimpl.UnknownFields
// 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"`
}

View file

@ -11,7 +11,7 @@ service ControlService {
// Performs health check of the storage node.
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);
// Mark objects to be removed from node's local object storage.
@ -56,7 +56,7 @@ message HealthCheckRequest {
message HealthCheckResponse {
// Health check response 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;
// Health status of storage node application.
@ -74,7 +74,7 @@ message HealthCheckResponse {
message SetNetmapStatusRequest {
// Set netmap status request 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
// allowed in the network settings. In case of prohibition, the request
// is denied. Otherwise, node switches to local maintenance state. To
@ -112,7 +112,7 @@ message DropObjectsRequest {
// Request body structure.
message Body {
// List of object addresses to be removed.
// in NeoFS API binary format.
// in FrostFS API binary format.
repeated bytes address_list = 1;
}

View file

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.12
// - protoc v3.12.4
// source: pkg/services/control/service.proto
package control
@ -24,7 +24,7 @@ const _ = grpc.SupportPackageIsVersion7
type ControlServiceClient interface {
// Performs health check of the storage node.
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)
// Mark objects to be removed from node's local object storage.
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 {
// Performs health check of the storage node.
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)
// Mark objects to be removed from node's local object storage.
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) {
if x != nil {
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) {
if x != nil {
x.Attributes = v
}
}
// SetState sets state of the NeoFS node.
// SetState sets state of the FrostFS node.
func (x *NodeInfo) SetState(v NetmapStatus) {
if x != nil {
x.State = v

View file

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.21.12
// protoc v3.12.4
// source: pkg/services/control/types.proto
package control
@ -20,7 +20,7 @@ const (
_ = 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
const (
@ -253,22 +253,22 @@ func (x *Signature) GetSign() []byte {
return nil
}
// NeoFS node description.
// FrostFS node description.
type NodeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
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"`
// Ways to connect to a node.
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
// structures with duplicated attribute names or attributes with empty values
// will be considered invalid.
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"`
}
@ -551,7 +551,7 @@ func (x *BlobstorInfo) GetType() string {
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
// string. Value can't be empty.
@ -589,7 +589,7 @@ func (x *BlobstorInfo) GetType() string {
// without diacritics . Calculated automatically from `Locode` attribute.
//
// 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 {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View file

@ -13,7 +13,7 @@ message 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 {
// Undefined status, default value.
STATUS_UNDEFINED = 0;
@ -28,15 +28,15 @@ enum NetmapStatus {
MAINTENANCE = 3;
}
// NeoFS node description.
// FrostFS node description.
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"];
// Ways to connect to a node.
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
// string. Value can't be empty.
@ -74,7 +74,7 @@ message NodeInfo {
// without diacritics . Calculated automatically from `Locode` attribute.
//
// 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 {
// Key of the node attribute.
string key = 1 [json_name = "key"];
@ -86,13 +86,13 @@ message NodeInfo {
// `Country`.
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
// structures with duplicated attribute names or attributes with empty values
// will be considered invalid.
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"];
}