354 lines
11 KiB
Go
354 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v5.29.3
|
|
// source: proto/iop/node.proto
|
|
|
|
package iop
|
|
|
|
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 NodeStatus int32
|
|
|
|
const (
|
|
NodeStatus_NODE_STATUS_UNSPECIFIED NodeStatus = 0
|
|
NodeStatus_NODE_STATUS_ONLINE NodeStatus = 1
|
|
NodeStatus_NODE_STATUS_OFFLINE NodeStatus = 2
|
|
NodeStatus_NODE_STATUS_DRAINING NodeStatus = 3
|
|
)
|
|
|
|
// Enum value maps for NodeStatus.
|
|
var (
|
|
NodeStatus_name = map[int32]string{
|
|
0: "NODE_STATUS_UNSPECIFIED",
|
|
1: "NODE_STATUS_ONLINE",
|
|
2: "NODE_STATUS_OFFLINE",
|
|
3: "NODE_STATUS_DRAINING",
|
|
}
|
|
NodeStatus_value = map[string]int32{
|
|
"NODE_STATUS_UNSPECIFIED": 0,
|
|
"NODE_STATUS_ONLINE": 1,
|
|
"NODE_STATUS_OFFLINE": 2,
|
|
"NODE_STATUS_DRAINING": 3,
|
|
}
|
|
)
|
|
|
|
func (x NodeStatus) Enum() *NodeStatus {
|
|
p := new(NodeStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x NodeStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (NodeStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proto_iop_node_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (NodeStatus) Type() protoreflect.EnumType {
|
|
return &file_proto_iop_node_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x NodeStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use NodeStatus.Descriptor instead.
|
|
func (NodeStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_proto_iop_node_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// NodeInfo is a legacy placeholder for node snapshots.
|
|
// Current Edge-Node registration uses RegisterRequest/RegisterResponse in
|
|
// runtime.proto, and Control Plane should observe nodes through Edge.
|
|
type NodeInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
|
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
Status NodeStatus `protobuf:"varint,5,opt,name=status,proto3,enum=iop.NodeStatus" json:"status,omitempty"`
|
|
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NodeInfo) Reset() {
|
|
*x = NodeInfo{}
|
|
mi := &file_proto_iop_node_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NodeInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NodeInfo) ProtoMessage() {}
|
|
|
|
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_iop_node_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 NodeInfo.ProtoReflect.Descriptor instead.
|
|
func (*NodeInfo) Descriptor() ([]byte, []int) {
|
|
return file_proto_iop_node_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *NodeInfo) GetNodeId() string {
|
|
if x != nil {
|
|
return x.NodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetStatus() NodeStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return NodeStatus_NODE_STATUS_UNSPECIFIED
|
|
}
|
|
|
|
func (x *NodeInfo) GetLabels() map[string]string {
|
|
if x != nil {
|
|
return x.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// NodeRegisterRequest is a legacy placeholder and is not the active startup
|
|
// contract. Nodes connect to Edge, not directly to Control Plane.
|
|
type NodeRegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Info *NodeInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NodeRegisterRequest) Reset() {
|
|
*x = NodeRegisterRequest{}
|
|
mi := &file_proto_iop_node_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NodeRegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NodeRegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *NodeRegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_iop_node_proto_msgTypes[1]
|
|
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 NodeRegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*NodeRegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_iop_node_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *NodeRegisterRequest) GetInfo() *NodeInfo {
|
|
if x != nil {
|
|
return x.Info
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// NodeRegisterResponse is a legacy placeholder retained until the
|
|
// Control Plane contracts are redesigned around Edge.
|
|
type NodeRegisterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NodeRegisterResponse) Reset() {
|
|
*x = NodeRegisterResponse{}
|
|
mi := &file_proto_iop_node_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *NodeRegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*NodeRegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *NodeRegisterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_iop_node_proto_msgTypes[2]
|
|
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 NodeRegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*NodeRegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_iop_node_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *NodeRegisterResponse) GetAccepted() bool {
|
|
if x != nil {
|
|
return x.Accepted
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *NodeRegisterResponse) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeRegisterResponse) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proto_iop_node_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_iop_node_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14proto/iop/node.proto\x12\x03iop\"\x82\x02\n" +
|
|
"\bNodeInfo\x12\x17\n" +
|
|
"\anode_id\x18\x01 \x01(\tR\x06nodeId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" +
|
|
"\aaddress\x18\x03 \x01(\tR\aaddress\x12\x18\n" +
|
|
"\aversion\x18\x04 \x01(\tR\aversion\x12'\n" +
|
|
"\x06status\x18\x05 \x01(\x0e2\x0f.iop.NodeStatusR\x06status\x121\n" +
|
|
"\x06labels\x18\x06 \x03(\v2\x19.iop.NodeInfo.LabelsEntryR\x06labels\x1a9\n" +
|
|
"\vLabelsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"8\n" +
|
|
"\x13NodeRegisterRequest\x12!\n" +
|
|
"\x04info\x18\x01 \x01(\v2\r.iop.NodeInfoR\x04info\"`\n" +
|
|
"\x14NodeRegisterResponse\x12\x1a\n" +
|
|
"\baccepted\x18\x01 \x01(\bR\baccepted\x12\x14\n" +
|
|
"\x05token\x18\x02 \x01(\tR\x05token\x12\x16\n" +
|
|
"\x06reason\x18\x03 \x01(\tR\x06reason*t\n" +
|
|
"\n" +
|
|
"NodeStatus\x12\x1b\n" +
|
|
"\x17NODE_STATUS_UNSPECIFIED\x10\x00\x12\x16\n" +
|
|
"\x12NODE_STATUS_ONLINE\x10\x01\x12\x17\n" +
|
|
"\x13NODE_STATUS_OFFLINE\x10\x02\x12\x18\n" +
|
|
"\x14NODE_STATUS_DRAINING\x10\x03B\x13Z\x11iop/proto/gen/iopb\x06proto3"
|
|
|
|
var (
|
|
file_proto_iop_node_proto_rawDescOnce sync.Once
|
|
file_proto_iop_node_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_iop_node_proto_rawDescGZIP() []byte {
|
|
file_proto_iop_node_proto_rawDescOnce.Do(func() {
|
|
file_proto_iop_node_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_iop_node_proto_rawDesc), len(file_proto_iop_node_proto_rawDesc)))
|
|
})
|
|
return file_proto_iop_node_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_iop_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_proto_iop_node_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_proto_iop_node_proto_goTypes = []any{
|
|
(NodeStatus)(0), // 0: iop.NodeStatus
|
|
(*NodeInfo)(nil), // 1: iop.NodeInfo
|
|
(*NodeRegisterRequest)(nil), // 2: iop.NodeRegisterRequest
|
|
(*NodeRegisterResponse)(nil), // 3: iop.NodeRegisterResponse
|
|
nil, // 4: iop.NodeInfo.LabelsEntry
|
|
}
|
|
var file_proto_iop_node_proto_depIdxs = []int32{
|
|
0, // 0: iop.NodeInfo.status:type_name -> iop.NodeStatus
|
|
4, // 1: iop.NodeInfo.labels:type_name -> iop.NodeInfo.LabelsEntry
|
|
1, // 2: iop.NodeRegisterRequest.info:type_name -> iop.NodeInfo
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_iop_node_proto_init() }
|
|
func file_proto_iop_node_proto_init() {
|
|
if File_proto_iop_node_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_iop_node_proto_rawDesc), len(file_proto_iop_node_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_proto_iop_node_proto_goTypes,
|
|
DependencyIndexes: file_proto_iop_node_proto_depIdxs,
|
|
EnumInfos: file_proto_iop_node_proto_enumTypes,
|
|
MessageInfos: file_proto_iop_node_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_iop_node_proto = out.File
|
|
file_proto_iop_node_proto_goTypes = nil
|
|
file_proto_iop_node_proto_depIdxs = nil
|
|
}
|