mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-12 00:00:40 +00:00
* chore(go): use lowercase module import path * ci: scope checks for Go module changes
4183 lines
140 KiB
Go
4183 lines
140 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.35.1
|
|
// source: api_instance.proto
|
|
|
|
package instance
|
|
|
|
import (
|
|
acl "github.com/easytier/easytier/easytier-go/proto/acl"
|
|
common "github.com/easytier/easytier/easytier-go/proto/common"
|
|
peer_rpc "github.com/easytier/easytier/easytier-go/proto/peer_rpc"
|
|
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 TrustedKeySourcePb int32
|
|
|
|
const (
|
|
TrustedKeySourcePb_TRUSTED_KEY_SOURCE_PB_UNSPECIFIED TrustedKeySourcePb = 0
|
|
TrustedKeySourcePb_TRUSTED_KEY_SOURCE_PB_OSPF_NODE TrustedKeySourcePb = 1
|
|
TrustedKeySourcePb_TRUSTED_KEY_SOURCE_PB_OSPF_CREDENTIAL TrustedKeySourcePb = 2
|
|
)
|
|
|
|
// Enum value maps for TrustedKeySourcePb.
|
|
var (
|
|
TrustedKeySourcePb_name = map[int32]string{
|
|
0: "TRUSTED_KEY_SOURCE_PB_UNSPECIFIED",
|
|
1: "TRUSTED_KEY_SOURCE_PB_OSPF_NODE",
|
|
2: "TRUSTED_KEY_SOURCE_PB_OSPF_CREDENTIAL",
|
|
}
|
|
TrustedKeySourcePb_value = map[string]int32{
|
|
"TRUSTED_KEY_SOURCE_PB_UNSPECIFIED": 0,
|
|
"TRUSTED_KEY_SOURCE_PB_OSPF_NODE": 1,
|
|
"TRUSTED_KEY_SOURCE_PB_OSPF_CREDENTIAL": 2,
|
|
}
|
|
)
|
|
|
|
func (x TrustedKeySourcePb) Enum() *TrustedKeySourcePb {
|
|
p := new(TrustedKeySourcePb)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x TrustedKeySourcePb) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (TrustedKeySourcePb) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_instance_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (TrustedKeySourcePb) Type() protoreflect.EnumType {
|
|
return &file_api_instance_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x TrustedKeySourcePb) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use TrustedKeySourcePb.Descriptor instead.
|
|
func (TrustedKeySourcePb) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ConnectorStatus int32
|
|
|
|
const (
|
|
ConnectorStatus_CONNECTED ConnectorStatus = 0
|
|
ConnectorStatus_DISCONNECTED ConnectorStatus = 1
|
|
ConnectorStatus_CONNECTING ConnectorStatus = 2
|
|
)
|
|
|
|
// Enum value maps for ConnectorStatus.
|
|
var (
|
|
ConnectorStatus_name = map[int32]string{
|
|
0: "CONNECTED",
|
|
1: "DISCONNECTED",
|
|
2: "CONNECTING",
|
|
}
|
|
ConnectorStatus_value = map[string]int32{
|
|
"CONNECTED": 0,
|
|
"DISCONNECTED": 1,
|
|
"CONNECTING": 2,
|
|
}
|
|
)
|
|
|
|
func (x ConnectorStatus) Enum() *ConnectorStatus {
|
|
p := new(ConnectorStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ConnectorStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ConnectorStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_instance_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (ConnectorStatus) Type() protoreflect.EnumType {
|
|
return &file_api_instance_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x ConnectorStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ConnectorStatus.Descriptor instead.
|
|
func (ConnectorStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type TcpProxyEntryTransportType int32
|
|
|
|
const (
|
|
TcpProxyEntryTransportType_TCP TcpProxyEntryTransportType = 0
|
|
TcpProxyEntryTransportType_KCP TcpProxyEntryTransportType = 1
|
|
TcpProxyEntryTransportType_QUIC TcpProxyEntryTransportType = 2
|
|
)
|
|
|
|
// Enum value maps for TcpProxyEntryTransportType.
|
|
var (
|
|
TcpProxyEntryTransportType_name = map[int32]string{
|
|
0: "TCP",
|
|
1: "KCP",
|
|
2: "QUIC",
|
|
}
|
|
TcpProxyEntryTransportType_value = map[string]int32{
|
|
"TCP": 0,
|
|
"KCP": 1,
|
|
"QUIC": 2,
|
|
}
|
|
)
|
|
|
|
func (x TcpProxyEntryTransportType) Enum() *TcpProxyEntryTransportType {
|
|
p := new(TcpProxyEntryTransportType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x TcpProxyEntryTransportType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (TcpProxyEntryTransportType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_instance_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (TcpProxyEntryTransportType) Type() protoreflect.EnumType {
|
|
return &file_api_instance_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x TcpProxyEntryTransportType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use TcpProxyEntryTransportType.Descriptor instead.
|
|
func (TcpProxyEntryTransportType) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
type TcpProxyEntryState int32
|
|
|
|
const (
|
|
TcpProxyEntryState_Unknown TcpProxyEntryState = 0
|
|
// receive syn packet but not start connecting to dst
|
|
TcpProxyEntryState_SynReceived TcpProxyEntryState = 1
|
|
// connecting to dst
|
|
TcpProxyEntryState_ConnectingDst TcpProxyEntryState = 2
|
|
// connected to dst
|
|
TcpProxyEntryState_Connected TcpProxyEntryState = 3
|
|
// connection closed
|
|
TcpProxyEntryState_Closed TcpProxyEntryState = 4
|
|
// closing src
|
|
TcpProxyEntryState_ClosingSrc TcpProxyEntryState = 5
|
|
// closing dst
|
|
TcpProxyEntryState_ClosingDst TcpProxyEntryState = 6
|
|
)
|
|
|
|
// Enum value maps for TcpProxyEntryState.
|
|
var (
|
|
TcpProxyEntryState_name = map[int32]string{
|
|
0: "Unknown",
|
|
1: "SynReceived",
|
|
2: "ConnectingDst",
|
|
3: "Connected",
|
|
4: "Closed",
|
|
5: "ClosingSrc",
|
|
6: "ClosingDst",
|
|
}
|
|
TcpProxyEntryState_value = map[string]int32{
|
|
"Unknown": 0,
|
|
"SynReceived": 1,
|
|
"ConnectingDst": 2,
|
|
"Connected": 3,
|
|
"Closed": 4,
|
|
"ClosingSrc": 5,
|
|
"ClosingDst": 6,
|
|
}
|
|
)
|
|
|
|
func (x TcpProxyEntryState) Enum() *TcpProxyEntryState {
|
|
p := new(TcpProxyEntryState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x TcpProxyEntryState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (TcpProxyEntryState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_instance_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (TcpProxyEntryState) Type() protoreflect.EnumType {
|
|
return &file_api_instance_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x TcpProxyEntryState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use TcpProxyEntryState.Descriptor instead.
|
|
func (TcpProxyEntryState) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type InstanceIdentifier struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Types that are valid to be assigned to Selector:
|
|
//
|
|
// *InstanceIdentifier_Id
|
|
// *InstanceIdentifier_InstanceSelector_
|
|
Selector isInstanceIdentifier_Selector `protobuf_oneof:"selector"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InstanceIdentifier) Reset() {
|
|
*x = InstanceIdentifier{}
|
|
mi := &file_api_instance_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InstanceIdentifier) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InstanceIdentifier) ProtoMessage() {}
|
|
|
|
func (x *InstanceIdentifier) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_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 InstanceIdentifier.ProtoReflect.Descriptor instead.
|
|
func (*InstanceIdentifier) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *InstanceIdentifier) GetSelector() isInstanceIdentifier_Selector {
|
|
if x != nil {
|
|
return x.Selector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InstanceIdentifier) GetId() *common.UUID {
|
|
if x != nil {
|
|
if x, ok := x.Selector.(*InstanceIdentifier_Id); ok {
|
|
return x.Id
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InstanceIdentifier) GetInstanceSelector() *InstanceIdentifier_InstanceSelector {
|
|
if x != nil {
|
|
if x, ok := x.Selector.(*InstanceIdentifier_InstanceSelector_); ok {
|
|
return x.InstanceSelector
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isInstanceIdentifier_Selector interface {
|
|
isInstanceIdentifier_Selector()
|
|
}
|
|
|
|
type InstanceIdentifier_Id struct {
|
|
Id *common.UUID `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
|
|
}
|
|
|
|
type InstanceIdentifier_InstanceSelector_ struct {
|
|
InstanceSelector *InstanceIdentifier_InstanceSelector `protobuf:"bytes,2,opt,name=instance_selector,json=instanceSelector,proto3,oneof"`
|
|
}
|
|
|
|
func (*InstanceIdentifier_Id) isInstanceIdentifier_Selector() {}
|
|
|
|
func (*InstanceIdentifier_InstanceSelector_) isInstanceIdentifier_Selector() {}
|
|
|
|
type Status struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Status) Reset() {
|
|
*x = Status{}
|
|
mi := &file_api_instance_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Status) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Status) ProtoMessage() {}
|
|
|
|
func (x *Status) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_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 Status.ProtoReflect.Descriptor instead.
|
|
func (*Status) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Status) GetCode() int32 {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Status) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PeerConnStats struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RxBytes uint64 `protobuf:"varint,1,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
|
|
TxBytes uint64 `protobuf:"varint,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
|
|
RxPackets uint64 `protobuf:"varint,3,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"`
|
|
TxPackets uint64 `protobuf:"varint,4,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"`
|
|
LatencyUs uint64 `protobuf:"varint,5,opt,name=latency_us,json=latencyUs,proto3" json:"latency_us,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerConnStats) Reset() {
|
|
*x = PeerConnStats{}
|
|
mi := &file_api_instance_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerConnStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerConnStats) ProtoMessage() {}
|
|
|
|
func (x *PeerConnStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_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 PeerConnStats.ProtoReflect.Descriptor instead.
|
|
func (*PeerConnStats) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *PeerConnStats) GetRxBytes() uint64 {
|
|
if x != nil {
|
|
return x.RxBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnStats) GetTxBytes() uint64 {
|
|
if x != nil {
|
|
return x.TxBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnStats) GetRxPackets() uint64 {
|
|
if x != nil {
|
|
return x.RxPackets
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnStats) GetTxPackets() uint64 {
|
|
if x != nil {
|
|
return x.TxPackets
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnStats) GetLatencyUs() uint64 {
|
|
if x != nil {
|
|
return x.LatencyUs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PeerConnInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ConnId string `protobuf:"bytes,1,opt,name=conn_id,json=connId,proto3" json:"conn_id,omitempty"`
|
|
MyPeerId uint32 `protobuf:"varint,2,opt,name=my_peer_id,json=myPeerId,proto3" json:"my_peer_id,omitempty"`
|
|
PeerId uint32 `protobuf:"varint,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
|
|
Tunnel *common.TunnelInfo `protobuf:"bytes,5,opt,name=tunnel,proto3" json:"tunnel,omitempty"`
|
|
Stats *PeerConnStats `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
|
|
LossRate float32 `protobuf:"fixed32,7,opt,name=loss_rate,json=lossRate,proto3" json:"loss_rate,omitempty"`
|
|
IsClient bool `protobuf:"varint,8,opt,name=is_client,json=isClient,proto3" json:"is_client,omitempty"`
|
|
NetworkName string `protobuf:"bytes,9,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"`
|
|
IsClosed bool `protobuf:"varint,10,opt,name=is_closed,json=isClosed,proto3" json:"is_closed,omitempty"`
|
|
NoiseLocalStaticPubkey []byte `protobuf:"bytes,11,opt,name=noise_local_static_pubkey,json=noiseLocalStaticPubkey,proto3" json:"noise_local_static_pubkey,omitempty"`
|
|
NoiseRemoteStaticPubkey []byte `protobuf:"bytes,12,opt,name=noise_remote_static_pubkey,json=noiseRemoteStaticPubkey,proto3" json:"noise_remote_static_pubkey,omitempty"`
|
|
SecureAuthLevel peer_rpc.SecureAuthLevel `protobuf:"varint,13,opt,name=secure_auth_level,json=secureAuthLevel,proto3,enum=peer_rpc.SecureAuthLevel" json:"secure_auth_level,omitempty"`
|
|
PeerIdentityType peer_rpc.PeerIdentityType `protobuf:"varint,14,opt,name=peer_identity_type,json=peerIdentityType,proto3,enum=peer_rpc.PeerIdentityType" json:"peer_identity_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerConnInfo) Reset() {
|
|
*x = PeerConnInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerConnInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerConnInfo) ProtoMessage() {}
|
|
|
|
func (x *PeerConnInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[3]
|
|
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 PeerConnInfo.ProtoReflect.Descriptor instead.
|
|
func (*PeerConnInfo) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetConnId() string {
|
|
if x != nil {
|
|
return x.ConnId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetMyPeerId() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetFeatures() []string {
|
|
if x != nil {
|
|
return x.Features
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetTunnel() *common.TunnelInfo {
|
|
if x != nil {
|
|
return x.Tunnel
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetStats() *PeerConnStats {
|
|
if x != nil {
|
|
return x.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetLossRate() float32 {
|
|
if x != nil {
|
|
return x.LossRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetIsClient() bool {
|
|
if x != nil {
|
|
return x.IsClient
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetNetworkName() string {
|
|
if x != nil {
|
|
return x.NetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetIsClosed() bool {
|
|
if x != nil {
|
|
return x.IsClosed
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetNoiseLocalStaticPubkey() []byte {
|
|
if x != nil {
|
|
return x.NoiseLocalStaticPubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetNoiseRemoteStaticPubkey() []byte {
|
|
if x != nil {
|
|
return x.NoiseRemoteStaticPubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetSecureAuthLevel() peer_rpc.SecureAuthLevel {
|
|
if x != nil {
|
|
return x.SecureAuthLevel
|
|
}
|
|
return peer_rpc.SecureAuthLevel(0)
|
|
}
|
|
|
|
func (x *PeerConnInfo) GetPeerIdentityType() peer_rpc.PeerIdentityType {
|
|
if x != nil {
|
|
return x.PeerIdentityType
|
|
}
|
|
return peer_rpc.PeerIdentityType(0)
|
|
}
|
|
|
|
type PeerInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
Conns []*PeerConnInfo `protobuf:"bytes,2,rep,name=conns,proto3" json:"conns,omitempty"`
|
|
DefaultConnId *common.UUID `protobuf:"bytes,3,opt,name=default_conn_id,json=defaultConnId,proto3" json:"default_conn_id,omitempty"`
|
|
DirectlyConnectedConns []*common.UUID `protobuf:"bytes,4,rep,name=directly_connected_conns,json=directlyConnectedConns,proto3" json:"directly_connected_conns,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerInfo) Reset() {
|
|
*x = PeerInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerInfo) ProtoMessage() {}
|
|
|
|
func (x *PeerInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[4]
|
|
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 PeerInfo.ProtoReflect.Descriptor instead.
|
|
func (*PeerInfo) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *PeerInfo) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PeerInfo) GetConns() []*PeerConnInfo {
|
|
if x != nil {
|
|
return x.Conns
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerInfo) GetDefaultConnId() *common.UUID {
|
|
if x != nil {
|
|
return x.DefaultConnId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerInfo) GetDirectlyConnectedConns() []*common.UUID {
|
|
if x != nil {
|
|
return x.DirectlyConnectedConns
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPeerRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPeerRequest) Reset() {
|
|
*x = ListPeerRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPeerRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPeerRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPeerRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[5]
|
|
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 ListPeerRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPeerRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListPeerRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPeerResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerInfos []*PeerInfo `protobuf:"bytes,1,rep,name=peer_infos,json=peerInfos,proto3" json:"peer_infos,omitempty"`
|
|
MyInfo *NodeInfo `protobuf:"bytes,2,opt,name=my_info,json=myInfo,proto3" json:"my_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPeerResponse) Reset() {
|
|
*x = ListPeerResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPeerResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPeerResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPeerResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[6]
|
|
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 ListPeerResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPeerResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListPeerResponse) GetPeerInfos() []*PeerInfo {
|
|
if x != nil {
|
|
return x.PeerInfos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPeerResponse) GetMyInfo() *NodeInfo {
|
|
if x != nil {
|
|
return x.MyInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Route struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
Ipv4Addr *common.Ipv4Inet `protobuf:"bytes,2,opt,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"`
|
|
NextHopPeerId uint32 `protobuf:"varint,3,opt,name=next_hop_peer_id,json=nextHopPeerId,proto3" json:"next_hop_peer_id,omitempty"`
|
|
Cost int32 `protobuf:"varint,4,opt,name=cost,proto3" json:"cost,omitempty"`
|
|
PathLatency int32 `protobuf:"varint,11,opt,name=path_latency,json=pathLatency,proto3" json:"path_latency,omitempty"`
|
|
ProxyCidrs []string `protobuf:"bytes,5,rep,name=proxy_cidrs,json=proxyCidrs,proto3" json:"proxy_cidrs,omitempty"`
|
|
Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
|
StunInfo *common.StunInfo `protobuf:"bytes,7,opt,name=stun_info,json=stunInfo,proto3" json:"stun_info,omitempty"`
|
|
InstId string `protobuf:"bytes,8,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
|
|
FeatureFlag *common.PeerFeatureFlag `protobuf:"bytes,10,opt,name=feature_flag,json=featureFlag,proto3" json:"feature_flag,omitempty"`
|
|
NextHopPeerIdLatencyFirst *uint32 `protobuf:"varint,12,opt,name=next_hop_peer_id_latency_first,json=nextHopPeerIdLatencyFirst,proto3,oneof" json:"next_hop_peer_id_latency_first,omitempty"`
|
|
CostLatencyFirst *int32 `protobuf:"varint,13,opt,name=cost_latency_first,json=costLatencyFirst,proto3,oneof" json:"cost_latency_first,omitempty"`
|
|
PathLatencyLatencyFirst *int32 `protobuf:"varint,14,opt,name=path_latency_latency_first,json=pathLatencyLatencyFirst,proto3,oneof" json:"path_latency_latency_first,omitempty"`
|
|
Ipv6Addr *common.Ipv6Inet `protobuf:"bytes,15,opt,name=ipv6_addr,json=ipv6Addr,proto3" json:"ipv6_addr,omitempty"`
|
|
PublicIpv6Addr *common.Ipv6Inet `protobuf:"bytes,16,opt,name=public_ipv6_addr,json=publicIpv6Addr,proto3" json:"public_ipv6_addr,omitempty"`
|
|
Ipv6PublicAddrPrefix *common.Ipv6Inet `protobuf:"bytes,17,opt,name=ipv6_public_addr_prefix,json=ipv6PublicAddrPrefix,proto3" json:"ipv6_public_addr_prefix,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Route) Reset() {
|
|
*x = Route{}
|
|
mi := &file_api_instance_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Route) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Route) ProtoMessage() {}
|
|
|
|
func (x *Route) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[7]
|
|
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 Route.ProtoReflect.Descriptor instead.
|
|
func (*Route) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *Route) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetIpv4Addr() *common.Ipv4Inet {
|
|
if x != nil {
|
|
return x.Ipv4Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetNextHopPeerId() uint32 {
|
|
if x != nil {
|
|
return x.NextHopPeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetCost() int32 {
|
|
if x != nil {
|
|
return x.Cost
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetPathLatency() int32 {
|
|
if x != nil {
|
|
return x.PathLatency
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.ProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetHostname() string {
|
|
if x != nil {
|
|
return x.Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Route) GetStunInfo() *common.StunInfo {
|
|
if x != nil {
|
|
return x.StunInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetInstId() string {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Route) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Route) GetFeatureFlag() *common.PeerFeatureFlag {
|
|
if x != nil {
|
|
return x.FeatureFlag
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetNextHopPeerIdLatencyFirst() uint32 {
|
|
if x != nil && x.NextHopPeerIdLatencyFirst != nil {
|
|
return *x.NextHopPeerIdLatencyFirst
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetCostLatencyFirst() int32 {
|
|
if x != nil && x.CostLatencyFirst != nil {
|
|
return *x.CostLatencyFirst
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetPathLatencyLatencyFirst() int32 {
|
|
if x != nil && x.PathLatencyLatencyFirst != nil {
|
|
return *x.PathLatencyLatencyFirst
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Route) GetIpv6Addr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetPublicIpv6Addr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.PublicIpv6Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Route) GetIpv6PublicAddrPrefix() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6PublicAddrPrefix
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PeerRoutePair struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Route *Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
|
|
Peer *PeerInfo `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PeerRoutePair) Reset() {
|
|
*x = PeerRoutePair{}
|
|
mi := &file_api_instance_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PeerRoutePair) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PeerRoutePair) ProtoMessage() {}
|
|
|
|
func (x *PeerRoutePair) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[8]
|
|
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 PeerRoutePair.ProtoReflect.Descriptor instead.
|
|
func (*PeerRoutePair) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *PeerRoutePair) GetRoute() *Route {
|
|
if x != nil {
|
|
return x.Route
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PeerRoutePair) GetPeer() *PeerInfo {
|
|
if x != nil {
|
|
return x.Peer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NodeInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
Ipv4Addr string `protobuf:"bytes,2,opt,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"`
|
|
ProxyCidrs []string `protobuf:"bytes,3,rep,name=proxy_cidrs,json=proxyCidrs,proto3" json:"proxy_cidrs,omitempty"`
|
|
Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
|
StunInfo *common.StunInfo `protobuf:"bytes,5,opt,name=stun_info,json=stunInfo,proto3" json:"stun_info,omitempty"`
|
|
InstId string `protobuf:"bytes,6,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
Listeners []string `protobuf:"bytes,7,rep,name=listeners,proto3" json:"listeners,omitempty"`
|
|
Config string `protobuf:"bytes,8,opt,name=config,proto3" json:"config,omitempty"`
|
|
Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
|
|
FeatureFlag *common.PeerFeatureFlag `protobuf:"bytes,10,opt,name=feature_flag,json=featureFlag,proto3" json:"feature_flag,omitempty"`
|
|
IpList *peer_rpc.GetIpListResponse `protobuf:"bytes,11,opt,name=ip_list,json=ipList,proto3" json:"ip_list,omitempty"`
|
|
PublicIpv6Addr *common.Ipv6Inet `protobuf:"bytes,12,opt,name=public_ipv6_addr,json=publicIpv6Addr,proto3" json:"public_ipv6_addr,omitempty"`
|
|
Ipv6PublicAddrPrefix *common.Ipv6Inet `protobuf:"bytes,13,opt,name=ipv6_public_addr_prefix,json=ipv6PublicAddrPrefix,proto3" json:"ipv6_public_addr_prefix,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *NodeInfo) Reset() {
|
|
*x = NodeInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[9]
|
|
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_api_instance_proto_msgTypes[9]
|
|
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_api_instance_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *NodeInfo) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *NodeInfo) GetIpv4Addr() string {
|
|
if x != nil {
|
|
return x.Ipv4Addr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.ProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetHostname() string {
|
|
if x != nil {
|
|
return x.Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetStunInfo() *common.StunInfo {
|
|
if x != nil {
|
|
return x.StunInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetInstId() string {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetListeners() []string {
|
|
if x != nil {
|
|
return x.Listeners
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetConfig() string {
|
|
if x != nil {
|
|
return x.Config
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *NodeInfo) GetFeatureFlag() *common.PeerFeatureFlag {
|
|
if x != nil {
|
|
return x.FeatureFlag
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetIpList() *peer_rpc.GetIpListResponse {
|
|
if x != nil {
|
|
return x.IpList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetPublicIpv6Addr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.PublicIpv6Addr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *NodeInfo) GetIpv6PublicAddrPrefix() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.Ipv6PublicAddrPrefix
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ShowNodeInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ShowNodeInfoRequest) Reset() {
|
|
*x = ShowNodeInfoRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ShowNodeInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShowNodeInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *ShowNodeInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[10]
|
|
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 ShowNodeInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*ShowNodeInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ShowNodeInfoRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ShowNodeInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodeInfo *NodeInfo `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ShowNodeInfoResponse) Reset() {
|
|
*x = ShowNodeInfoResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ShowNodeInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShowNodeInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *ShowNodeInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[11]
|
|
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 ShowNodeInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*ShowNodeInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ShowNodeInfoResponse) GetNodeInfo() *NodeInfo {
|
|
if x != nil {
|
|
return x.NodeInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PublicIpv6LeaseInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PeerId uint32 `protobuf:"varint,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
|
|
InstId string `protobuf:"bytes,2,opt,name=inst_id,json=instId,proto3" json:"inst_id,omitempty"`
|
|
LeasedAddr *common.Ipv6Inet `protobuf:"bytes,3,opt,name=leased_addr,json=leasedAddr,proto3" json:"leased_addr,omitempty"`
|
|
ValidUntilUnixSeconds int64 `protobuf:"varint,4,opt,name=valid_until_unix_seconds,json=validUntilUnixSeconds,proto3" json:"valid_until_unix_seconds,omitempty"`
|
|
Reused bool `protobuf:"varint,5,opt,name=reused,proto3" json:"reused,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) Reset() {
|
|
*x = PublicIpv6LeaseInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PublicIpv6LeaseInfo) ProtoMessage() {}
|
|
|
|
func (x *PublicIpv6LeaseInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[12]
|
|
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 PublicIpv6LeaseInfo.ProtoReflect.Descriptor instead.
|
|
func (*PublicIpv6LeaseInfo) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) GetPeerId() uint32 {
|
|
if x != nil {
|
|
return x.PeerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) GetInstId() string {
|
|
if x != nil {
|
|
return x.InstId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) GetLeasedAddr() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.LeasedAddr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) GetValidUntilUnixSeconds() int64 {
|
|
if x != nil {
|
|
return x.ValidUntilUnixSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PublicIpv6LeaseInfo) GetReused() bool {
|
|
if x != nil {
|
|
return x.Reused
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListPublicIpv6InfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoRequest) Reset() {
|
|
*x = ListPublicIpv6InfoRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPublicIpv6InfoRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPublicIpv6InfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[13]
|
|
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 ListPublicIpv6InfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPublicIpv6InfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPublicIpv6InfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProviderPrefix *common.Ipv6Inet `protobuf:"bytes,1,opt,name=provider_prefix,json=providerPrefix,proto3" json:"provider_prefix,omitempty"`
|
|
ProviderLeases []*PublicIpv6LeaseInfo `protobuf:"bytes,2,rep,name=provider_leases,json=providerLeases,proto3" json:"provider_leases,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoResponse) Reset() {
|
|
*x = ListPublicIpv6InfoResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPublicIpv6InfoResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPublicIpv6InfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[14]
|
|
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 ListPublicIpv6InfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPublicIpv6InfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoResponse) GetProviderPrefix() *common.Ipv6Inet {
|
|
if x != nil {
|
|
return x.ProviderPrefix
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListPublicIpv6InfoResponse) GetProviderLeases() []*PublicIpv6LeaseInfo {
|
|
if x != nil {
|
|
return x.ProviderLeases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListRouteRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListRouteRequest) Reset() {
|
|
*x = ListRouteRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListRouteRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRouteRequest) ProtoMessage() {}
|
|
|
|
func (x *ListRouteRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[15]
|
|
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 ListRouteRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListRouteRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *ListRouteRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListRouteResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListRouteResponse) Reset() {
|
|
*x = ListRouteResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListRouteResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRouteResponse) ProtoMessage() {}
|
|
|
|
func (x *ListRouteResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[16]
|
|
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 ListRouteResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListRouteResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ListRouteResponse) GetRoutes() []*Route {
|
|
if x != nil {
|
|
return x.Routes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DumpRouteRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DumpRouteRequest) Reset() {
|
|
*x = DumpRouteRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DumpRouteRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DumpRouteRequest) ProtoMessage() {}
|
|
|
|
func (x *DumpRouteRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[17]
|
|
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 DumpRouteRequest.ProtoReflect.Descriptor instead.
|
|
func (*DumpRouteRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DumpRouteRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DumpRouteResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DumpRouteResponse) Reset() {
|
|
*x = DumpRouteResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DumpRouteResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DumpRouteResponse) ProtoMessage() {}
|
|
|
|
func (x *DumpRouteResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[18]
|
|
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 DumpRouteResponse.ProtoReflect.Descriptor instead.
|
|
func (*DumpRouteResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *DumpRouteResponse) GetResult() string {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListForeignNetworkRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
IncludeTrustedKeys bool `protobuf:"varint,2,opt,name=include_trusted_keys,json=includeTrustedKeys,proto3" json:"include_trusted_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListForeignNetworkRequest) Reset() {
|
|
*x = ListForeignNetworkRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListForeignNetworkRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListForeignNetworkRequest) ProtoMessage() {}
|
|
|
|
func (x *ListForeignNetworkRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[19]
|
|
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 ListForeignNetworkRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListForeignNetworkRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *ListForeignNetworkRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListForeignNetworkRequest) GetIncludeTrustedKeys() bool {
|
|
if x != nil {
|
|
return x.IncludeTrustedKeys
|
|
}
|
|
return false
|
|
}
|
|
|
|
type TrustedKeyInfoPb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
|
|
Source TrustedKeySourcePb `protobuf:"varint,2,opt,name=source,proto3,enum=api.instance.TrustedKeySourcePb" json:"source,omitempty"`
|
|
ExpiryUnix *int64 `protobuf:"varint,3,opt,name=expiry_unix,json=expiryUnix,proto3,oneof" json:"expiry_unix,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TrustedKeyInfoPb) Reset() {
|
|
*x = TrustedKeyInfoPb{}
|
|
mi := &file_api_instance_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TrustedKeyInfoPb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TrustedKeyInfoPb) ProtoMessage() {}
|
|
|
|
func (x *TrustedKeyInfoPb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[20]
|
|
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 TrustedKeyInfoPb.ProtoReflect.Descriptor instead.
|
|
func (*TrustedKeyInfoPb) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *TrustedKeyInfoPb) GetPubkey() []byte {
|
|
if x != nil {
|
|
return x.Pubkey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TrustedKeyInfoPb) GetSource() TrustedKeySourcePb {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return TrustedKeySourcePb_TRUSTED_KEY_SOURCE_PB_UNSPECIFIED
|
|
}
|
|
|
|
func (x *TrustedKeyInfoPb) GetExpiryUnix() int64 {
|
|
if x != nil && x.ExpiryUnix != nil {
|
|
return *x.ExpiryUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ForeignNetworkEntryPb struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Peers []*PeerInfo `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
|
|
NetworkSecretDigest []byte `protobuf:"bytes,2,opt,name=network_secret_digest,json=networkSecretDigest,proto3" json:"network_secret_digest,omitempty"`
|
|
MyPeerIdForThisNetwork uint32 `protobuf:"varint,3,opt,name=my_peer_id_for_this_network,json=myPeerIdForThisNetwork,proto3" json:"my_peer_id_for_this_network,omitempty"`
|
|
TrustedKeys []*TrustedKeyInfoPb `protobuf:"bytes,4,rep,name=trusted_keys,json=trustedKeys,proto3" json:"trusted_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) Reset() {
|
|
*x = ForeignNetworkEntryPb{}
|
|
mi := &file_api_instance_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ForeignNetworkEntryPb) ProtoMessage() {}
|
|
|
|
func (x *ForeignNetworkEntryPb) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[21]
|
|
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 ForeignNetworkEntryPb.ProtoReflect.Descriptor instead.
|
|
func (*ForeignNetworkEntryPb) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) GetPeers() []*PeerInfo {
|
|
if x != nil {
|
|
return x.Peers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) GetNetworkSecretDigest() []byte {
|
|
if x != nil {
|
|
return x.NetworkSecretDigest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) GetMyPeerIdForThisNetwork() uint32 {
|
|
if x != nil {
|
|
return x.MyPeerIdForThisNetwork
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ForeignNetworkEntryPb) GetTrustedKeys() []*TrustedKeyInfoPb {
|
|
if x != nil {
|
|
return x.TrustedKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListForeignNetworkResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// foreign network in local
|
|
ForeignNetworks map[string]*ForeignNetworkEntryPb `protobuf:"bytes,1,rep,name=foreign_networks,json=foreignNetworks,proto3" json:"foreign_networks,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListForeignNetworkResponse) Reset() {
|
|
*x = ListForeignNetworkResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListForeignNetworkResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListForeignNetworkResponse) ProtoMessage() {}
|
|
|
|
func (x *ListForeignNetworkResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[22]
|
|
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 ListForeignNetworkResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListForeignNetworkResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *ListForeignNetworkResponse) GetForeignNetworks() map[string]*ForeignNetworkEntryPb {
|
|
if x != nil {
|
|
return x.ForeignNetworks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListGlobalForeignNetworkRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkRequest) Reset() {
|
|
*x = ListGlobalForeignNetworkRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListGlobalForeignNetworkRequest) ProtoMessage() {}
|
|
|
|
func (x *ListGlobalForeignNetworkRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[23]
|
|
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 ListGlobalForeignNetworkRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListGlobalForeignNetworkRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListGlobalForeignNetworkResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ForeignNetworks map[uint32]*ListGlobalForeignNetworkResponse_ForeignNetworks `protobuf:"bytes,1,rep,name=foreign_networks,json=foreignNetworks,proto3" json:"foreign_networks,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse) Reset() {
|
|
*x = ListGlobalForeignNetworkResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListGlobalForeignNetworkResponse) ProtoMessage() {}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[24]
|
|
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 ListGlobalForeignNetworkResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListGlobalForeignNetworkResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse) GetForeignNetworks() map[uint32]*ListGlobalForeignNetworkResponse_ForeignNetworks {
|
|
if x != nil {
|
|
return x.ForeignNetworks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetForeignNetworkSummaryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryRequest) Reset() {
|
|
*x = GetForeignNetworkSummaryRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetForeignNetworkSummaryRequest) ProtoMessage() {}
|
|
|
|
func (x *GetForeignNetworkSummaryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[25]
|
|
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 GetForeignNetworkSummaryRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetForeignNetworkSummaryRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetForeignNetworkSummaryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Summary *peer_rpc.RouteForeignNetworkSummary `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryResponse) Reset() {
|
|
*x = GetForeignNetworkSummaryResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetForeignNetworkSummaryResponse) ProtoMessage() {}
|
|
|
|
func (x *GetForeignNetworkSummaryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[26]
|
|
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 GetForeignNetworkSummaryResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetForeignNetworkSummaryResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *GetForeignNetworkSummaryResponse) GetSummary() *peer_rpc.RouteForeignNetworkSummary {
|
|
if x != nil {
|
|
return x.Summary
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Connector struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url *common.Url `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
Status ConnectorStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.instance.ConnectorStatus" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Connector) Reset() {
|
|
*x = Connector{}
|
|
mi := &file_api_instance_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Connector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Connector) ProtoMessage() {}
|
|
|
|
func (x *Connector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[27]
|
|
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 Connector.ProtoReflect.Descriptor instead.
|
|
func (*Connector) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *Connector) GetUrl() *common.Url {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Connector) GetStatus() ConnectorStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ConnectorStatus_CONNECTED
|
|
}
|
|
|
|
type ListConnectorRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListConnectorRequest) Reset() {
|
|
*x = ListConnectorRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListConnectorRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListConnectorRequest) ProtoMessage() {}
|
|
|
|
func (x *ListConnectorRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[28]
|
|
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 ListConnectorRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListConnectorRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *ListConnectorRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListConnectorResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListConnectorResponse) Reset() {
|
|
*x = ListConnectorResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListConnectorResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListConnectorResponse) ProtoMessage() {}
|
|
|
|
func (x *ListConnectorResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[29]
|
|
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 ListConnectorResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListConnectorResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *ListConnectorResponse) GetConnectors() []*Connector {
|
|
if x != nil {
|
|
return x.Connectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MappedListener struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url *common.Url `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MappedListener) Reset() {
|
|
*x = MappedListener{}
|
|
mi := &file_api_instance_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MappedListener) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MappedListener) ProtoMessage() {}
|
|
|
|
func (x *MappedListener) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[30]
|
|
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 MappedListener.ProtoReflect.Descriptor instead.
|
|
func (*MappedListener) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *MappedListener) GetUrl() *common.Url {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListMappedListenerRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMappedListenerRequest) Reset() {
|
|
*x = ListMappedListenerRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMappedListenerRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMappedListenerRequest) ProtoMessage() {}
|
|
|
|
func (x *ListMappedListenerRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[31]
|
|
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 ListMappedListenerRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListMappedListenerRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *ListMappedListenerRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListMappedListenerResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mappedlisteners []*MappedListener `protobuf:"bytes,1,rep,name=mappedlisteners,proto3" json:"mappedlisteners,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListMappedListenerResponse) Reset() {
|
|
*x = ListMappedListenerResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListMappedListenerResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListMappedListenerResponse) ProtoMessage() {}
|
|
|
|
func (x *ListMappedListenerResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[32]
|
|
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 ListMappedListenerResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListMappedListenerResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *ListMappedListenerResponse) GetMappedlisteners() []*MappedListener {
|
|
if x != nil {
|
|
return x.Mappedlisteners
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VpnPortalInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VpnType string `protobuf:"bytes,1,opt,name=vpn_type,json=vpnType,proto3" json:"vpn_type,omitempty"`
|
|
ClientConfig string `protobuf:"bytes,2,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"`
|
|
ConnectedClients []string `protobuf:"bytes,3,rep,name=connected_clients,json=connectedClients,proto3" json:"connected_clients,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VpnPortalInfo) Reset() {
|
|
*x = VpnPortalInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VpnPortalInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VpnPortalInfo) ProtoMessage() {}
|
|
|
|
func (x *VpnPortalInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[33]
|
|
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 VpnPortalInfo.ProtoReflect.Descriptor instead.
|
|
func (*VpnPortalInfo) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *VpnPortalInfo) GetVpnType() string {
|
|
if x != nil {
|
|
return x.VpnType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VpnPortalInfo) GetClientConfig() string {
|
|
if x != nil {
|
|
return x.ClientConfig
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VpnPortalInfo) GetConnectedClients() []string {
|
|
if x != nil {
|
|
return x.ConnectedClients
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetVpnPortalInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoRequest) Reset() {
|
|
*x = GetVpnPortalInfoRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVpnPortalInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *GetVpnPortalInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[34]
|
|
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 GetVpnPortalInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetVpnPortalInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetVpnPortalInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VpnPortalInfo *VpnPortalInfo `protobuf:"bytes,1,opt,name=vpn_portal_info,json=vpnPortalInfo,proto3" json:"vpn_portal_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoResponse) Reset() {
|
|
*x = GetVpnPortalInfoResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVpnPortalInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *GetVpnPortalInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[35]
|
|
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 GetVpnPortalInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetVpnPortalInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *GetVpnPortalInfoResponse) GetVpnPortalInfo() *VpnPortalInfo {
|
|
if x != nil {
|
|
return x.VpnPortalInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TcpProxyEntry struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Src *common.SocketAddr `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
|
|
Dst *common.SocketAddr `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"`
|
|
StartTime uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
|
State TcpProxyEntryState `protobuf:"varint,4,opt,name=state,proto3,enum=api.instance.TcpProxyEntryState" json:"state,omitempty"`
|
|
TransportType TcpProxyEntryTransportType `protobuf:"varint,5,opt,name=transport_type,json=transportType,proto3,enum=api.instance.TcpProxyEntryTransportType" json:"transport_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TcpProxyEntry) Reset() {
|
|
*x = TcpProxyEntry{}
|
|
mi := &file_api_instance_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TcpProxyEntry) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TcpProxyEntry) ProtoMessage() {}
|
|
|
|
func (x *TcpProxyEntry) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[36]
|
|
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 TcpProxyEntry.ProtoReflect.Descriptor instead.
|
|
func (*TcpProxyEntry) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *TcpProxyEntry) GetSrc() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.Src
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TcpProxyEntry) GetDst() *common.SocketAddr {
|
|
if x != nil {
|
|
return x.Dst
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TcpProxyEntry) GetStartTime() uint64 {
|
|
if x != nil {
|
|
return x.StartTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TcpProxyEntry) GetState() TcpProxyEntryState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return TcpProxyEntryState_Unknown
|
|
}
|
|
|
|
func (x *TcpProxyEntry) GetTransportType() TcpProxyEntryTransportType {
|
|
if x != nil {
|
|
return x.TransportType
|
|
}
|
|
return TcpProxyEntryTransportType_TCP
|
|
}
|
|
|
|
type ListTcpProxyEntryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryRequest) Reset() {
|
|
*x = ListTcpProxyEntryRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTcpProxyEntryRequest) ProtoMessage() {}
|
|
|
|
func (x *ListTcpProxyEntryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[37]
|
|
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 ListTcpProxyEntryRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListTcpProxyEntryRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListTcpProxyEntryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entries []*TcpProxyEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryResponse) Reset() {
|
|
*x = ListTcpProxyEntryResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListTcpProxyEntryResponse) ProtoMessage() {}
|
|
|
|
func (x *ListTcpProxyEntryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[38]
|
|
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 ListTcpProxyEntryResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListTcpProxyEntryResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *ListTcpProxyEntryResponse) GetEntries() []*TcpProxyEntry {
|
|
if x != nil {
|
|
return x.Entries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAclStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAclStatsRequest) Reset() {
|
|
*x = GetAclStatsRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAclStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAclStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAclStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[39]
|
|
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 GetAclStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAclStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *GetAclStatsRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAclStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AclStats *acl.AclStats `protobuf:"bytes,1,opt,name=acl_stats,json=aclStats,proto3" json:"acl_stats,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAclStatsResponse) Reset() {
|
|
*x = GetAclStatsResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAclStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAclStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAclStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[40]
|
|
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 GetAclStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAclStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *GetAclStatsResponse) GetAclStats() *acl.AclStats {
|
|
if x != nil {
|
|
return x.AclStats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetWhitelistRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetWhitelistRequest) Reset() {
|
|
*x = GetWhitelistRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[41]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetWhitelistRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetWhitelistRequest) ProtoMessage() {}
|
|
|
|
func (x *GetWhitelistRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[41]
|
|
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 GetWhitelistRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetWhitelistRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{41}
|
|
}
|
|
|
|
func (x *GetWhitelistRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetWhitelistResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TcpPorts []string `protobuf:"bytes,1,rep,name=tcp_ports,json=tcpPorts,proto3" json:"tcp_ports,omitempty"`
|
|
UdpPorts []string `protobuf:"bytes,2,rep,name=udp_ports,json=udpPorts,proto3" json:"udp_ports,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetWhitelistResponse) Reset() {
|
|
*x = GetWhitelistResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[42]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetWhitelistResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetWhitelistResponse) ProtoMessage() {}
|
|
|
|
func (x *GetWhitelistResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[42]
|
|
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 GetWhitelistResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetWhitelistResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{42}
|
|
}
|
|
|
|
func (x *GetWhitelistResponse) GetTcpPorts() []string {
|
|
if x != nil {
|
|
return x.TcpPorts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetWhitelistResponse) GetUdpPorts() []string {
|
|
if x != nil {
|
|
return x.UdpPorts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPortForwardRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPortForwardRequest) Reset() {
|
|
*x = ListPortForwardRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[43]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPortForwardRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPortForwardRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPortForwardRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[43]
|
|
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 ListPortForwardRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPortForwardRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{43}
|
|
}
|
|
|
|
func (x *ListPortForwardRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ListPortForwardResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Cfgs []*common.PortForwardConfigPb `protobuf:"bytes,1,rep,name=cfgs,proto3" json:"cfgs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPortForwardResponse) Reset() {
|
|
*x = ListPortForwardResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[44]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPortForwardResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPortForwardResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPortForwardResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[44]
|
|
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 ListPortForwardResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPortForwardResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{44}
|
|
}
|
|
|
|
func (x *ListPortForwardResponse) GetCfgs() []*common.PortForwardConfigPb {
|
|
if x != nil {
|
|
return x.Cfgs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MetricSnapshot struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
Labels map[string]string `protobuf:"bytes,3,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 *MetricSnapshot) Reset() {
|
|
*x = MetricSnapshot{}
|
|
mi := &file_api_instance_proto_msgTypes[45]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetricSnapshot) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetricSnapshot) ProtoMessage() {}
|
|
|
|
func (x *MetricSnapshot) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[45]
|
|
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 MetricSnapshot.ProtoReflect.Descriptor instead.
|
|
func (*MetricSnapshot) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{45}
|
|
}
|
|
|
|
func (x *MetricSnapshot) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetricSnapshot) GetValue() uint64 {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetricSnapshot) GetLabels() map[string]string {
|
|
if x != nil {
|
|
return x.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetStatsRequest) Reset() {
|
|
*x = GetStatsRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[46]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[46]
|
|
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 GetStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{46}
|
|
}
|
|
|
|
func (x *GetStatsRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Metrics []*MetricSnapshot `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetStatsResponse) Reset() {
|
|
*x = GetStatsResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[47]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[47]
|
|
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 GetStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{47}
|
|
}
|
|
|
|
func (x *GetStatsResponse) GetMetrics() []*MetricSnapshot {
|
|
if x != nil {
|
|
return x.Metrics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPrometheusStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPrometheusStatsRequest) Reset() {
|
|
*x = GetPrometheusStatsRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[48]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPrometheusStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPrometheusStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPrometheusStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[48]
|
|
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 GetPrometheusStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPrometheusStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{48}
|
|
}
|
|
|
|
func (x *GetPrometheusStatsRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPrometheusStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PrometheusText string `protobuf:"bytes,1,opt,name=prometheus_text,json=prometheusText,proto3" json:"prometheus_text,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPrometheusStatsResponse) Reset() {
|
|
*x = GetPrometheusStatsResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[49]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPrometheusStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPrometheusStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPrometheusStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[49]
|
|
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 GetPrometheusStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPrometheusStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{49}
|
|
}
|
|
|
|
func (x *GetPrometheusStatsResponse) GetPrometheusText() string {
|
|
if x != nil {
|
|
return x.PrometheusText
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GenerateCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Groups []string `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // optional: ACL groups for this credential
|
|
AllowRelay bool `protobuf:"varint,2,opt,name=allow_relay,json=allowRelay,proto3" json:"allow_relay,omitempty"` // optional: allow relay through credential node
|
|
AllowedProxyCidrs []string `protobuf:"bytes,3,rep,name=allowed_proxy_cidrs,json=allowedProxyCidrs,proto3" json:"allowed_proxy_cidrs,omitempty"` // optional: restrict proxy_cidrs
|
|
TtlSeconds int64 `protobuf:"varint,4,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` // must be > 0: credential TTL in seconds (0 / omitted is invalid)
|
|
CredentialId *string `protobuf:"bytes,5,opt,name=credential_id,json=credentialId,proto3,oneof" json:"credential_id,omitempty"` // optional: user-specified credential id, reused if already exists
|
|
Instance *InstanceIdentifier `protobuf:"bytes,6,opt,name=instance,proto3" json:"instance,omitempty"` // target network instance
|
|
Reusable *bool `protobuf:"varint,7,opt,name=reusable,proto3,oneof" json:"reusable,omitempty"` // default true: allow multiple peers to reuse this credential
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) Reset() {
|
|
*x = GenerateCredentialRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[50]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *GenerateCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[50]
|
|
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 GenerateCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*GenerateCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{50}
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetGroups() []string {
|
|
if x != nil {
|
|
return x.Groups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetAllowRelay() bool {
|
|
if x != nil {
|
|
return x.AllowRelay
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetAllowedProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.AllowedProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetTtlSeconds() int64 {
|
|
if x != nil {
|
|
return x.TtlSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetCredentialId() string {
|
|
if x != nil && x.CredentialId != nil {
|
|
return *x.CredentialId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GenerateCredentialRequest) GetReusable() bool {
|
|
if x != nil && x.Reusable != nil {
|
|
return *x.Reusable
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GenerateCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CredentialId string `protobuf:"bytes,1,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // UUID
|
|
CredentialSecret string `protobuf:"bytes,2,opt,name=credential_secret,json=credentialSecret,proto3" json:"credential_secret,omitempty"` // private key base64
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateCredentialResponse) Reset() {
|
|
*x = GenerateCredentialResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[51]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *GenerateCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[51]
|
|
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 GenerateCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*GenerateCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{51}
|
|
}
|
|
|
|
func (x *GenerateCredentialResponse) GetCredentialId() string {
|
|
if x != nil {
|
|
return x.CredentialId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateCredentialResponse) GetCredentialSecret() string {
|
|
if x != nil {
|
|
return x.CredentialSecret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RevokeCredentialRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CredentialId string `protobuf:"bytes,1,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // target network instance
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokeCredentialRequest) Reset() {
|
|
*x = RevokeCredentialRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[52]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokeCredentialRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokeCredentialRequest) ProtoMessage() {}
|
|
|
|
func (x *RevokeCredentialRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[52]
|
|
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 RevokeCredentialRequest.ProtoReflect.Descriptor instead.
|
|
func (*RevokeCredentialRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{52}
|
|
}
|
|
|
|
func (x *RevokeCredentialRequest) GetCredentialId() string {
|
|
if x != nil {
|
|
return x.CredentialId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RevokeCredentialRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RevokeCredentialResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokeCredentialResponse) Reset() {
|
|
*x = RevokeCredentialResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[53]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokeCredentialResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokeCredentialResponse) ProtoMessage() {}
|
|
|
|
func (x *RevokeCredentialResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[53]
|
|
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 RevokeCredentialResponse.ProtoReflect.Descriptor instead.
|
|
func (*RevokeCredentialResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{53}
|
|
}
|
|
|
|
func (x *RevokeCredentialResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListCredentialsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Instance *InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // target network instance
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) Reset() {
|
|
*x = ListCredentialsRequest{}
|
|
mi := &file_api_instance_proto_msgTypes[54]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListCredentialsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListCredentialsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[54]
|
|
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 ListCredentialsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListCredentialsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{54}
|
|
}
|
|
|
|
func (x *ListCredentialsRequest) GetInstance() *InstanceIdentifier {
|
|
if x != nil {
|
|
return x.Instance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CredentialInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CredentialId string `protobuf:"bytes,1,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // UUID
|
|
Groups []string `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
|
|
AllowRelay bool `protobuf:"varint,3,opt,name=allow_relay,json=allowRelay,proto3" json:"allow_relay,omitempty"`
|
|
ExpiryUnix int64 `protobuf:"varint,4,opt,name=expiry_unix,json=expiryUnix,proto3" json:"expiry_unix,omitempty"`
|
|
AllowedProxyCidrs []string `protobuf:"bytes,5,rep,name=allowed_proxy_cidrs,json=allowedProxyCidrs,proto3" json:"allowed_proxy_cidrs,omitempty"`
|
|
Reusable *bool `protobuf:"varint,6,opt,name=reusable,proto3,oneof" json:"reusable,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CredentialInfo) Reset() {
|
|
*x = CredentialInfo{}
|
|
mi := &file_api_instance_proto_msgTypes[55]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CredentialInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CredentialInfo) ProtoMessage() {}
|
|
|
|
func (x *CredentialInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[55]
|
|
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 CredentialInfo.ProtoReflect.Descriptor instead.
|
|
func (*CredentialInfo) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{55}
|
|
}
|
|
|
|
func (x *CredentialInfo) GetCredentialId() string {
|
|
if x != nil {
|
|
return x.CredentialId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CredentialInfo) GetGroups() []string {
|
|
if x != nil {
|
|
return x.Groups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CredentialInfo) GetAllowRelay() bool {
|
|
if x != nil {
|
|
return x.AllowRelay
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CredentialInfo) GetExpiryUnix() int64 {
|
|
if x != nil {
|
|
return x.ExpiryUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CredentialInfo) GetAllowedProxyCidrs() []string {
|
|
if x != nil {
|
|
return x.AllowedProxyCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CredentialInfo) GetReusable() bool {
|
|
if x != nil && x.Reusable != nil {
|
|
return *x.Reusable
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListCredentialsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Credentials []*CredentialInfo `protobuf:"bytes,1,rep,name=credentials,proto3" json:"credentials,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) Reset() {
|
|
*x = ListCredentialsResponse{}
|
|
mi := &file_api_instance_proto_msgTypes[56]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListCredentialsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListCredentialsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[56]
|
|
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 ListCredentialsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListCredentialsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{56}
|
|
}
|
|
|
|
func (x *ListCredentialsResponse) GetCredentials() []*CredentialInfo {
|
|
if x != nil {
|
|
return x.Credentials
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InstanceIdentifier_InstanceSelector struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InstanceIdentifier_InstanceSelector) Reset() {
|
|
*x = InstanceIdentifier_InstanceSelector{}
|
|
mi := &file_api_instance_proto_msgTypes[57]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InstanceIdentifier_InstanceSelector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InstanceIdentifier_InstanceSelector) ProtoMessage() {}
|
|
|
|
func (x *InstanceIdentifier_InstanceSelector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[57]
|
|
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 InstanceIdentifier_InstanceSelector.ProtoReflect.Descriptor instead.
|
|
func (*InstanceIdentifier_InstanceSelector) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
func (x *InstanceIdentifier_InstanceSelector) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// foreign network in the entire network
|
|
type ListGlobalForeignNetworkResponse_OneForeignNetwork struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NetworkName string `protobuf:"bytes,1,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"`
|
|
PeerIds []uint32 `protobuf:"varint,2,rep,packed,name=peer_ids,json=peerIds,proto3" json:"peer_ids,omitempty"`
|
|
LastUpdated string `protobuf:"bytes,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
|
|
Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) Reset() {
|
|
*x = ListGlobalForeignNetworkResponse_OneForeignNetwork{}
|
|
mi := &file_api_instance_proto_msgTypes[59]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListGlobalForeignNetworkResponse_OneForeignNetwork) ProtoMessage() {}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[59]
|
|
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 ListGlobalForeignNetworkResponse_OneForeignNetwork.ProtoReflect.Descriptor instead.
|
|
func (*ListGlobalForeignNetworkResponse_OneForeignNetwork) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{24, 0}
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) GetNetworkName() string {
|
|
if x != nil {
|
|
return x.NetworkName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) GetPeerIds() []uint32 {
|
|
if x != nil {
|
|
return x.PeerIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) GetLastUpdated() string {
|
|
if x != nil {
|
|
return x.LastUpdated
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_OneForeignNetwork) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListGlobalForeignNetworkResponse_ForeignNetworks struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ForeignNetworks []*ListGlobalForeignNetworkResponse_OneForeignNetwork `protobuf:"bytes,1,rep,name=foreign_networks,json=foreignNetworks,proto3" json:"foreign_networks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_ForeignNetworks) Reset() {
|
|
*x = ListGlobalForeignNetworkResponse_ForeignNetworks{}
|
|
mi := &file_api_instance_proto_msgTypes[60]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_ForeignNetworks) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListGlobalForeignNetworkResponse_ForeignNetworks) ProtoMessage() {}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_ForeignNetworks) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_instance_proto_msgTypes[60]
|
|
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 ListGlobalForeignNetworkResponse_ForeignNetworks.ProtoReflect.Descriptor instead.
|
|
func (*ListGlobalForeignNetworkResponse_ForeignNetworks) Descriptor() ([]byte, []int) {
|
|
return file_api_instance_proto_rawDescGZIP(), []int{24, 1}
|
|
}
|
|
|
|
func (x *ListGlobalForeignNetworkResponse_ForeignNetworks) GetForeignNetworks() []*ListGlobalForeignNetworkResponse_OneForeignNetwork {
|
|
if x != nil {
|
|
return x.ForeignNetworks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_instance_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_instance_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12api_instance.proto\x12\fapi.instance\x1a\fcommon.proto\x1a\x0epeer_rpc.proto\x1a\tacl.proto\"\xd8\x01\n" +
|
|
"\x12InstanceIdentifier\x12\x1e\n" +
|
|
"\x02id\x18\x01 \x01(\v2\f.common.UUIDH\x00R\x02id\x12`\n" +
|
|
"\x11instance_selector\x18\x02 \x01(\v21.api.instance.InstanceIdentifier.InstanceSelectorH\x00R\x10instanceSelector\x1a4\n" +
|
|
"\x10InstanceSelector\x12\x17\n" +
|
|
"\x04name\x18\x01 \x01(\tH\x00R\x04name\x88\x01\x01B\a\n" +
|
|
"\x05_nameB\n" +
|
|
"\n" +
|
|
"\bselector\"6\n" +
|
|
"\x06Status\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\xa2\x01\n" +
|
|
"\rPeerConnStats\x12\x19\n" +
|
|
"\brx_bytes\x18\x01 \x01(\x04R\arxBytes\x12\x19\n" +
|
|
"\btx_bytes\x18\x02 \x01(\x04R\atxBytes\x12\x1d\n" +
|
|
"\n" +
|
|
"rx_packets\x18\x03 \x01(\x04R\trxPackets\x12\x1d\n" +
|
|
"\n" +
|
|
"tx_packets\x18\x04 \x01(\x04R\ttxPackets\x12\x1d\n" +
|
|
"\n" +
|
|
"latency_us\x18\x05 \x01(\x04R\tlatencyUs\"\xdc\x04\n" +
|
|
"\fPeerConnInfo\x12\x17\n" +
|
|
"\aconn_id\x18\x01 \x01(\tR\x06connId\x12\x1c\n" +
|
|
"\n" +
|
|
"my_peer_id\x18\x02 \x01(\rR\bmyPeerId\x12\x17\n" +
|
|
"\apeer_id\x18\x03 \x01(\rR\x06peerId\x12\x1a\n" +
|
|
"\bfeatures\x18\x04 \x03(\tR\bfeatures\x12*\n" +
|
|
"\x06tunnel\x18\x05 \x01(\v2\x12.common.TunnelInfoR\x06tunnel\x121\n" +
|
|
"\x05stats\x18\x06 \x01(\v2\x1b.api.instance.PeerConnStatsR\x05stats\x12\x1b\n" +
|
|
"\tloss_rate\x18\a \x01(\x02R\blossRate\x12\x1b\n" +
|
|
"\tis_client\x18\b \x01(\bR\bisClient\x12!\n" +
|
|
"\fnetwork_name\x18\t \x01(\tR\vnetworkName\x12\x1b\n" +
|
|
"\tis_closed\x18\n" +
|
|
" \x01(\bR\bisClosed\x129\n" +
|
|
"\x19noise_local_static_pubkey\x18\v \x01(\fR\x16noiseLocalStaticPubkey\x12;\n" +
|
|
"\x1anoise_remote_static_pubkey\x18\f \x01(\fR\x17noiseRemoteStaticPubkey\x12E\n" +
|
|
"\x11secure_auth_level\x18\r \x01(\x0e2\x19.peer_rpc.SecureAuthLevelR\x0fsecureAuthLevel\x12H\n" +
|
|
"\x12peer_identity_type\x18\x0e \x01(\x0e2\x1a.peer_rpc.PeerIdentityTypeR\x10peerIdentityType\"\xd3\x01\n" +
|
|
"\bPeerInfo\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x120\n" +
|
|
"\x05conns\x18\x02 \x03(\v2\x1a.api.instance.PeerConnInfoR\x05conns\x124\n" +
|
|
"\x0fdefault_conn_id\x18\x03 \x01(\v2\f.common.UUIDR\rdefaultConnId\x12F\n" +
|
|
"\x18directly_connected_conns\x18\x04 \x03(\v2\f.common.UUIDR\x16directlyConnectedConns\"O\n" +
|
|
"\x0fListPeerRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"z\n" +
|
|
"\x10ListPeerResponse\x125\n" +
|
|
"\n" +
|
|
"peer_infos\x18\x01 \x03(\v2\x16.api.instance.PeerInfoR\tpeerInfos\x12/\n" +
|
|
"\amy_info\x18\x02 \x01(\v2\x16.api.instance.NodeInfoR\x06myInfo\"\xd4\x06\n" +
|
|
"\x05Route\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12-\n" +
|
|
"\tipv4_addr\x18\x02 \x01(\v2\x10.common.Ipv4InetR\bipv4Addr\x12'\n" +
|
|
"\x10next_hop_peer_id\x18\x03 \x01(\rR\rnextHopPeerId\x12\x12\n" +
|
|
"\x04cost\x18\x04 \x01(\x05R\x04cost\x12!\n" +
|
|
"\fpath_latency\x18\v \x01(\x05R\vpathLatency\x12\x1f\n" +
|
|
"\vproxy_cidrs\x18\x05 \x03(\tR\n" +
|
|
"proxyCidrs\x12\x1a\n" +
|
|
"\bhostname\x18\x06 \x01(\tR\bhostname\x12-\n" +
|
|
"\tstun_info\x18\a \x01(\v2\x10.common.StunInfoR\bstunInfo\x12\x17\n" +
|
|
"\ainst_id\x18\b \x01(\tR\x06instId\x12\x18\n" +
|
|
"\aversion\x18\t \x01(\tR\aversion\x12:\n" +
|
|
"\ffeature_flag\x18\n" +
|
|
" \x01(\v2\x17.common.PeerFeatureFlagR\vfeatureFlag\x12F\n" +
|
|
"\x1enext_hop_peer_id_latency_first\x18\f \x01(\rH\x00R\x19nextHopPeerIdLatencyFirst\x88\x01\x01\x121\n" +
|
|
"\x12cost_latency_first\x18\r \x01(\x05H\x01R\x10costLatencyFirst\x88\x01\x01\x12@\n" +
|
|
"\x1apath_latency_latency_first\x18\x0e \x01(\x05H\x02R\x17pathLatencyLatencyFirst\x88\x01\x01\x12-\n" +
|
|
"\tipv6_addr\x18\x0f \x01(\v2\x10.common.Ipv6InetR\bipv6Addr\x12:\n" +
|
|
"\x10public_ipv6_addr\x18\x10 \x01(\v2\x10.common.Ipv6InetR\x0epublicIpv6Addr\x12G\n" +
|
|
"\x17ipv6_public_addr_prefix\x18\x11 \x01(\v2\x10.common.Ipv6InetR\x14ipv6PublicAddrPrefixB!\n" +
|
|
"\x1f_next_hop_peer_id_latency_firstB\x15\n" +
|
|
"\x13_cost_latency_firstB\x1d\n" +
|
|
"\x1b_path_latency_latency_first\"f\n" +
|
|
"\rPeerRoutePair\x12)\n" +
|
|
"\x05route\x18\x01 \x01(\v2\x13.api.instance.RouteR\x05route\x12*\n" +
|
|
"\x04peer\x18\x02 \x01(\v2\x16.api.instance.PeerInfoR\x04peer\"\x8c\x04\n" +
|
|
"\bNodeInfo\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12\x1b\n" +
|
|
"\tipv4_addr\x18\x02 \x01(\tR\bipv4Addr\x12\x1f\n" +
|
|
"\vproxy_cidrs\x18\x03 \x03(\tR\n" +
|
|
"proxyCidrs\x12\x1a\n" +
|
|
"\bhostname\x18\x04 \x01(\tR\bhostname\x12-\n" +
|
|
"\tstun_info\x18\x05 \x01(\v2\x10.common.StunInfoR\bstunInfo\x12\x17\n" +
|
|
"\ainst_id\x18\x06 \x01(\tR\x06instId\x12\x1c\n" +
|
|
"\tlisteners\x18\a \x03(\tR\tlisteners\x12\x16\n" +
|
|
"\x06config\x18\b \x01(\tR\x06config\x12\x18\n" +
|
|
"\aversion\x18\t \x01(\tR\aversion\x12:\n" +
|
|
"\ffeature_flag\x18\n" +
|
|
" \x01(\v2\x17.common.PeerFeatureFlagR\vfeatureFlag\x124\n" +
|
|
"\aip_list\x18\v \x01(\v2\x1b.peer_rpc.GetIpListResponseR\x06ipList\x12:\n" +
|
|
"\x10public_ipv6_addr\x18\f \x01(\v2\x10.common.Ipv6InetR\x0epublicIpv6Addr\x12G\n" +
|
|
"\x17ipv6_public_addr_prefix\x18\r \x01(\v2\x10.common.Ipv6InetR\x14ipv6PublicAddrPrefix\"S\n" +
|
|
"\x13ShowNodeInfoRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"K\n" +
|
|
"\x14ShowNodeInfoResponse\x123\n" +
|
|
"\tnode_info\x18\x01 \x01(\v2\x16.api.instance.NodeInfoR\bnodeInfo\"\xcb\x01\n" +
|
|
"\x13PublicIpv6LeaseInfo\x12\x17\n" +
|
|
"\apeer_id\x18\x01 \x01(\rR\x06peerId\x12\x17\n" +
|
|
"\ainst_id\x18\x02 \x01(\tR\x06instId\x121\n" +
|
|
"\vleased_addr\x18\x03 \x01(\v2\x10.common.Ipv6InetR\n" +
|
|
"leasedAddr\x127\n" +
|
|
"\x18valid_until_unix_seconds\x18\x04 \x01(\x03R\x15validUntilUnixSeconds\x12\x16\n" +
|
|
"\x06reused\x18\x05 \x01(\bR\x06reused\"Y\n" +
|
|
"\x19ListPublicIpv6InfoRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"\xa3\x01\n" +
|
|
"\x1aListPublicIpv6InfoResponse\x129\n" +
|
|
"\x0fprovider_prefix\x18\x01 \x01(\v2\x10.common.Ipv6InetR\x0eproviderPrefix\x12J\n" +
|
|
"\x0fprovider_leases\x18\x02 \x03(\v2!.api.instance.PublicIpv6LeaseInfoR\x0eproviderLeases\"P\n" +
|
|
"\x10ListRouteRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"@\n" +
|
|
"\x11ListRouteResponse\x12+\n" +
|
|
"\x06routes\x18\x01 \x03(\v2\x13.api.instance.RouteR\x06routes\"P\n" +
|
|
"\x10DumpRouteRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"+\n" +
|
|
"\x11DumpRouteResponse\x12\x16\n" +
|
|
"\x06result\x18\x01 \x01(\tR\x06result\"\x8b\x01\n" +
|
|
"\x19ListForeignNetworkRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\x120\n" +
|
|
"\x14include_trusted_keys\x18\x02 \x01(\bR\x12includeTrustedKeys\"\x9a\x01\n" +
|
|
"\x10TrustedKeyInfoPb\x12\x16\n" +
|
|
"\x06pubkey\x18\x01 \x01(\fR\x06pubkey\x128\n" +
|
|
"\x06source\x18\x02 \x01(\x0e2 .api.instance.TrustedKeySourcePbR\x06source\x12$\n" +
|
|
"\vexpiry_unix\x18\x03 \x01(\x03H\x00R\n" +
|
|
"expiryUnix\x88\x01\x01B\x0e\n" +
|
|
"\f_expiry_unix\"\xf9\x01\n" +
|
|
"\x15ForeignNetworkEntryPb\x12,\n" +
|
|
"\x05peers\x18\x01 \x03(\v2\x16.api.instance.PeerInfoR\x05peers\x122\n" +
|
|
"\x15network_secret_digest\x18\x02 \x01(\fR\x13networkSecretDigest\x12;\n" +
|
|
"\x1bmy_peer_id_for_this_network\x18\x03 \x01(\rR\x16myPeerIdForThisNetwork\x12A\n" +
|
|
"\ftrusted_keys\x18\x04 \x03(\v2\x1e.api.instance.TrustedKeyInfoPbR\vtrustedKeys\"\xef\x01\n" +
|
|
"\x1aListForeignNetworkResponse\x12h\n" +
|
|
"\x10foreign_networks\x18\x01 \x03(\v2=.api.instance.ListForeignNetworkResponse.ForeignNetworksEntryR\x0fforeignNetworks\x1ag\n" +
|
|
"\x14ForeignNetworksEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x129\n" +
|
|
"\x05value\x18\x02 \x01(\v2#.api.instance.ForeignNetworkEntryPbR\x05value:\x028\x01\"_\n" +
|
|
"\x1fListGlobalForeignNetworkRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"\xa8\x04\n" +
|
|
" ListGlobalForeignNetworkResponse\x12n\n" +
|
|
"\x10foreign_networks\x18\x01 \x03(\v2C.api.instance.ListGlobalForeignNetworkResponse.ForeignNetworksEntryR\x0fforeignNetworks\x1a\x8e\x01\n" +
|
|
"\x11OneForeignNetwork\x12!\n" +
|
|
"\fnetwork_name\x18\x01 \x01(\tR\vnetworkName\x12\x19\n" +
|
|
"\bpeer_ids\x18\x02 \x03(\rR\apeerIds\x12!\n" +
|
|
"\flast_updated\x18\x03 \x01(\tR\vlastUpdated\x12\x18\n" +
|
|
"\aversion\x18\x04 \x01(\rR\aversion\x1a~\n" +
|
|
"\x0fForeignNetworks\x12k\n" +
|
|
"\x10foreign_networks\x18\x01 \x03(\v2@.api.instance.ListGlobalForeignNetworkResponse.OneForeignNetworkR\x0fforeignNetworks\x1a\x82\x01\n" +
|
|
"\x14ForeignNetworksEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\rR\x03key\x12T\n" +
|
|
"\x05value\x18\x02 \x01(\v2>.api.instance.ListGlobalForeignNetworkResponse.ForeignNetworksR\x05value:\x028\x01\"_\n" +
|
|
"\x1fGetForeignNetworkSummaryRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"b\n" +
|
|
" GetForeignNetworkSummaryResponse\x12>\n" +
|
|
"\asummary\x18\x01 \x01(\v2$.peer_rpc.RouteForeignNetworkSummaryR\asummary\"a\n" +
|
|
"\tConnector\x12\x1d\n" +
|
|
"\x03url\x18\x01 \x01(\v2\v.common.UrlR\x03url\x125\n" +
|
|
"\x06status\x18\x02 \x01(\x0e2\x1d.api.instance.ConnectorStatusR\x06status\"T\n" +
|
|
"\x14ListConnectorRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"P\n" +
|
|
"\x15ListConnectorResponse\x127\n" +
|
|
"\n" +
|
|
"connectors\x18\x01 \x03(\v2\x17.api.instance.ConnectorR\n" +
|
|
"connectors\"/\n" +
|
|
"\x0eMappedListener\x12\x1d\n" +
|
|
"\x03url\x18\x01 \x01(\v2\v.common.UrlR\x03url\"Y\n" +
|
|
"\x19ListMappedListenerRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"d\n" +
|
|
"\x1aListMappedListenerResponse\x12F\n" +
|
|
"\x0fmappedlisteners\x18\x01 \x03(\v2\x1c.api.instance.MappedListenerR\x0fmappedlisteners\"|\n" +
|
|
"\rVpnPortalInfo\x12\x19\n" +
|
|
"\bvpn_type\x18\x01 \x01(\tR\avpnType\x12#\n" +
|
|
"\rclient_config\x18\x02 \x01(\tR\fclientConfig\x12+\n" +
|
|
"\x11connected_clients\x18\x03 \x03(\tR\x10connectedClients\"W\n" +
|
|
"\x17GetVpnPortalInfoRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"_\n" +
|
|
"\x18GetVpnPortalInfoResponse\x12C\n" +
|
|
"\x0fvpn_portal_info\x18\x01 \x01(\v2\x1b.api.instance.VpnPortalInfoR\rvpnPortalInfo\"\x83\x02\n" +
|
|
"\rTcpProxyEntry\x12$\n" +
|
|
"\x03src\x18\x01 \x01(\v2\x12.common.SocketAddrR\x03src\x12$\n" +
|
|
"\x03dst\x18\x02 \x01(\v2\x12.common.SocketAddrR\x03dst\x12\x1d\n" +
|
|
"\n" +
|
|
"start_time\x18\x03 \x01(\x04R\tstartTime\x126\n" +
|
|
"\x05state\x18\x04 \x01(\x0e2 .api.instance.TcpProxyEntryStateR\x05state\x12O\n" +
|
|
"\x0etransport_type\x18\x05 \x01(\x0e2(.api.instance.TcpProxyEntryTransportTypeR\rtransportType\"X\n" +
|
|
"\x18ListTcpProxyEntryRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"R\n" +
|
|
"\x19ListTcpProxyEntryResponse\x125\n" +
|
|
"\aentries\x18\x01 \x03(\v2\x1b.api.instance.TcpProxyEntryR\aentries\"R\n" +
|
|
"\x12GetAclStatsRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"A\n" +
|
|
"\x13GetAclStatsResponse\x12*\n" +
|
|
"\tacl_stats\x18\x01 \x01(\v2\r.acl.AclStatsR\baclStats\"S\n" +
|
|
"\x13GetWhitelistRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"P\n" +
|
|
"\x14GetWhitelistResponse\x12\x1b\n" +
|
|
"\ttcp_ports\x18\x01 \x03(\tR\btcpPorts\x12\x1b\n" +
|
|
"\tudp_ports\x18\x02 \x03(\tR\budpPorts\"V\n" +
|
|
"\x16ListPortForwardRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"J\n" +
|
|
"\x17ListPortForwardResponse\x12/\n" +
|
|
"\x04cfgs\x18\x01 \x03(\v2\x1b.common.PortForwardConfigPbR\x04cfgs\"\xb7\x01\n" +
|
|
"\x0eMetricSnapshot\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\x04R\x05value\x12@\n" +
|
|
"\x06labels\x18\x03 \x03(\v2(.api.instance.MetricSnapshot.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\"O\n" +
|
|
"\x0fGetStatsRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"J\n" +
|
|
"\x10GetStatsResponse\x126\n" +
|
|
"\ametrics\x18\x01 \x03(\v2\x1c.api.instance.MetricSnapshotR\ametrics\"Y\n" +
|
|
"\x19GetPrometheusStatsRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"E\n" +
|
|
"\x1aGetPrometheusStatsResponse\x12'\n" +
|
|
"\x0fprometheus_text\x18\x01 \x01(\tR\x0eprometheusText\"\xcd\x02\n" +
|
|
"\x19GenerateCredentialRequest\x12\x16\n" +
|
|
"\x06groups\x18\x01 \x03(\tR\x06groups\x12\x1f\n" +
|
|
"\vallow_relay\x18\x02 \x01(\bR\n" +
|
|
"allowRelay\x12.\n" +
|
|
"\x13allowed_proxy_cidrs\x18\x03 \x03(\tR\x11allowedProxyCidrs\x12\x1f\n" +
|
|
"\vttl_seconds\x18\x04 \x01(\x03R\n" +
|
|
"ttlSeconds\x12(\n" +
|
|
"\rcredential_id\x18\x05 \x01(\tH\x00R\fcredentialId\x88\x01\x01\x12<\n" +
|
|
"\binstance\x18\x06 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\x12\x1f\n" +
|
|
"\breusable\x18\a \x01(\bH\x01R\breusable\x88\x01\x01B\x10\n" +
|
|
"\x0e_credential_idB\v\n" +
|
|
"\t_reusable\"n\n" +
|
|
"\x1aGenerateCredentialResponse\x12#\n" +
|
|
"\rcredential_id\x18\x01 \x01(\tR\fcredentialId\x12+\n" +
|
|
"\x11credential_secret\x18\x02 \x01(\tR\x10credentialSecret\"|\n" +
|
|
"\x17RevokeCredentialRequest\x12#\n" +
|
|
"\rcredential_id\x18\x01 \x01(\tR\fcredentialId\x12<\n" +
|
|
"\binstance\x18\x02 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"4\n" +
|
|
"\x18RevokeCredentialResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"V\n" +
|
|
"\x16ListCredentialsRequest\x12<\n" +
|
|
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"\xed\x01\n" +
|
|
"\x0eCredentialInfo\x12#\n" +
|
|
"\rcredential_id\x18\x01 \x01(\tR\fcredentialId\x12\x16\n" +
|
|
"\x06groups\x18\x02 \x03(\tR\x06groups\x12\x1f\n" +
|
|
"\vallow_relay\x18\x03 \x01(\bR\n" +
|
|
"allowRelay\x12\x1f\n" +
|
|
"\vexpiry_unix\x18\x04 \x01(\x03R\n" +
|
|
"expiryUnix\x12.\n" +
|
|
"\x13allowed_proxy_cidrs\x18\x05 \x03(\tR\x11allowedProxyCidrs\x12\x1f\n" +
|
|
"\breusable\x18\x06 \x01(\bH\x00R\breusable\x88\x01\x01B\v\n" +
|
|
"\t_reusable\"Y\n" +
|
|
"\x17ListCredentialsResponse\x12>\n" +
|
|
"\vcredentials\x18\x01 \x03(\v2\x1c.api.instance.CredentialInfoR\vcredentials*\x8b\x01\n" +
|
|
"\x12TrustedKeySourcePb\x12%\n" +
|
|
"!TRUSTED_KEY_SOURCE_PB_UNSPECIFIED\x10\x00\x12#\n" +
|
|
"\x1fTRUSTED_KEY_SOURCE_PB_OSPF_NODE\x10\x01\x12)\n" +
|
|
"%TRUSTED_KEY_SOURCE_PB_OSPF_CREDENTIAL\x10\x02*B\n" +
|
|
"\x0fConnectorStatus\x12\r\n" +
|
|
"\tCONNECTED\x10\x00\x12\x10\n" +
|
|
"\fDISCONNECTED\x10\x01\x12\x0e\n" +
|
|
"\n" +
|
|
"CONNECTING\x10\x02*8\n" +
|
|
"\x1aTcpProxyEntryTransportType\x12\a\n" +
|
|
"\x03TCP\x10\x00\x12\a\n" +
|
|
"\x03KCP\x10\x01\x12\b\n" +
|
|
"\x04QUIC\x10\x02*\x80\x01\n" +
|
|
"\x12TcpProxyEntryState\x12\v\n" +
|
|
"\aUnknown\x10\x00\x12\x0f\n" +
|
|
"\vSynReceived\x10\x01\x12\x11\n" +
|
|
"\rConnectingDst\x10\x02\x12\r\n" +
|
|
"\tConnected\x10\x03\x12\n" +
|
|
"\n" +
|
|
"\x06Closed\x10\x04\x12\x0e\n" +
|
|
"\n" +
|
|
"ClosingSrc\x10\x05\x12\x0e\n" +
|
|
"\n" +
|
|
"ClosingDst\x10\x062\x95\x06\n" +
|
|
"\rPeerManageRpc\x12I\n" +
|
|
"\bListPeer\x12\x1d.api.instance.ListPeerRequest\x1a\x1e.api.instance.ListPeerResponse\x12g\n" +
|
|
"\x12ListPublicIpv6Info\x12'.api.instance.ListPublicIpv6InfoRequest\x1a(.api.instance.ListPublicIpv6InfoResponse\x12L\n" +
|
|
"\tListRoute\x12\x1e.api.instance.ListRouteRequest\x1a\x1f.api.instance.ListRouteResponse\x12L\n" +
|
|
"\tDumpRoute\x12\x1e.api.instance.DumpRouteRequest\x1a\x1f.api.instance.DumpRouteResponse\x12g\n" +
|
|
"\x12ListForeignNetwork\x12'.api.instance.ListForeignNetworkRequest\x1a(.api.instance.ListForeignNetworkResponse\x12y\n" +
|
|
"\x18ListGlobalForeignNetwork\x12-.api.instance.ListGlobalForeignNetworkRequest\x1a..api.instance.ListGlobalForeignNetworkResponse\x12U\n" +
|
|
"\fShowNodeInfo\x12!.api.instance.ShowNodeInfoRequest\x1a\".api.instance.ShowNodeInfoResponse\x12y\n" +
|
|
"\x18GetForeignNetworkSummary\x12-.api.instance.GetForeignNetworkSummaryRequest\x1a..api.instance.GetForeignNetworkSummaryResponse2n\n" +
|
|
"\x12ConnectorManageRpc\x12X\n" +
|
|
"\rListConnector\x12\".api.instance.ListConnectorRequest\x1a#.api.instance.ListConnectorResponse2\x82\x01\n" +
|
|
"\x17MappedListenerManageRpc\x12g\n" +
|
|
"\x12ListMappedListener\x12'.api.instance.ListMappedListenerRequest\x1a(.api.instance.ListMappedListenerResponse2q\n" +
|
|
"\fVpnPortalRpc\x12a\n" +
|
|
"\x10GetVpnPortalInfo\x12%.api.instance.GetVpnPortalInfoRequest\x1a&.api.instance.GetVpnPortalInfoResponse2s\n" +
|
|
"\vTcpProxyRpc\x12d\n" +
|
|
"\x11ListTcpProxyEntry\x12&.api.instance.ListTcpProxyEntryRequest\x1a'.api.instance.ListTcpProxyEntryResponse2\xb9\x01\n" +
|
|
"\fAclManageRpc\x12R\n" +
|
|
"\vGetAclStats\x12 .api.instance.GetAclStatsRequest\x1a!.api.instance.GetAclStatsResponse\x12U\n" +
|
|
"\fGetWhitelist\x12!.api.instance.GetWhitelistRequest\x1a\".api.instance.GetWhitelistResponse2v\n" +
|
|
"\x14PortForwardManageRpc\x12^\n" +
|
|
"\x0fListPortForward\x12$.api.instance.ListPortForwardRequest\x1a%.api.instance.ListPortForwardResponse2\xbe\x01\n" +
|
|
"\bStatsRpc\x12I\n" +
|
|
"\bGetStats\x12\x1d.api.instance.GetStatsRequest\x1a\x1e.api.instance.GetStatsResponse\x12g\n" +
|
|
"\x12GetPrometheusStats\x12'.api.instance.GetPrometheusStatsRequest\x1a(.api.instance.GetPrometheusStatsResponse2\xc1\x02\n" +
|
|
"\x13CredentialManageRpc\x12g\n" +
|
|
"\x12GenerateCredential\x12'.api.instance.GenerateCredentialRequest\x1a(.api.instance.GenerateCredentialResponse\x12a\n" +
|
|
"\x10RevokeCredential\x12%.api.instance.RevokeCredentialRequest\x1a&.api.instance.RevokeCredentialResponse\x12^\n" +
|
|
"\x0fListCredentials\x12$.api.instance.ListCredentialsRequest\x1a%.api.instance.ListCredentialsResponseb\x06proto3"
|
|
|
|
var (
|
|
file_api_instance_proto_rawDescOnce sync.Once
|
|
file_api_instance_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_instance_proto_rawDescGZIP() []byte {
|
|
file_api_instance_proto_rawDescOnce.Do(func() {
|
|
file_api_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_instance_proto_rawDesc), len(file_api_instance_proto_rawDesc)))
|
|
})
|
|
return file_api_instance_proto_rawDescData
|
|
}
|
|
|
|
var file_api_instance_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
|
var file_api_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 63)
|
|
var file_api_instance_proto_goTypes = []any{
|
|
(TrustedKeySourcePb)(0), // 0: api.instance.TrustedKeySourcePb
|
|
(ConnectorStatus)(0), // 1: api.instance.ConnectorStatus
|
|
(TcpProxyEntryTransportType)(0), // 2: api.instance.TcpProxyEntryTransportType
|
|
(TcpProxyEntryState)(0), // 3: api.instance.TcpProxyEntryState
|
|
(*InstanceIdentifier)(nil), // 4: api.instance.InstanceIdentifier
|
|
(*Status)(nil), // 5: api.instance.Status
|
|
(*PeerConnStats)(nil), // 6: api.instance.PeerConnStats
|
|
(*PeerConnInfo)(nil), // 7: api.instance.PeerConnInfo
|
|
(*PeerInfo)(nil), // 8: api.instance.PeerInfo
|
|
(*ListPeerRequest)(nil), // 9: api.instance.ListPeerRequest
|
|
(*ListPeerResponse)(nil), // 10: api.instance.ListPeerResponse
|
|
(*Route)(nil), // 11: api.instance.Route
|
|
(*PeerRoutePair)(nil), // 12: api.instance.PeerRoutePair
|
|
(*NodeInfo)(nil), // 13: api.instance.NodeInfo
|
|
(*ShowNodeInfoRequest)(nil), // 14: api.instance.ShowNodeInfoRequest
|
|
(*ShowNodeInfoResponse)(nil), // 15: api.instance.ShowNodeInfoResponse
|
|
(*PublicIpv6LeaseInfo)(nil), // 16: api.instance.PublicIpv6LeaseInfo
|
|
(*ListPublicIpv6InfoRequest)(nil), // 17: api.instance.ListPublicIpv6InfoRequest
|
|
(*ListPublicIpv6InfoResponse)(nil), // 18: api.instance.ListPublicIpv6InfoResponse
|
|
(*ListRouteRequest)(nil), // 19: api.instance.ListRouteRequest
|
|
(*ListRouteResponse)(nil), // 20: api.instance.ListRouteResponse
|
|
(*DumpRouteRequest)(nil), // 21: api.instance.DumpRouteRequest
|
|
(*DumpRouteResponse)(nil), // 22: api.instance.DumpRouteResponse
|
|
(*ListForeignNetworkRequest)(nil), // 23: api.instance.ListForeignNetworkRequest
|
|
(*TrustedKeyInfoPb)(nil), // 24: api.instance.TrustedKeyInfoPb
|
|
(*ForeignNetworkEntryPb)(nil), // 25: api.instance.ForeignNetworkEntryPb
|
|
(*ListForeignNetworkResponse)(nil), // 26: api.instance.ListForeignNetworkResponse
|
|
(*ListGlobalForeignNetworkRequest)(nil), // 27: api.instance.ListGlobalForeignNetworkRequest
|
|
(*ListGlobalForeignNetworkResponse)(nil), // 28: api.instance.ListGlobalForeignNetworkResponse
|
|
(*GetForeignNetworkSummaryRequest)(nil), // 29: api.instance.GetForeignNetworkSummaryRequest
|
|
(*GetForeignNetworkSummaryResponse)(nil), // 30: api.instance.GetForeignNetworkSummaryResponse
|
|
(*Connector)(nil), // 31: api.instance.Connector
|
|
(*ListConnectorRequest)(nil), // 32: api.instance.ListConnectorRequest
|
|
(*ListConnectorResponse)(nil), // 33: api.instance.ListConnectorResponse
|
|
(*MappedListener)(nil), // 34: api.instance.MappedListener
|
|
(*ListMappedListenerRequest)(nil), // 35: api.instance.ListMappedListenerRequest
|
|
(*ListMappedListenerResponse)(nil), // 36: api.instance.ListMappedListenerResponse
|
|
(*VpnPortalInfo)(nil), // 37: api.instance.VpnPortalInfo
|
|
(*GetVpnPortalInfoRequest)(nil), // 38: api.instance.GetVpnPortalInfoRequest
|
|
(*GetVpnPortalInfoResponse)(nil), // 39: api.instance.GetVpnPortalInfoResponse
|
|
(*TcpProxyEntry)(nil), // 40: api.instance.TcpProxyEntry
|
|
(*ListTcpProxyEntryRequest)(nil), // 41: api.instance.ListTcpProxyEntryRequest
|
|
(*ListTcpProxyEntryResponse)(nil), // 42: api.instance.ListTcpProxyEntryResponse
|
|
(*GetAclStatsRequest)(nil), // 43: api.instance.GetAclStatsRequest
|
|
(*GetAclStatsResponse)(nil), // 44: api.instance.GetAclStatsResponse
|
|
(*GetWhitelistRequest)(nil), // 45: api.instance.GetWhitelistRequest
|
|
(*GetWhitelistResponse)(nil), // 46: api.instance.GetWhitelistResponse
|
|
(*ListPortForwardRequest)(nil), // 47: api.instance.ListPortForwardRequest
|
|
(*ListPortForwardResponse)(nil), // 48: api.instance.ListPortForwardResponse
|
|
(*MetricSnapshot)(nil), // 49: api.instance.MetricSnapshot
|
|
(*GetStatsRequest)(nil), // 50: api.instance.GetStatsRequest
|
|
(*GetStatsResponse)(nil), // 51: api.instance.GetStatsResponse
|
|
(*GetPrometheusStatsRequest)(nil), // 52: api.instance.GetPrometheusStatsRequest
|
|
(*GetPrometheusStatsResponse)(nil), // 53: api.instance.GetPrometheusStatsResponse
|
|
(*GenerateCredentialRequest)(nil), // 54: api.instance.GenerateCredentialRequest
|
|
(*GenerateCredentialResponse)(nil), // 55: api.instance.GenerateCredentialResponse
|
|
(*RevokeCredentialRequest)(nil), // 56: api.instance.RevokeCredentialRequest
|
|
(*RevokeCredentialResponse)(nil), // 57: api.instance.RevokeCredentialResponse
|
|
(*ListCredentialsRequest)(nil), // 58: api.instance.ListCredentialsRequest
|
|
(*CredentialInfo)(nil), // 59: api.instance.CredentialInfo
|
|
(*ListCredentialsResponse)(nil), // 60: api.instance.ListCredentialsResponse
|
|
(*InstanceIdentifier_InstanceSelector)(nil), // 61: api.instance.InstanceIdentifier.InstanceSelector
|
|
nil, // 62: api.instance.ListForeignNetworkResponse.ForeignNetworksEntry
|
|
(*ListGlobalForeignNetworkResponse_OneForeignNetwork)(nil), // 63: api.instance.ListGlobalForeignNetworkResponse.OneForeignNetwork
|
|
(*ListGlobalForeignNetworkResponse_ForeignNetworks)(nil), // 64: api.instance.ListGlobalForeignNetworkResponse.ForeignNetworks
|
|
nil, // 65: api.instance.ListGlobalForeignNetworkResponse.ForeignNetworksEntry
|
|
nil, // 66: api.instance.MetricSnapshot.LabelsEntry
|
|
(*common.UUID)(nil), // 67: common.UUID
|
|
(*common.TunnelInfo)(nil), // 68: common.TunnelInfo
|
|
(peer_rpc.SecureAuthLevel)(0), // 69: peer_rpc.SecureAuthLevel
|
|
(peer_rpc.PeerIdentityType)(0), // 70: peer_rpc.PeerIdentityType
|
|
(*common.Ipv4Inet)(nil), // 71: common.Ipv4Inet
|
|
(*common.StunInfo)(nil), // 72: common.StunInfo
|
|
(*common.PeerFeatureFlag)(nil), // 73: common.PeerFeatureFlag
|
|
(*common.Ipv6Inet)(nil), // 74: common.Ipv6Inet
|
|
(*peer_rpc.GetIpListResponse)(nil), // 75: peer_rpc.GetIpListResponse
|
|
(*peer_rpc.RouteForeignNetworkSummary)(nil), // 76: peer_rpc.RouteForeignNetworkSummary
|
|
(*common.Url)(nil), // 77: common.Url
|
|
(*common.SocketAddr)(nil), // 78: common.SocketAddr
|
|
(*acl.AclStats)(nil), // 79: acl.AclStats
|
|
(*common.PortForwardConfigPb)(nil), // 80: common.PortForwardConfigPb
|
|
}
|
|
var file_api_instance_proto_depIdxs = []int32{
|
|
67, // 0: api.instance.InstanceIdentifier.id:type_name -> common.UUID
|
|
61, // 1: api.instance.InstanceIdentifier.instance_selector:type_name -> api.instance.InstanceIdentifier.InstanceSelector
|
|
68, // 2: api.instance.PeerConnInfo.tunnel:type_name -> common.TunnelInfo
|
|
6, // 3: api.instance.PeerConnInfo.stats:type_name -> api.instance.PeerConnStats
|
|
69, // 4: api.instance.PeerConnInfo.secure_auth_level:type_name -> peer_rpc.SecureAuthLevel
|
|
70, // 5: api.instance.PeerConnInfo.peer_identity_type:type_name -> peer_rpc.PeerIdentityType
|
|
7, // 6: api.instance.PeerInfo.conns:type_name -> api.instance.PeerConnInfo
|
|
67, // 7: api.instance.PeerInfo.default_conn_id:type_name -> common.UUID
|
|
67, // 8: api.instance.PeerInfo.directly_connected_conns:type_name -> common.UUID
|
|
4, // 9: api.instance.ListPeerRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
8, // 10: api.instance.ListPeerResponse.peer_infos:type_name -> api.instance.PeerInfo
|
|
13, // 11: api.instance.ListPeerResponse.my_info:type_name -> api.instance.NodeInfo
|
|
71, // 12: api.instance.Route.ipv4_addr:type_name -> common.Ipv4Inet
|
|
72, // 13: api.instance.Route.stun_info:type_name -> common.StunInfo
|
|
73, // 14: api.instance.Route.feature_flag:type_name -> common.PeerFeatureFlag
|
|
74, // 15: api.instance.Route.ipv6_addr:type_name -> common.Ipv6Inet
|
|
74, // 16: api.instance.Route.public_ipv6_addr:type_name -> common.Ipv6Inet
|
|
74, // 17: api.instance.Route.ipv6_public_addr_prefix:type_name -> common.Ipv6Inet
|
|
11, // 18: api.instance.PeerRoutePair.route:type_name -> api.instance.Route
|
|
8, // 19: api.instance.PeerRoutePair.peer:type_name -> api.instance.PeerInfo
|
|
72, // 20: api.instance.NodeInfo.stun_info:type_name -> common.StunInfo
|
|
73, // 21: api.instance.NodeInfo.feature_flag:type_name -> common.PeerFeatureFlag
|
|
75, // 22: api.instance.NodeInfo.ip_list:type_name -> peer_rpc.GetIpListResponse
|
|
74, // 23: api.instance.NodeInfo.public_ipv6_addr:type_name -> common.Ipv6Inet
|
|
74, // 24: api.instance.NodeInfo.ipv6_public_addr_prefix:type_name -> common.Ipv6Inet
|
|
4, // 25: api.instance.ShowNodeInfoRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
13, // 26: api.instance.ShowNodeInfoResponse.node_info:type_name -> api.instance.NodeInfo
|
|
74, // 27: api.instance.PublicIpv6LeaseInfo.leased_addr:type_name -> common.Ipv6Inet
|
|
4, // 28: api.instance.ListPublicIpv6InfoRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
74, // 29: api.instance.ListPublicIpv6InfoResponse.provider_prefix:type_name -> common.Ipv6Inet
|
|
16, // 30: api.instance.ListPublicIpv6InfoResponse.provider_leases:type_name -> api.instance.PublicIpv6LeaseInfo
|
|
4, // 31: api.instance.ListRouteRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
11, // 32: api.instance.ListRouteResponse.routes:type_name -> api.instance.Route
|
|
4, // 33: api.instance.DumpRouteRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
4, // 34: api.instance.ListForeignNetworkRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
0, // 35: api.instance.TrustedKeyInfoPb.source:type_name -> api.instance.TrustedKeySourcePb
|
|
8, // 36: api.instance.ForeignNetworkEntryPb.peers:type_name -> api.instance.PeerInfo
|
|
24, // 37: api.instance.ForeignNetworkEntryPb.trusted_keys:type_name -> api.instance.TrustedKeyInfoPb
|
|
62, // 38: api.instance.ListForeignNetworkResponse.foreign_networks:type_name -> api.instance.ListForeignNetworkResponse.ForeignNetworksEntry
|
|
4, // 39: api.instance.ListGlobalForeignNetworkRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
65, // 40: api.instance.ListGlobalForeignNetworkResponse.foreign_networks:type_name -> api.instance.ListGlobalForeignNetworkResponse.ForeignNetworksEntry
|
|
4, // 41: api.instance.GetForeignNetworkSummaryRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
76, // 42: api.instance.GetForeignNetworkSummaryResponse.summary:type_name -> peer_rpc.RouteForeignNetworkSummary
|
|
77, // 43: api.instance.Connector.url:type_name -> common.Url
|
|
1, // 44: api.instance.Connector.status:type_name -> api.instance.ConnectorStatus
|
|
4, // 45: api.instance.ListConnectorRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
31, // 46: api.instance.ListConnectorResponse.connectors:type_name -> api.instance.Connector
|
|
77, // 47: api.instance.MappedListener.url:type_name -> common.Url
|
|
4, // 48: api.instance.ListMappedListenerRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
34, // 49: api.instance.ListMappedListenerResponse.mappedlisteners:type_name -> api.instance.MappedListener
|
|
4, // 50: api.instance.GetVpnPortalInfoRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
37, // 51: api.instance.GetVpnPortalInfoResponse.vpn_portal_info:type_name -> api.instance.VpnPortalInfo
|
|
78, // 52: api.instance.TcpProxyEntry.src:type_name -> common.SocketAddr
|
|
78, // 53: api.instance.TcpProxyEntry.dst:type_name -> common.SocketAddr
|
|
3, // 54: api.instance.TcpProxyEntry.state:type_name -> api.instance.TcpProxyEntryState
|
|
2, // 55: api.instance.TcpProxyEntry.transport_type:type_name -> api.instance.TcpProxyEntryTransportType
|
|
4, // 56: api.instance.ListTcpProxyEntryRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
40, // 57: api.instance.ListTcpProxyEntryResponse.entries:type_name -> api.instance.TcpProxyEntry
|
|
4, // 58: api.instance.GetAclStatsRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
79, // 59: api.instance.GetAclStatsResponse.acl_stats:type_name -> acl.AclStats
|
|
4, // 60: api.instance.GetWhitelistRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
4, // 61: api.instance.ListPortForwardRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
80, // 62: api.instance.ListPortForwardResponse.cfgs:type_name -> common.PortForwardConfigPb
|
|
66, // 63: api.instance.MetricSnapshot.labels:type_name -> api.instance.MetricSnapshot.LabelsEntry
|
|
4, // 64: api.instance.GetStatsRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
49, // 65: api.instance.GetStatsResponse.metrics:type_name -> api.instance.MetricSnapshot
|
|
4, // 66: api.instance.GetPrometheusStatsRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
4, // 67: api.instance.GenerateCredentialRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
4, // 68: api.instance.RevokeCredentialRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
4, // 69: api.instance.ListCredentialsRequest.instance:type_name -> api.instance.InstanceIdentifier
|
|
59, // 70: api.instance.ListCredentialsResponse.credentials:type_name -> api.instance.CredentialInfo
|
|
25, // 71: api.instance.ListForeignNetworkResponse.ForeignNetworksEntry.value:type_name -> api.instance.ForeignNetworkEntryPb
|
|
63, // 72: api.instance.ListGlobalForeignNetworkResponse.ForeignNetworks.foreign_networks:type_name -> api.instance.ListGlobalForeignNetworkResponse.OneForeignNetwork
|
|
64, // 73: api.instance.ListGlobalForeignNetworkResponse.ForeignNetworksEntry.value:type_name -> api.instance.ListGlobalForeignNetworkResponse.ForeignNetworks
|
|
9, // 74: api.instance.PeerManageRpc.ListPeer:input_type -> api.instance.ListPeerRequest
|
|
17, // 75: api.instance.PeerManageRpc.ListPublicIpv6Info:input_type -> api.instance.ListPublicIpv6InfoRequest
|
|
19, // 76: api.instance.PeerManageRpc.ListRoute:input_type -> api.instance.ListRouteRequest
|
|
21, // 77: api.instance.PeerManageRpc.DumpRoute:input_type -> api.instance.DumpRouteRequest
|
|
23, // 78: api.instance.PeerManageRpc.ListForeignNetwork:input_type -> api.instance.ListForeignNetworkRequest
|
|
27, // 79: api.instance.PeerManageRpc.ListGlobalForeignNetwork:input_type -> api.instance.ListGlobalForeignNetworkRequest
|
|
14, // 80: api.instance.PeerManageRpc.ShowNodeInfo:input_type -> api.instance.ShowNodeInfoRequest
|
|
29, // 81: api.instance.PeerManageRpc.GetForeignNetworkSummary:input_type -> api.instance.GetForeignNetworkSummaryRequest
|
|
32, // 82: api.instance.ConnectorManageRpc.ListConnector:input_type -> api.instance.ListConnectorRequest
|
|
35, // 83: api.instance.MappedListenerManageRpc.ListMappedListener:input_type -> api.instance.ListMappedListenerRequest
|
|
38, // 84: api.instance.VpnPortalRpc.GetVpnPortalInfo:input_type -> api.instance.GetVpnPortalInfoRequest
|
|
41, // 85: api.instance.TcpProxyRpc.ListTcpProxyEntry:input_type -> api.instance.ListTcpProxyEntryRequest
|
|
43, // 86: api.instance.AclManageRpc.GetAclStats:input_type -> api.instance.GetAclStatsRequest
|
|
45, // 87: api.instance.AclManageRpc.GetWhitelist:input_type -> api.instance.GetWhitelistRequest
|
|
47, // 88: api.instance.PortForwardManageRpc.ListPortForward:input_type -> api.instance.ListPortForwardRequest
|
|
50, // 89: api.instance.StatsRpc.GetStats:input_type -> api.instance.GetStatsRequest
|
|
52, // 90: api.instance.StatsRpc.GetPrometheusStats:input_type -> api.instance.GetPrometheusStatsRequest
|
|
54, // 91: api.instance.CredentialManageRpc.GenerateCredential:input_type -> api.instance.GenerateCredentialRequest
|
|
56, // 92: api.instance.CredentialManageRpc.RevokeCredential:input_type -> api.instance.RevokeCredentialRequest
|
|
58, // 93: api.instance.CredentialManageRpc.ListCredentials:input_type -> api.instance.ListCredentialsRequest
|
|
10, // 94: api.instance.PeerManageRpc.ListPeer:output_type -> api.instance.ListPeerResponse
|
|
18, // 95: api.instance.PeerManageRpc.ListPublicIpv6Info:output_type -> api.instance.ListPublicIpv6InfoResponse
|
|
20, // 96: api.instance.PeerManageRpc.ListRoute:output_type -> api.instance.ListRouteResponse
|
|
22, // 97: api.instance.PeerManageRpc.DumpRoute:output_type -> api.instance.DumpRouteResponse
|
|
26, // 98: api.instance.PeerManageRpc.ListForeignNetwork:output_type -> api.instance.ListForeignNetworkResponse
|
|
28, // 99: api.instance.PeerManageRpc.ListGlobalForeignNetwork:output_type -> api.instance.ListGlobalForeignNetworkResponse
|
|
15, // 100: api.instance.PeerManageRpc.ShowNodeInfo:output_type -> api.instance.ShowNodeInfoResponse
|
|
30, // 101: api.instance.PeerManageRpc.GetForeignNetworkSummary:output_type -> api.instance.GetForeignNetworkSummaryResponse
|
|
33, // 102: api.instance.ConnectorManageRpc.ListConnector:output_type -> api.instance.ListConnectorResponse
|
|
36, // 103: api.instance.MappedListenerManageRpc.ListMappedListener:output_type -> api.instance.ListMappedListenerResponse
|
|
39, // 104: api.instance.VpnPortalRpc.GetVpnPortalInfo:output_type -> api.instance.GetVpnPortalInfoResponse
|
|
42, // 105: api.instance.TcpProxyRpc.ListTcpProxyEntry:output_type -> api.instance.ListTcpProxyEntryResponse
|
|
44, // 106: api.instance.AclManageRpc.GetAclStats:output_type -> api.instance.GetAclStatsResponse
|
|
46, // 107: api.instance.AclManageRpc.GetWhitelist:output_type -> api.instance.GetWhitelistResponse
|
|
48, // 108: api.instance.PortForwardManageRpc.ListPortForward:output_type -> api.instance.ListPortForwardResponse
|
|
51, // 109: api.instance.StatsRpc.GetStats:output_type -> api.instance.GetStatsResponse
|
|
53, // 110: api.instance.StatsRpc.GetPrometheusStats:output_type -> api.instance.GetPrometheusStatsResponse
|
|
55, // 111: api.instance.CredentialManageRpc.GenerateCredential:output_type -> api.instance.GenerateCredentialResponse
|
|
57, // 112: api.instance.CredentialManageRpc.RevokeCredential:output_type -> api.instance.RevokeCredentialResponse
|
|
60, // 113: api.instance.CredentialManageRpc.ListCredentials:output_type -> api.instance.ListCredentialsResponse
|
|
94, // [94:114] is the sub-list for method output_type
|
|
74, // [74:94] is the sub-list for method input_type
|
|
74, // [74:74] is the sub-list for extension type_name
|
|
74, // [74:74] is the sub-list for extension extendee
|
|
0, // [0:74] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_instance_proto_init() }
|
|
func file_api_instance_proto_init() {
|
|
if File_api_instance_proto != nil {
|
|
return
|
|
}
|
|
file_api_instance_proto_msgTypes[0].OneofWrappers = []any{
|
|
(*InstanceIdentifier_Id)(nil),
|
|
(*InstanceIdentifier_InstanceSelector_)(nil),
|
|
}
|
|
file_api_instance_proto_msgTypes[7].OneofWrappers = []any{}
|
|
file_api_instance_proto_msgTypes[20].OneofWrappers = []any{}
|
|
file_api_instance_proto_msgTypes[50].OneofWrappers = []any{}
|
|
file_api_instance_proto_msgTypes[55].OneofWrappers = []any{}
|
|
file_api_instance_proto_msgTypes[57].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_instance_proto_rawDesc), len(file_api_instance_proto_rawDesc)),
|
|
NumEnums: 4,
|
|
NumMessages: 63,
|
|
NumExtensions: 0,
|
|
NumServices: 9,
|
|
},
|
|
GoTypes: file_api_instance_proto_goTypes,
|
|
DependencyIndexes: file_api_instance_proto_depIdxs,
|
|
EnumInfos: file_api_instance_proto_enumTypes,
|
|
MessageInfos: file_api_instance_proto_msgTypes,
|
|
}.Build()
|
|
File_api_instance_proto = out.File
|
|
file_api_instance_proto_goTypes = nil
|
|
file_api_instance_proto_depIdxs = nil
|
|
}
|