342 lines
11 KiB
Go
342 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: models/model_node_cluster.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 NodeCluster struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
|
NodeGrantId int64 `protobuf:"varint,4,opt,name=nodeGrantId,proto3" json:"nodeGrantId,omitempty"`
|
|
InstallDir string `protobuf:"bytes,5,opt,name=installDir,proto3" json:"installDir,omitempty"`
|
|
UniqueId string `protobuf:"bytes,6,opt,name=uniqueId,proto3" json:"uniqueId,omitempty"`
|
|
Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
DnsName string `protobuf:"bytes,8,opt,name=dnsName,proto3" json:"dnsName,omitempty"`
|
|
DnsDomainId int64 `protobuf:"varint,9,opt,name=dnsDomainId,proto3" json:"dnsDomainId,omitempty"`
|
|
DnsDefaultRoute string `protobuf:"bytes,22,opt,name=dnsDefaultRoute,proto3" json:"dnsDefaultRoute,omitempty"` // DNS默认线路
|
|
HttpCachePolicyId int64 `protobuf:"varint,10,opt,name=httpCachePolicyId,proto3" json:"httpCachePolicyId,omitempty"`
|
|
HttpFirewallPolicyId int64 `protobuf:"varint,11,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"`
|
|
IsOn bool `protobuf:"varint,12,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
TimeZone string `protobuf:"bytes,13,opt,name=timeZone,proto3" json:"timeZone,omitempty"`
|
|
NodeMaxThreads int32 `protobuf:"varint,14,opt,name=nodeMaxThreads,proto3" json:"nodeMaxThreads,omitempty"`
|
|
AutoOpenPorts bool `protobuf:"varint,16,opt,name=autoOpenPorts,proto3" json:"autoOpenPorts,omitempty"`
|
|
IsPinned bool `protobuf:"varint,17,opt,name=isPinned,proto3" json:"isPinned,omitempty"`
|
|
ClockJSON []byte `protobuf:"bytes,18,opt,name=clockJSON,proto3" json:"clockJSON,omitempty"`
|
|
AutoRemoteStart bool `protobuf:"varint,19,opt,name=autoRemoteStart,proto3" json:"autoRemoteStart,omitempty"`
|
|
AutoInstallNftables bool `protobuf:"varint,20,opt,name=autoInstallNftables,proto3" json:"autoInstallNftables,omitempty"`
|
|
SshParamsJSON []byte `protobuf:"bytes,21,opt,name=sshParamsJSON,proto3" json:"sshParamsJSON,omitempty"`
|
|
AutoSystemTuning bool `protobuf:"varint,23,opt,name=autoSystemTuning,proto3" json:"autoSystemTuning,omitempty"` // 是否自动调节系统参数
|
|
AutoTrimDisks bool `protobuf:"varint,24,opt,name=autoTrimDisks,proto3" json:"autoTrimDisks,omitempty"` // 是否自动TRIM硬盘
|
|
MaxConcurrentReads int32 `protobuf:"varint,25,opt,name=maxConcurrentReads,proto3" json:"maxConcurrentReads,omitempty"` // 最大并发读
|
|
MaxConcurrentWrites int32 `protobuf:"varint,26,opt,name=maxConcurrentWrites,proto3" json:"maxConcurrentWrites,omitempty"` // 最大并发写
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NodeCluster) Reset() {
|
|
*x = NodeCluster{}
|
|
mi := &file_models_model_node_cluster_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NodeCluster) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NodeCluster) ProtoMessage() {}
|
|
|
|
func (x *NodeCluster) ProtoReflect() protoreflect.Message {
|
|
mi := &file_models_model_node_cluster_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use NodeCluster.ProtoReflect.Descriptor instead.
|
|
func (*NodeCluster) Descriptor() ([]byte, []int) {
|
|
return file_models_model_node_cluster_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *NodeCluster) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetNodeGrantId() int64 {
|
|
if x != nil {
|
|
return x.NodeGrantId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetInstallDir() string {
|
|
if x != nil {
|
|
return x.InstallDir
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetUniqueId() string {
|
|
if x != nil {
|
|
return x.UniqueId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetSecret() string {
|
|
if x != nil {
|
|
return x.Secret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetDnsName() string {
|
|
if x != nil {
|
|
return x.DnsName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetDnsDomainId() int64 {
|
|
if x != nil {
|
|
return x.DnsDomainId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetDnsDefaultRoute() string {
|
|
if x != nil {
|
|
return x.DnsDefaultRoute
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetHttpCachePolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpCachePolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetHttpFirewallPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpFirewallPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetTimeZone() string {
|
|
if x != nil {
|
|
return x.TimeZone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeCluster) GetNodeMaxThreads() int32 {
|
|
if x != nil {
|
|
return x.NodeMaxThreads
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetAutoOpenPorts() bool {
|
|
if x != nil {
|
|
return x.AutoOpenPorts
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetIsPinned() bool {
|
|
if x != nil {
|
|
return x.IsPinned
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetClockJSON() []byte {
|
|
if x != nil {
|
|
return x.ClockJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeCluster) GetAutoRemoteStart() bool {
|
|
if x != nil {
|
|
return x.AutoRemoteStart
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetAutoInstallNftables() bool {
|
|
if x != nil {
|
|
return x.AutoInstallNftables
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetSshParamsJSON() []byte {
|
|
if x != nil {
|
|
return x.SshParamsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeCluster) GetAutoSystemTuning() bool {
|
|
if x != nil {
|
|
return x.AutoSystemTuning
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetAutoTrimDisks() bool {
|
|
if x != nil {
|
|
return x.AutoTrimDisks
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeCluster) GetMaxConcurrentReads() int32 {
|
|
if x != nil {
|
|
return x.MaxConcurrentReads
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeCluster) GetMaxConcurrentWrites() int32 {
|
|
if x != nil {
|
|
return x.MaxConcurrentWrites
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_models_model_node_cluster_proto protoreflect.FileDescriptor
|
|
|
|
const file_models_model_node_cluster_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fmodels/model_node_cluster.proto\x12\x02pb\"\xfb\x06\n" +
|
|
"\vNodeCluster\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1c\n" +
|
|
"\tcreatedAt\x18\x03 \x01(\x03R\tcreatedAt\x12 \n" +
|
|
"\vnodeGrantId\x18\x04 \x01(\x03R\vnodeGrantId\x12\x1e\n" +
|
|
"\n" +
|
|
"installDir\x18\x05 \x01(\tR\n" +
|
|
"installDir\x12\x1a\n" +
|
|
"\buniqueId\x18\x06 \x01(\tR\buniqueId\x12\x16\n" +
|
|
"\x06secret\x18\a \x01(\tR\x06secret\x12\x18\n" +
|
|
"\adnsName\x18\b \x01(\tR\adnsName\x12 \n" +
|
|
"\vdnsDomainId\x18\t \x01(\x03R\vdnsDomainId\x12(\n" +
|
|
"\x0fdnsDefaultRoute\x18\x16 \x01(\tR\x0fdnsDefaultRoute\x12,\n" +
|
|
"\x11httpCachePolicyId\x18\n" +
|
|
" \x01(\x03R\x11httpCachePolicyId\x122\n" +
|
|
"\x14httpFirewallPolicyId\x18\v \x01(\x03R\x14httpFirewallPolicyId\x12\x12\n" +
|
|
"\x04isOn\x18\f \x01(\bR\x04isOn\x12\x1a\n" +
|
|
"\btimeZone\x18\r \x01(\tR\btimeZone\x12&\n" +
|
|
"\x0enodeMaxThreads\x18\x0e \x01(\x05R\x0enodeMaxThreads\x12$\n" +
|
|
"\rautoOpenPorts\x18\x10 \x01(\bR\rautoOpenPorts\x12\x1a\n" +
|
|
"\bisPinned\x18\x11 \x01(\bR\bisPinned\x12\x1c\n" +
|
|
"\tclockJSON\x18\x12 \x01(\fR\tclockJSON\x12(\n" +
|
|
"\x0fautoRemoteStart\x18\x13 \x01(\bR\x0fautoRemoteStart\x120\n" +
|
|
"\x13autoInstallNftables\x18\x14 \x01(\bR\x13autoInstallNftables\x12$\n" +
|
|
"\rsshParamsJSON\x18\x15 \x01(\fR\rsshParamsJSON\x12*\n" +
|
|
"\x10autoSystemTuning\x18\x17 \x01(\bR\x10autoSystemTuning\x12$\n" +
|
|
"\rautoTrimDisks\x18\x18 \x01(\bR\rautoTrimDisks\x12.\n" +
|
|
"\x12maxConcurrentReads\x18\x19 \x01(\x05R\x12maxConcurrentReads\x120\n" +
|
|
"\x13maxConcurrentWrites\x18\x1a \x01(\x05R\x13maxConcurrentWritesB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_models_model_node_cluster_proto_rawDescOnce sync.Once
|
|
file_models_model_node_cluster_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_models_model_node_cluster_proto_rawDescGZIP() []byte {
|
|
file_models_model_node_cluster_proto_rawDescOnce.Do(func() {
|
|
file_models_model_node_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_model_node_cluster_proto_rawDesc), len(file_models_model_node_cluster_proto_rawDesc)))
|
|
})
|
|
return file_models_model_node_cluster_proto_rawDescData
|
|
}
|
|
|
|
var file_models_model_node_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_models_model_node_cluster_proto_goTypes = []any{
|
|
(*NodeCluster)(nil), // 0: pb.NodeCluster
|
|
}
|
|
var file_models_model_node_cluster_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_models_model_node_cluster_proto_init() }
|
|
func file_models_model_node_cluster_proto_init() {
|
|
if File_models_model_node_cluster_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_model_node_cluster_proto_rawDesc), len(file_models_model_node_cluster_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_models_model_node_cluster_proto_goTypes,
|
|
DependencyIndexes: file_models_model_node_cluster_proto_depIdxs,
|
|
MessageInfos: file_models_model_node_cluster_proto_msgTypes,
|
|
}.Build()
|
|
File_models_model_node_cluster_proto = out.File
|
|
file_models_model_node_cluster_proto_goTypes = nil
|
|
file_models_model_node_cluster_proto_depIdxs = nil
|
|
}
|