2020-09-13 19:27:47 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
2023-08-07 10:26:22 +08:00
|
|
|
// protoc-gen-go v1.31.0
|
2022-03-04 15:44:39 +08:00
|
|
|
// protoc v3.19.4
|
2021-01-25 16:41:30 +08:00
|
|
|
// source: models/model_node.proto
|
2020-09-13 19:27:47 +08:00
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
|
reflect "reflect"
|
|
|
|
|
sync "sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Node struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
2021-05-12 21:38:02 +08:00
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
|
StatusJSON []byte `protobuf:"bytes,3,opt,name=statusJSON,proto3" json:"statusJSON,omitempty"`
|
|
|
|
|
InstallDir string `protobuf:"bytes,4,opt,name=installDir,proto3" json:"installDir,omitempty"`
|
|
|
|
|
IsInstalled bool `protobuf:"varint,5,opt,name=isInstalled,proto3" json:"isInstalled,omitempty"`
|
|
|
|
|
Code string `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
|
UniqueId string `protobuf:"bytes,7,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
|
|
|
|
|
Secret string `protobuf:"bytes,8,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
|
|
|
Version int64 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
|
LatestVersion int64 `protobuf:"varint,10,opt,name=latestVersion,proto3" json:"latestVersion,omitempty"`
|
|
|
|
|
ConnectedAPINodeIds []int64 `protobuf:"varint,11,rep,packed,name=connectedAPINodeIds,proto3" json:"connectedAPINodeIds,omitempty"`
|
|
|
|
|
MaxCPU int32 `protobuf:"varint,12,opt,name=maxCPU,proto3" json:"maxCPU,omitempty"`
|
|
|
|
|
IsOn bool `protobuf:"varint,13,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
|
|
|
IsUp bool `protobuf:"varint,14,opt,name=isUp,proto3" json:"isUp,omitempty"`
|
|
|
|
|
DnsRoutes []*DNSRoute `protobuf:"bytes,15,rep,name=dnsRoutes,proto3" json:"dnsRoutes,omitempty"`
|
|
|
|
|
IsActive bool `protobuf:"varint,16,opt,name=isActive,proto3" json:"isActive,omitempty"`
|
|
|
|
|
MaxCacheDiskCapacity *SizeCapacity `protobuf:"bytes,17,opt,name=maxCacheDiskCapacity,proto3" json:"maxCacheDiskCapacity,omitempty"`
|
|
|
|
|
MaxCacheMemoryCapacity *SizeCapacity `protobuf:"bytes,18,opt,name=maxCacheMemoryCapacity,proto3" json:"maxCacheMemoryCapacity,omitempty"`
|
2022-03-16 15:24:56 +08:00
|
|
|
CacheDiskDir string `protobuf:"bytes,19,opt,name=cacheDiskDir,proto3" json:"cacheDiskDir,omitempty"`
|
2022-11-15 20:35:39 +08:00
|
|
|
CacheDiskSubDirsJSON []byte `protobuf:"bytes,23,opt,name=cacheDiskSubDirsJSON,proto3" json:"cacheDiskSubDirsJSON,omitempty"`
|
2022-04-04 16:42:11 +08:00
|
|
|
Level int32 `protobuf:"varint,20,opt,name=level,proto3" json:"level,omitempty"`
|
2022-10-26 10:42:02 +08:00
|
|
|
LnAddrs []string `protobuf:"bytes,21,rep,name=lnAddrs,proto3" json:"lnAddrs,omitempty"` // Ln访问地址
|
|
|
|
|
EnableIPLists bool `protobuf:"varint,22,opt,name=enableIPLists,proto3" json:"enableIPLists,omitempty"`
|
2022-11-21 21:08:17 +08:00
|
|
|
ApiNodeAddrsJSON []byte `protobuf:"bytes,24,opt,name=apiNodeAddrsJSON,proto3" json:"apiNodeAddrsJSON,omitempty"`
|
2023-05-17 18:42:35 +08:00
|
|
|
OfflineDay string `protobuf:"bytes,25,opt,name=offlineDay,proto3" json:"offlineDay,omitempty"` // 下线日期
|
|
|
|
|
IsBackupForCluster bool `protobuf:"varint,26,opt,name=isBackupForCluster,proto3" json:"isBackupForCluster,omitempty"` // 是否为集群备用节点
|
|
|
|
|
IsBackupForGroup bool `protobuf:"varint,27,opt,name=isBackupForGroup,proto3" json:"isBackupForGroup,omitempty"` // 是否为分组备用节点
|
|
|
|
|
NodeCluster *NodeCluster `protobuf:"bytes,32,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群
|
2021-08-11 21:00:35 +08:00
|
|
|
NodeLogin *NodeLogin `protobuf:"bytes,33,opt,name=nodeLogin,proto3" json:"nodeLogin,omitempty"`
|
2021-05-12 21:38:02 +08:00
|
|
|
InstallStatus *NodeInstallStatus `protobuf:"bytes,34,opt,name=installStatus,proto3" json:"installStatus,omitempty"`
|
|
|
|
|
IpAddresses []*NodeIPAddress `protobuf:"bytes,35,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"`
|
2021-05-25 17:49:05 +08:00
|
|
|
NodeGroup *NodeGroup `protobuf:"bytes,36,opt,name=nodeGroup,proto3" json:"nodeGroup,omitempty"`
|
|
|
|
|
NodeRegion *NodeRegion `protobuf:"bytes,37,opt,name=nodeRegion,proto3" json:"nodeRegion,omitempty"`
|
2021-07-31 22:23:16 +08:00
|
|
|
SecondaryNodeClusters []*NodeCluster `protobuf:"bytes,38,rep,name=secondaryNodeClusters,proto3" json:"secondaryNodeClusters,omitempty"` // 从集群
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) Reset() {
|
|
|
|
|
*x = Node{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-25 16:41:30 +08:00
|
|
|
mi := &file_models_model_node_proto_msgTypes[0]
|
2020-09-13 19:27:47 +08:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*Node) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *Node) ProtoReflect() protoreflect.Message {
|
2021-01-25 16:41:30 +08:00
|
|
|
mi := &file_models_model_node_proto_msgTypes[0]
|
2020-09-13 19:27:47 +08:00
|
|
|
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 Node.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*Node) Descriptor() ([]byte, []int) {
|
2021-01-25 16:41:30 +08:00
|
|
|
return file_models_model_node_proto_rawDescGZIP(), []int{0}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetName() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-27 12:33:18 +08:00
|
|
|
func (x *Node) GetStatusJSON() []byte {
|
2020-09-13 19:27:47 +08:00
|
|
|
if x != nil {
|
2020-10-27 12:33:18 +08:00
|
|
|
return x.StatusJSON
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
2020-10-27 12:33:18 +08:00
|
|
|
return nil
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetInstallDir() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.InstallDir
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetIsInstalled() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsInstalled
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetCode() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Code
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetUniqueId() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.UniqueId
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetSecret() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Secret
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-26 08:07:24 +08:00
|
|
|
func (x *Node) GetVersion() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Version
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetLatestVersion() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LatestVersion
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-04 16:10:19 +08:00
|
|
|
func (x *Node) GetConnectedAPINodeIds() []int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ConnectedAPINodeIds
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-10 12:31:40 +08:00
|
|
|
func (x *Node) GetMaxCPU() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MaxCPU
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetIsOn() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsOn
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-15 21:17:37 +08:00
|
|
|
func (x *Node) GetIsUp() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsUp
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-16 13:03:58 +08:00
|
|
|
func (x *Node) GetDnsRoutes() []*DNSRoute {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.DnsRoutes
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-17 16:48:05 +08:00
|
|
|
func (x *Node) GetIsActive() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsActive
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-12 21:38:02 +08:00
|
|
|
func (x *Node) GetMaxCacheDiskCapacity() *SizeCapacity {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MaxCacheDiskCapacity
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetMaxCacheMemoryCapacity() *SizeCapacity {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.MaxCacheMemoryCapacity
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-16 15:24:56 +08:00
|
|
|
func (x *Node) GetCacheDiskDir() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CacheDiskDir
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-15 20:35:39 +08:00
|
|
|
func (x *Node) GetCacheDiskSubDirsJSON() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CacheDiskSubDirsJSON
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-04 16:42:11 +08:00
|
|
|
func (x *Node) GetLevel() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Level
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-25 20:37:15 +08:00
|
|
|
func (x *Node) GetLnAddrs() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LnAddrs
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-26 10:42:02 +08:00
|
|
|
func (x *Node) GetEnableIPLists() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.EnableIPLists
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-21 21:08:17 +08:00
|
|
|
func (x *Node) GetApiNodeAddrsJSON() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ApiNodeAddrsJSON
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-17 18:42:35 +08:00
|
|
|
func (x *Node) GetOfflineDay() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.OfflineDay
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetIsBackupForCluster() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsBackupForCluster
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetIsBackupForGroup() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsBackupForGroup
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-17 17:36:01 +08:00
|
|
|
func (x *Node) GetNodeCluster() *NodeCluster {
|
2020-09-13 19:27:47 +08:00
|
|
|
if x != nil {
|
2020-12-17 17:36:01 +08:00
|
|
|
return x.NodeCluster
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 21:00:35 +08:00
|
|
|
func (x *Node) GetNodeLogin() *NodeLogin {
|
2020-09-13 19:27:47 +08:00
|
|
|
if x != nil {
|
2021-08-11 21:00:35 +08:00
|
|
|
return x.NodeLogin
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *Node) GetInstallStatus() *NodeInstallStatus {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.InstallStatus
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-26 21:15:13 +08:00
|
|
|
func (x *Node) GetIpAddresses() []*NodeIPAddress {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IpAddresses
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-25 17:49:05 +08:00
|
|
|
func (x *Node) GetNodeGroup() *NodeGroup {
|
2020-10-28 20:00:33 +08:00
|
|
|
if x != nil {
|
2021-05-25 17:49:05 +08:00
|
|
|
return x.NodeGroup
|
2020-10-28 20:00:33 +08:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-25 17:49:05 +08:00
|
|
|
func (x *Node) GetNodeRegion() *NodeRegion {
|
2020-12-10 16:11:31 +08:00
|
|
|
if x != nil {
|
2021-05-25 17:49:05 +08:00
|
|
|
return x.NodeRegion
|
2020-12-10 16:11:31 +08:00
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 22:23:16 +08:00
|
|
|
func (x *Node) GetSecondaryNodeClusters() []*NodeCluster {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SecondaryNodeClusters
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-31 17:24:41 +08:00
|
|
|
type BasicNode struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
|
IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
|
|
|
IsUp bool `protobuf:"varint,4,opt,name=isUp,proto3" json:"isUp,omitempty"`
|
2022-04-04 16:42:11 +08:00
|
|
|
Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
|
2021-08-31 17:24:41 +08:00
|
|
|
NodeCluster *NodeCluster `protobuf:"bytes,30,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` // 主集群
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) Reset() {
|
|
|
|
|
*x = BasicNode{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
mi := &file_models_model_node_proto_msgTypes[1]
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) String() string {
|
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*BasicNode) ProtoMessage() {}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) ProtoReflect() protoreflect.Message {
|
|
|
|
|
mi := &file_models_model_node_proto_msgTypes[1]
|
|
|
|
|
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 BasicNode.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*BasicNode) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_models_model_node_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) GetId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Id
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) GetName() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Name
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) GetIsOn() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsOn
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *BasicNode) GetIsUp() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IsUp
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-04 16:42:11 +08:00
|
|
|
func (x *BasicNode) GetLevel() int32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Level
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-31 17:24:41 +08:00
|
|
|
func (x *BasicNode) GetNodeCluster() *NodeCluster {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.NodeCluster
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-25 16:41:30 +08:00
|
|
|
var File_models_model_node_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_models_model_node_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1f, 0x6d,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d,
|
|
|
|
|
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64,
|
|
|
|
|
0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x6d,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
|
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f,
|
|
|
|
|
0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72,
|
|
|
|
|
0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
|
|
|
|
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x67, 0x72, 0x6f,
|
|
|
|
|
0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
|
|
|
|
|
0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69,
|
|
|
|
|
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
|
|
|
|
|
0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x64, 0x6e, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65,
|
2021-05-12 21:38:02 +08:00
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69,
|
2023-05-17 18:42:35 +08:00
|
|
|
0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x0a, 0x0a, 0x04, 0x4e, 0x6f, 0x64,
|
2021-05-12 21:38:02 +08:00
|
|
|
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
|
|
|
|
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a,
|
|
|
|
|
0x53, 0x4f, 0x4e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
|
0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c,
|
|
|
|
|
0x44, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x6c, 0x6c, 0x44, 0x69, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61,
|
|
|
|
|
0x6c, 0x6c, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x49, 0x6e,
|
|
|
|
|
0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
|
|
|
|
|
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75,
|
|
|
|
|
0x6e, 0x69, 0x71, 0x75, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
|
|
|
|
|
0x6e, 0x69, 0x71, 0x75, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
|
|
|
|
|
0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
|
|
|
|
|
0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
|
0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x74,
|
|
|
|
|
0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
|
0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
|
|
|
|
0x30, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, 0x4e,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x03, 0x52, 0x13, 0x63, 0x6f,
|
|
|
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64,
|
|
|
|
|
0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x43, 0x50, 0x55, 0x18, 0x0c, 0x20, 0x01, 0x28,
|
|
|
|
|
0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x43, 0x50, 0x55, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f,
|
|
|
|
|
0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a,
|
|
|
|
|
0x04, 0x69, 0x73, 0x55, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x55,
|
|
|
|
|
0x70, 0x12, 0x2a, 0x0a, 0x09, 0x64, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f,
|
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x4e, 0x53, 0x52, 0x6f, 0x75,
|
|
|
|
|
0x74, 0x65, 0x52, 0x09, 0x64, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a,
|
|
|
|
|
0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x44, 0x0a, 0x14, 0x6d, 0x61, 0x78,
|
|
|
|
|
0x43, 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74,
|
|
|
|
|
0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x7a,
|
|
|
|
|
0x65, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x43, 0x61,
|
|
|
|
|
0x63, 0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12,
|
|
|
|
|
0x48, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x72,
|
|
|
|
|
0x79, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
|
|
|
0x10, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x7a, 0x65, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74,
|
|
|
|
|
0x79, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4d, 0x65, 0x6d, 0x6f, 0x72,
|
2022-03-16 15:24:56 +08:00
|
|
|
0x79, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x61, 0x63,
|
|
|
|
|
0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x44, 0x69, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52,
|
2022-11-15 20:35:39 +08:00
|
|
|
0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x44, 0x69, 0x72, 0x12, 0x32, 0x0a,
|
|
|
|
|
0x14, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x75, 0x62, 0x44, 0x69, 0x72,
|
|
|
|
|
0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x63, 0x61, 0x63,
|
|
|
|
|
0x68, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x53, 0x75, 0x62, 0x44, 0x69, 0x72, 0x73, 0x4a, 0x53, 0x4f,
|
|
|
|
|
0x4e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05,
|
|
|
|
|
0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6e, 0x41, 0x64, 0x64,
|
|
|
|
|
0x72, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6e, 0x41, 0x64, 0x64, 0x72,
|
|
|
|
|
0x73, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x73,
|
|
|
|
|
0x74, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
2022-11-21 21:08:17 +08:00
|
|
|
0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f,
|
|
|
|
|
0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x18, 0x20, 0x01, 0x28,
|
|
|
|
|
0x0c, 0x52, 0x10, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x4a,
|
2023-05-17 18:42:35 +08:00
|
|
|
0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61,
|
|
|
|
|
0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65,
|
|
|
|
|
0x44, 0x61, 0x79, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46,
|
|
|
|
|
0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
|
|
|
0x12, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46, 0x6f, 0x72, 0x43, 0x6c, 0x75, 0x73,
|
|
|
|
|
0x74, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46,
|
|
|
|
|
0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x69,
|
|
|
|
|
0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x46, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
|
|
|
|
|
0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x20,
|
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
|
|
|
|
|
0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
|
|
|
|
|
0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18,
|
|
|
|
|
0x21, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4c,
|
|
|
|
|
0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12,
|
|
|
|
|
0x3b, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
|
|
|
0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
|
|
|
|
|
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x69,
|
|
|
|
|
0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x33, 0x0a, 0x0b,
|
|
|
|
|
0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x23, 0x20, 0x03, 0x28,
|
|
|
|
|
0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64,
|
|
|
|
|
0x72, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65,
|
|
|
|
|
0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x24,
|
|
|
|
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x47, 0x72,
|
|
|
|
|
0x6f, 0x75, 0x70, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2e,
|
|
|
|
|
0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x25, 0x20, 0x01,
|
|
|
|
|
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
|
|
|
|
|
0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x45,
|
|
|
|
|
0x0a, 0x15, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x43,
|
|
|
|
|
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
|
|
|
|
|
0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x15,
|
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75,
|
|
|
|
|
0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x4e,
|
|
|
|
|
0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
|
0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
|
|
|
|
|
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69,
|
|
|
|
|
0x73, 0x55, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x55, 0x70, 0x12,
|
|
|
|
|
0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
|
|
|
|
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75,
|
|
|
|
|
0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e,
|
|
|
|
|
0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64,
|
|
|
|
|
0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
|
|
|
|
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
2021-01-25 16:41:30 +08:00
|
|
|
file_models_model_node_proto_rawDescOnce sync.Once
|
|
|
|
|
file_models_model_node_proto_rawDescData = file_models_model_node_proto_rawDesc
|
2020-09-13 19:27:47 +08:00
|
|
|
)
|
|
|
|
|
|
2021-01-25 16:41:30 +08:00
|
|
|
func file_models_model_node_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_models_model_node_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_models_model_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_node_proto_rawDescData)
|
2020-09-13 19:27:47 +08:00
|
|
|
})
|
2021-01-25 16:41:30 +08:00
|
|
|
return file_models_model_node_proto_rawDescData
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
2021-08-31 17:24:41 +08:00
|
|
|
var file_models_model_node_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
2021-01-25 16:41:30 +08:00
|
|
|
var file_models_model_node_proto_goTypes = []interface{}{
|
2020-09-13 19:27:47 +08:00
|
|
|
(*Node)(nil), // 0: pb.Node
|
2021-08-31 17:24:41 +08:00
|
|
|
(*BasicNode)(nil), // 1: pb.BasicNode
|
|
|
|
|
(*DNSRoute)(nil), // 2: pb.DNSRoute
|
|
|
|
|
(*SizeCapacity)(nil), // 3: pb.SizeCapacity
|
|
|
|
|
(*NodeCluster)(nil), // 4: pb.NodeCluster
|
|
|
|
|
(*NodeLogin)(nil), // 5: pb.NodeLogin
|
|
|
|
|
(*NodeInstallStatus)(nil), // 6: pb.NodeInstallStatus
|
|
|
|
|
(*NodeIPAddress)(nil), // 7: pb.NodeIPAddress
|
|
|
|
|
(*NodeGroup)(nil), // 8: pb.NodeGroup
|
|
|
|
|
(*NodeRegion)(nil), // 9: pb.NodeRegion
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
2021-01-25 16:41:30 +08:00
|
|
|
var file_models_model_node_proto_depIdxs = []int32{
|
2021-08-31 17:24:41 +08:00
|
|
|
2, // 0: pb.Node.dnsRoutes:type_name -> pb.DNSRoute
|
|
|
|
|
3, // 1: pb.Node.maxCacheDiskCapacity:type_name -> pb.SizeCapacity
|
|
|
|
|
3, // 2: pb.Node.maxCacheMemoryCapacity:type_name -> pb.SizeCapacity
|
|
|
|
|
4, // 3: pb.Node.nodeCluster:type_name -> pb.NodeCluster
|
|
|
|
|
5, // 4: pb.Node.nodeLogin:type_name -> pb.NodeLogin
|
|
|
|
|
6, // 5: pb.Node.installStatus:type_name -> pb.NodeInstallStatus
|
|
|
|
|
7, // 6: pb.Node.ipAddresses:type_name -> pb.NodeIPAddress
|
|
|
|
|
8, // 7: pb.Node.nodeGroup:type_name -> pb.NodeGroup
|
|
|
|
|
9, // 8: pb.Node.nodeRegion:type_name -> pb.NodeRegion
|
|
|
|
|
4, // 9: pb.Node.secondaryNodeClusters:type_name -> pb.NodeCluster
|
|
|
|
|
4, // 10: pb.BasicNode.nodeCluster:type_name -> pb.NodeCluster
|
|
|
|
|
11, // [11:11] is the sub-list for method output_type
|
|
|
|
|
11, // [11:11] is the sub-list for method input_type
|
|
|
|
|
11, // [11:11] is the sub-list for extension type_name
|
|
|
|
|
11, // [11:11] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:11] is the sub-list for field type_name
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
2021-01-25 16:41:30 +08:00
|
|
|
func init() { file_models_model_node_proto_init() }
|
|
|
|
|
func file_models_model_node_proto_init() {
|
|
|
|
|
if File_models_model_node_proto != nil {
|
2020-09-13 19:27:47 +08:00
|
|
|
return
|
|
|
|
|
}
|
2021-01-25 16:41:30 +08:00
|
|
|
file_models_model_node_cluster_proto_init()
|
|
|
|
|
file_models_model_node_login_proto_init()
|
|
|
|
|
file_models_model_node_install_status_proto_init()
|
|
|
|
|
file_models_model_node_ip_address_proto_init()
|
|
|
|
|
file_models_model_node_group_proto_init()
|
|
|
|
|
file_models_model_node_region_proto_init()
|
|
|
|
|
file_models_model_dns_route_proto_init()
|
2021-05-12 21:38:02 +08:00
|
|
|
file_models_model_size_capacity_proto_init()
|
2020-09-13 19:27:47 +08:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
2021-01-25 16:41:30 +08:00
|
|
|
file_models_model_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2020-09-13 19:27:47 +08:00
|
|
|
switch v := v.(*Node); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-08-31 17:24:41 +08:00
|
|
|
file_models_model_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*BasicNode); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2021-01-25 16:41:30 +08:00
|
|
|
RawDescriptor: file_models_model_node_proto_rawDesc,
|
2020-09-13 19:27:47 +08:00
|
|
|
NumEnums: 0,
|
2021-08-31 17:24:41 +08:00
|
|
|
NumMessages: 2,
|
2020-09-13 19:27:47 +08:00
|
|
|
NumExtensions: 0,
|
|
|
|
|
NumServices: 0,
|
|
|
|
|
},
|
2021-01-25 16:41:30 +08:00
|
|
|
GoTypes: file_models_model_node_proto_goTypes,
|
|
|
|
|
DependencyIndexes: file_models_model_node_proto_depIdxs,
|
|
|
|
|
MessageInfos: file_models_model_node_proto_msgTypes,
|
2020-09-13 19:27:47 +08:00
|
|
|
}.Build()
|
2021-01-25 16:41:30 +08:00
|
|
|
File_models_model_node_proto = out.File
|
|
|
|
|
file_models_model_node_proto_rawDesc = nil
|
|
|
|
|
file_models_model_node_proto_goTypes = nil
|
|
|
|
|
file_models_model_node_proto_depIdxs = nil
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|