2021-01-15 06:23:21 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
2022-01-24 10:13:37 +00:00
|
|
|
// protoc-gen-go v1.26.0
|
2022-09-17 12:37:01 +00:00
|
|
|
// protoc v3.21.6
|
2021-01-13 13:46:39 +00:00
|
|
|
// source: pkg/services/control/types.proto
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-13 13:46:39 +00:00
|
|
|
package control
|
2021-01-13 12:47:54 +00:00
|
|
|
|
|
|
|
import (
|
2022-09-17 12:37:01 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
2022-09-21 10:51:51 +00:00
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2021-01-13 12:47:54 +00:00
|
|
|
)
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
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)
|
|
|
|
)
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
// Status of the storage node in the NeoFS network map.
|
|
|
|
type NetmapStatus int32
|
2021-01-13 12:47:54 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// Undefined status, default value.
|
2021-01-15 09:42:31 +00:00
|
|
|
NetmapStatus_STATUS_UNDEFINED NetmapStatus = 0
|
2021-01-13 12:47:54 +00:00
|
|
|
// Node is online.
|
2021-01-15 09:42:31 +00:00
|
|
|
NetmapStatus_ONLINE NetmapStatus = 1
|
2021-01-13 12:47:54 +00:00
|
|
|
// Node is offline.
|
2021-01-15 09:42:31 +00:00
|
|
|
NetmapStatus_OFFLINE NetmapStatus = 2
|
2021-11-09 15:47:45 +00:00
|
|
|
// Node is maintained by the owner.
|
|
|
|
NetmapStatus_MAINTENANCE NetmapStatus = 3
|
2021-01-13 12:47:54 +00:00
|
|
|
)
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
// Enum value maps for NetmapStatus.
|
2021-01-15 06:23:21 +00:00
|
|
|
var (
|
2021-01-15 09:42:31 +00:00
|
|
|
NetmapStatus_name = map[int32]string{
|
2021-01-15 06:23:21 +00:00
|
|
|
0: "STATUS_UNDEFINED",
|
|
|
|
1: "ONLINE",
|
|
|
|
2: "OFFLINE",
|
2021-11-09 15:47:45 +00:00
|
|
|
3: "MAINTENANCE",
|
2021-01-15 06:23:21 +00:00
|
|
|
}
|
2021-01-15 09:42:31 +00:00
|
|
|
NetmapStatus_value = map[string]int32{
|
2021-01-15 06:23:21 +00:00
|
|
|
"STATUS_UNDEFINED": 0,
|
|
|
|
"ONLINE": 1,
|
|
|
|
"OFFLINE": 2,
|
2021-11-09 15:47:45 +00:00
|
|
|
"MAINTENANCE": 3,
|
2021-01-15 06:23:21 +00:00
|
|
|
}
|
|
|
|
)
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (x NetmapStatus) Enum() *NetmapStatus {
|
|
|
|
p := new(NetmapStatus)
|
2021-01-15 06:23:21 +00:00
|
|
|
*p = x
|
|
|
|
return p
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (x NetmapStatus) String() string {
|
2021-01-15 06:23:21 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (NetmapStatus) Descriptor() protoreflect.EnumDescriptor {
|
2021-01-15 06:23:21 +00:00
|
|
|
return file_pkg_services_control_types_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (NetmapStatus) Type() protoreflect.EnumType {
|
2021-01-15 06:23:21 +00:00
|
|
|
return &file_pkg_services_control_types_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (x NetmapStatus) Number() protoreflect.EnumNumber {
|
2021-01-15 06:23:21 +00:00
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
// Deprecated: Use NetmapStatus.Descriptor instead.
|
|
|
|
func (NetmapStatus) EnumDescriptor() ([]byte, []int) {
|
2021-01-15 06:23:21 +00:00
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{0}
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 10:13:41 +00:00
|
|
|
// Health status of the storage node application.
|
|
|
|
type HealthStatus int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Undefined status, default value.
|
|
|
|
HealthStatus_HEALTH_STATUS_UNDEFINED HealthStatus = 0
|
|
|
|
// Storage node application is starting.
|
|
|
|
HealthStatus_STARTING HealthStatus = 1
|
|
|
|
// Storage node application is started and serves all services.
|
|
|
|
HealthStatus_READY HealthStatus = 2
|
|
|
|
// Storage node application is shutting down.
|
|
|
|
HealthStatus_SHUTTING_DOWN HealthStatus = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for HealthStatus.
|
|
|
|
var (
|
|
|
|
HealthStatus_name = map[int32]string{
|
|
|
|
0: "HEALTH_STATUS_UNDEFINED",
|
|
|
|
1: "STARTING",
|
|
|
|
2: "READY",
|
|
|
|
3: "SHUTTING_DOWN",
|
|
|
|
}
|
|
|
|
HealthStatus_value = map[string]int32{
|
|
|
|
"HEALTH_STATUS_UNDEFINED": 0,
|
|
|
|
"STARTING": 1,
|
|
|
|
"READY": 2,
|
|
|
|
"SHUTTING_DOWN": 3,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x HealthStatus) Enum() *HealthStatus {
|
|
|
|
p := new(HealthStatus)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x HealthStatus) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (HealthStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_pkg_services_control_types_proto_enumTypes[1].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (HealthStatus) Type() protoreflect.EnumType {
|
|
|
|
return &file_pkg_services_control_types_proto_enumTypes[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x HealthStatus) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use HealthStatus.Descriptor instead.
|
|
|
|
func (HealthStatus) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
2021-12-17 12:39:56 +00:00
|
|
|
// Work mode of the shard.
|
|
|
|
type ShardMode int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Undefined mode, default value.
|
|
|
|
ShardMode_SHARD_MODE_UNDEFINED ShardMode = 0
|
|
|
|
// Read-write.
|
|
|
|
ShardMode_READ_WRITE ShardMode = 1
|
|
|
|
// Read-only.
|
|
|
|
ShardMode_READ_ONLY ShardMode = 2
|
2022-03-17 11:55:25 +00:00
|
|
|
// Degraded.
|
|
|
|
ShardMode_DEGRADED ShardMode = 3
|
2022-07-18 11:44:29 +00:00
|
|
|
// DegradedReadOnly.
|
|
|
|
ShardMode_DEGRADED_READ_ONLY ShardMode = 4
|
2021-12-17 12:39:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for ShardMode.
|
|
|
|
var (
|
|
|
|
ShardMode_name = map[int32]string{
|
|
|
|
0: "SHARD_MODE_UNDEFINED",
|
|
|
|
1: "READ_WRITE",
|
|
|
|
2: "READ_ONLY",
|
2022-03-17 11:55:25 +00:00
|
|
|
3: "DEGRADED",
|
2022-07-18 11:44:29 +00:00
|
|
|
4: "DEGRADED_READ_ONLY",
|
2021-12-17 12:39:56 +00:00
|
|
|
}
|
|
|
|
ShardMode_value = map[string]int32{
|
|
|
|
"SHARD_MODE_UNDEFINED": 0,
|
|
|
|
"READ_WRITE": 1,
|
|
|
|
"READ_ONLY": 2,
|
2022-03-17 11:55:25 +00:00
|
|
|
"DEGRADED": 3,
|
2022-07-18 11:44:29 +00:00
|
|
|
"DEGRADED_READ_ONLY": 4,
|
2021-12-17 12:39:56 +00:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x ShardMode) Enum() *ShardMode {
|
|
|
|
p := new(ShardMode)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ShardMode) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ShardMode) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_pkg_services_control_types_proto_enumTypes[2].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ShardMode) Type() protoreflect.EnumType {
|
|
|
|
return &file_pkg_services_control_types_proto_enumTypes[2]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x ShardMode) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ShardMode.Descriptor instead.
|
|
|
|
func (ShardMode) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
2021-01-13 12:47:54 +00:00
|
|
|
// Signature of some message.
|
|
|
|
type Signature struct {
|
2021-01-15 06:23:21 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-01-13 12:47:54 +00:00
|
|
|
// Public key used for signing.
|
|
|
|
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Binary signature.
|
2021-01-15 06:23:21 +00:00
|
|
|
Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *Signature) Reset() {
|
|
|
|
*x = Signature{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
|
|
|
|
func (x *Signature) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
|
|
|
|
func (*Signature) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Signature) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return ms
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return mi.MessageOf(x)
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
// Deprecated: Use Signature.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Signature) Descriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *Signature) GetKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *Signature) GetSign() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Sign
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-14 15:59:39 +00:00
|
|
|
// NeoFS node description.
|
|
|
|
type NodeInfo struct {
|
2021-01-15 06:23:21 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-01-14 15:59:39 +00:00
|
|
|
// Public key of the NeoFS 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.
|
2021-06-22 19:48:33 +00:00
|
|
|
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
2021-01-14 15:59:39 +00:00
|
|
|
// Carries list of the NeoFS 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.
|
2021-01-15 09:42:31 +00:00
|
|
|
State NetmapStatus `protobuf:"varint,4,opt,name=state,proto3,enum=control.NetmapStatus" json:"state,omitempty"`
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo) Reset() {
|
|
|
|
*x = NodeInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
|
|
|
|
func (x *NodeInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
|
|
|
|
func (*NodeInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return ms
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return mi.MessageOf(x)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
// Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NodeInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2021-01-14 15:59:39 +00:00
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo) GetPublicKey() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PublicKey
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-06-22 19:48:33 +00:00
|
|
|
func (x *NodeInfo) GetAddresses() []string {
|
2021-01-15 06:23:21 +00:00
|
|
|
if x != nil {
|
2021-06-22 19:48:33 +00:00
|
|
|
return x.Addresses
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-06-22 19:48:33 +00:00
|
|
|
return nil
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo) GetAttributes() []*NodeInfo_Attribute {
|
|
|
|
if x != nil {
|
|
|
|
return x.Attributes
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-15 09:42:31 +00:00
|
|
|
func (x *NodeInfo) GetState() NetmapStatus {
|
2021-01-15 06:23:21 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.State
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 09:42:31 +00:00
|
|
|
return NetmapStatus_STATUS_UNDEFINED
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
// Network map structure.
|
|
|
|
type Netmap struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Network map revision number.
|
|
|
|
Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
|
|
|
// Nodes presented in network.
|
|
|
|
Nodes []*NodeInfo `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) Reset() {
|
|
|
|
*x = Netmap{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Netmap) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Netmap) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_pkg_services_control_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 Netmap.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Netmap) Descriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) GetEpoch() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Epoch
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Netmap) GetNodes() []*NodeInfo {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-12-17 12:39:56 +00:00
|
|
|
// Shard description.
|
|
|
|
type ShardInfo struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// ID of the shard.
|
|
|
|
Shard_ID []byte `protobuf:"bytes,1,opt,name=shard_ID,json=shardID,proto3" json:"shard_ID,omitempty"`
|
|
|
|
// Path to shard's metabase.
|
|
|
|
MetabasePath string `protobuf:"bytes,2,opt,name=metabase_path,json=metabasePath,proto3" json:"metabase_path,omitempty"`
|
2021-12-27 12:03:24 +00:00
|
|
|
// Path to shard's blobstor.
|
2021-12-17 12:39:56 +00:00
|
|
|
BlobstorPath string `protobuf:"bytes,3,opt,name=blobstor_path,json=blobstorPath,proto3" json:"blobstor_path,omitempty"`
|
|
|
|
// Path to shard's write-cache, empty if disabled.
|
|
|
|
WritecachePath string `protobuf:"bytes,4,opt,name=writecache_path,json=writecachePath,proto3" json:"writecache_path,omitempty"`
|
|
|
|
// Work mode of the shard.
|
|
|
|
Mode ShardMode `protobuf:"varint,5,opt,name=mode,proto3,enum=control.ShardMode" json:"mode,omitempty"`
|
2022-01-31 15:23:19 +00:00
|
|
|
// Amount of errors occured.
|
|
|
|
ErrorCount uint32 `protobuf:"varint,6,opt,name=errorCount,proto3" json:"errorCount,omitempty"`
|
2022-05-16 13:23:09 +00:00
|
|
|
// Path to shard's pilorama storage.
|
|
|
|
PiloramaPath string `protobuf:"bytes,7,opt,name=pilorama_path,json=piloramaPath,proto3" json:"pilorama_path,omitempty"`
|
2021-12-17 12:39:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) Reset() {
|
|
|
|
*x = ShardInfo{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ShardInfo) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ShardInfo) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_pkg_services_control_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 ShardInfo.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ShardInfo) Descriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) GetShard_ID() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Shard_ID
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) GetMetabasePath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.MetabasePath
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) GetBlobstorPath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.BlobstorPath
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) GetWritecachePath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.WritecachePath
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ShardInfo) GetMode() ShardMode {
|
|
|
|
if x != nil {
|
|
|
|
return x.Mode
|
|
|
|
}
|
|
|
|
return ShardMode_SHARD_MODE_UNDEFINED
|
|
|
|
}
|
|
|
|
|
2022-01-31 15:23:19 +00:00
|
|
|
func (x *ShardInfo) GetErrorCount() uint32 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ErrorCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-05-16 13:23:09 +00:00
|
|
|
func (x *ShardInfo) GetPiloramaPath() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.PiloramaPath
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-14 15:59:39 +00:00
|
|
|
// Administrator-defined Attributes of the NeoFS Storage Node.
|
|
|
|
//
|
|
|
|
// `Attribute` is a Key-Value metadata pair. Key name must be a valid UTF-8
|
|
|
|
// string. Value can't be empty.
|
|
|
|
//
|
|
|
|
// Node's attributes are mostly used during Storage Policy evaluation to
|
|
|
|
// calculate object's placement and find a set of nodes satisfying policy
|
|
|
|
// requirements. There are some "well-known" node attributes common to all the
|
|
|
|
// Storage Nodes in the network and used implicitly with default values if not
|
|
|
|
// explicitly set:
|
|
|
|
//
|
2022-08-15 16:20:20 +00:00
|
|
|
// - Capacity \
|
|
|
|
// Total available disk space in Gigabytes.
|
|
|
|
// - Price \
|
|
|
|
// Price in GAS tokens for storing one GB of data during one Epoch. In node
|
|
|
|
// attributes it's a string presenting floating point number with comma or
|
|
|
|
// point delimiter for decimal part. In the Network Map it will be saved as
|
|
|
|
// 64-bit unsigned integer representing number of minimal token fractions.
|
|
|
|
// - Subnet \
|
|
|
|
// String ID of Node's storage subnet. There can be only one subnet served
|
|
|
|
// by the Storage Node.
|
|
|
|
// - Locode \
|
|
|
|
// Node's geographic location in
|
|
|
|
// [UN/LOCODE](https://www.unece.org/cefact/codesfortrade/codes_index.html)
|
|
|
|
// format approximated to the nearest point defined in standard.
|
|
|
|
// - Country \
|
|
|
|
// Country code in
|
|
|
|
// [ISO 3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
|
|
// format. Calculated automatically from `Locode` attribute
|
|
|
|
// - Region \
|
|
|
|
// Country's administative subdivision where node is located. Calculated
|
|
|
|
// automatically from `Locode` attribute based on `SubDiv` field. Presented
|
|
|
|
// in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.
|
|
|
|
// - City \
|
|
|
|
// City, town, village or rural area name where node is located written
|
|
|
|
// without diacritics . Calculated automatically from `Locode` attribute.
|
2021-01-14 15:59:39 +00:00
|
|
|
//
|
|
|
|
// For detailed description of each well-known attribute please see the
|
|
|
|
// corresponding section in NeoFS Technical specification.
|
|
|
|
type NodeInfo_Attribute struct {
|
2021-01-15 06:23:21 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2021-01-14 15:59:39 +00:00
|
|
|
// Key of the node attribute.
|
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
// Value of the node attribute.
|
|
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
// Parent keys, if any. For example for `City` it could be `Region` and
|
|
|
|
// `Country`.
|
2021-01-15 06:23:21 +00:00
|
|
|
Parents []string `protobuf:"bytes,3,rep,name=parents,proto3" json:"parents,omitempty"`
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) Reset() {
|
|
|
|
*x = NodeInfo_Attribute{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-12-17 12:39:56 +00:00
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[4]
|
2021-01-15 06:23:21 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (*NodeInfo_Attribute) ProtoMessage() {}
|
2021-01-14 15:59:39 +00:00
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) ProtoReflect() protoreflect.Message {
|
2021-12-17 12:39:56 +00:00
|
|
|
mi := &file_pkg_services_control_types_proto_msgTypes[4]
|
2021-01-15 06:23:21 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return ms
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return mi.MessageOf(x)
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
// Deprecated: Use NodeInfo_Attribute.ProtoReflect.Descriptor instead.
|
|
|
|
func (*NodeInfo_Attribute) Descriptor() ([]byte, []int) {
|
|
|
|
return file_pkg_services_control_types_proto_rawDescGZIP(), []int{1, 0}
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return ""
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetValue() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
return ""
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
func (x *NodeInfo_Attribute) GetParents() []string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Parents
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2021-01-14 15:59:39 +00:00
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
var File_pkg_services_control_types_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_pkg_services_control_types_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x20, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63,
|
|
|
|
0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x12, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x22, 0x36, 0x0a, 0x09, 0x53,
|
|
|
|
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x69,
|
|
|
|
0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
2021-06-22 19:48:33 +00:00
|
|
|
0x75, 0x72, 0x65, 0x22, 0x80, 0x02, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f,
|
2021-01-15 06:23:21 +00:00
|
|
|
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, 0x12,
|
2021-06-22 19:48:33 +00:00
|
|
|
0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,
|
|
|
|
0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x3b, 0x0a,
|
|
|
|
0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
|
|
|
|
0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
|
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a,
|
|
|
|
0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x74,
|
|
|
|
0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6e, 0x74,
|
|
|
|
0x72, 0x6f, 0x6c, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
|
0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x4d, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69,
|
|
|
|
0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
|
|
|
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70,
|
|
|
|
0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x47, 0x0a, 0x06, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
|
|
|
0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
|
|
0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x27, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18,
|
|
|
|
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e,
|
2021-12-17 12:39:56 +00:00
|
|
|
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22,
|
2022-05-16 13:23:09 +00:00
|
|
|
0x86, 0x02, 0x0a, 0x09, 0x53, 0x68, 0x61, 0x72, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a,
|
2021-12-17 12:39:56 +00:00
|
|
|
0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
|
|
0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x44, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x61,
|
|
|
|
0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x0c, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a,
|
|
|
|
0x0d, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x74, 0x6f, 0x72, 0x50, 0x61,
|
|
|
|
0x74, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x63, 0x61, 0x63, 0x68, 0x65,
|
|
|
|
0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x77, 0x72, 0x69,
|
|
|
|
0x74, 0x65, 0x63, 0x61, 0x63, 0x68, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x04, 0x6d,
|
|
|
|
0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x63, 0x6f, 0x6e, 0x74,
|
|
|
|
0x72, 0x6f, 0x6c, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d,
|
2022-01-31 15:23:19 +00:00
|
|
|
0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e,
|
|
|
|
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f,
|
2022-05-16 13:23:09 +00:00
|
|
|
0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x69, 0x6c, 0x6f, 0x72, 0x61, 0x6d, 0x61, 0x5f,
|
|
|
|
0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x69, 0x6c, 0x6f,
|
|
|
|
0x72, 0x61, 0x6d, 0x61, 0x50, 0x61, 0x74, 0x68, 0x2a, 0x4e, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x6d,
|
|
|
|
0x61, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54,
|
|
|
|
0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a,
|
|
|
|
0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46,
|
|
|
|
0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e, 0x54,
|
|
|
|
0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x2a, 0x57, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x6c,
|
|
|
|
0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x48, 0x45, 0x41, 0x4c,
|
|
|
|
0x54, 0x48, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49,
|
|
|
|
0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x54, 0x41, 0x52, 0x54, 0x49, 0x4e,
|
|
|
|
0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x11,
|
|
|
|
0x0a, 0x0d, 0x53, 0x48, 0x55, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x4f, 0x57, 0x4e, 0x10,
|
2022-07-18 11:44:29 +00:00
|
|
|
0x03, 0x2a, 0x6a, 0x0a, 0x09, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x18,
|
2022-05-16 13:23:09 +00:00
|
|
|
0x0a, 0x14, 0x53, 0x48, 0x41, 0x52, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x44,
|
|
|
|
0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x41, 0x44,
|
|
|
|
0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44,
|
|
|
|
0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x47, 0x52, 0x41,
|
2022-07-18 11:44:29 +00:00
|
|
|
0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x45, 0x47, 0x52, 0x41, 0x44, 0x45,
|
|
|
|
0x44, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x42, 0x36, 0x5a,
|
|
|
|
0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63,
|
|
|
|
0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65,
|
|
|
|
0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x6f,
|
|
|
|
0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
var (
|
|
|
|
file_pkg_services_control_types_proto_rawDescOnce sync.Once
|
|
|
|
file_pkg_services_control_types_proto_rawDescData = file_pkg_services_control_types_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_pkg_services_control_types_proto_rawDescGZIP() []byte {
|
|
|
|
file_pkg_services_control_types_proto_rawDescOnce.Do(func() {
|
|
|
|
file_pkg_services_control_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_services_control_types_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_pkg_services_control_types_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2021-12-17 12:39:56 +00:00
|
|
|
var file_pkg_services_control_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
|
|
var file_pkg_services_control_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
2021-01-15 06:23:21 +00:00
|
|
|
var file_pkg_services_control_types_proto_goTypes = []interface{}{
|
2021-01-15 09:42:31 +00:00
|
|
|
(NetmapStatus)(0), // 0: control.NetmapStatus
|
2021-01-15 10:13:41 +00:00
|
|
|
(HealthStatus)(0), // 1: control.HealthStatus
|
2021-12-17 12:39:56 +00:00
|
|
|
(ShardMode)(0), // 2: control.ShardMode
|
|
|
|
(*Signature)(nil), // 3: control.Signature
|
|
|
|
(*NodeInfo)(nil), // 4: control.NodeInfo
|
|
|
|
(*Netmap)(nil), // 5: control.Netmap
|
|
|
|
(*ShardInfo)(nil), // 6: control.ShardInfo
|
|
|
|
(*NodeInfo_Attribute)(nil), // 7: control.NodeInfo.Attribute
|
2021-01-15 06:23:21 +00:00
|
|
|
}
|
|
|
|
var file_pkg_services_control_types_proto_depIdxs = []int32{
|
2021-12-17 12:39:56 +00:00
|
|
|
7, // 0: control.NodeInfo.attributes:type_name -> control.NodeInfo.Attribute
|
2021-01-15 09:42:31 +00:00
|
|
|
0, // 1: control.NodeInfo.state:type_name -> control.NetmapStatus
|
2021-12-17 12:39:56 +00:00
|
|
|
4, // 2: control.Netmap.nodes:type_name -> control.NodeInfo
|
|
|
|
2, // 3: control.ShardInfo.mode:type_name -> control.ShardMode
|
|
|
|
4, // [4:4] is the sub-list for method output_type
|
|
|
|
4, // [4:4] is the sub-list for method input_type
|
|
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
|
|
0, // [0:4] is the sub-list for field type_name
|
2021-01-15 06:23:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_pkg_services_control_types_proto_init() }
|
|
|
|
func file_pkg_services_control_types_proto_init() {
|
|
|
|
if File_pkg_services_control_types_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_pkg_services_control_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Signature); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
file_pkg_services_control_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*NodeInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2021-01-14 15:59:39 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
file_pkg_services_control_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Netmap); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
file_pkg_services_control_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2021-12-17 12:39:56 +00:00
|
|
|
switch v := v.(*ShardInfo); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_pkg_services_control_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-15 06:23:21 +00:00
|
|
|
switch v := v.(*NodeInfo_Attribute); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-15 06:23:21 +00:00
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_pkg_services_control_types_proto_rawDesc,
|
2021-12-17 12:39:56 +00:00
|
|
|
NumEnums: 3,
|
|
|
|
NumMessages: 5,
|
2021-01-15 06:23:21 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 0,
|
|
|
|
},
|
|
|
|
GoTypes: file_pkg_services_control_types_proto_goTypes,
|
|
|
|
DependencyIndexes: file_pkg_services_control_types_proto_depIdxs,
|
|
|
|
EnumInfos: file_pkg_services_control_types_proto_enumTypes,
|
|
|
|
MessageInfos: file_pkg_services_control_types_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_pkg_services_control_types_proto = out.File
|
|
|
|
file_pkg_services_control_types_proto_rawDesc = nil
|
|
|
|
file_pkg_services_control_types_proto_goTypes = nil
|
|
|
|
file_pkg_services_control_types_proto_depIdxs = nil
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|