Files
EasyTier/easytier-go/proto/api/config/api_config.pb.go
T
KKRainbow 3d0c9c3ca5 chore(go): use lowercase module import path (#2560)
* chore(go): use lowercase module import path
* ci: scope checks for Go module changes
2026-09-10 15:13:55 +08:00

972 lines
31 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.35.1
// source: api_config.proto
package config
import (
acl "github.com/easytier/easytier/easytier-go/proto/acl"
instance "github.com/easytier/easytier/easytier-go/proto/api/instance"
manage "github.com/easytier/easytier/easytier-go/proto/api/manage"
common "github.com/easytier/easytier/easytier-go/proto/common"
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 ConfigPatchAction int32
const (
ConfigPatchAction_ADD ConfigPatchAction = 0
ConfigPatchAction_REMOVE ConfigPatchAction = 1
ConfigPatchAction_CLEAR ConfigPatchAction = 2
)
// Enum value maps for ConfigPatchAction.
var (
ConfigPatchAction_name = map[int32]string{
0: "ADD",
1: "REMOVE",
2: "CLEAR",
}
ConfigPatchAction_value = map[string]int32{
"ADD": 0,
"REMOVE": 1,
"CLEAR": 2,
}
)
func (x ConfigPatchAction) Enum() *ConfigPatchAction {
p := new(ConfigPatchAction)
*p = x
return p
}
func (x ConfigPatchAction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConfigPatchAction) Descriptor() protoreflect.EnumDescriptor {
return file_api_config_proto_enumTypes[0].Descriptor()
}
func (ConfigPatchAction) Type() protoreflect.EnumType {
return &file_api_config_proto_enumTypes[0]
}
func (x ConfigPatchAction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConfigPatchAction.Descriptor instead.
func (ConfigPatchAction) EnumDescriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{0}
}
type InstanceConfigPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Hostname *string `protobuf:"bytes,1,opt,name=hostname,proto3,oneof" json:"hostname,omitempty"`
Ipv4 *common.Ipv4Inet `protobuf:"bytes,2,opt,name=ipv4,proto3,oneof" json:"ipv4,omitempty"`
Ipv6 *common.Ipv6Inet `protobuf:"bytes,3,opt,name=ipv6,proto3,oneof" json:"ipv6,omitempty"`
PortForwards []*PortForwardPatch `protobuf:"bytes,4,rep,name=port_forwards,json=portForwards,proto3" json:"port_forwards,omitempty"`
Acl *AclPatch `protobuf:"bytes,5,opt,name=acl,proto3,oneof" json:"acl,omitempty"`
ProxyNetworks []*ProxyNetworkPatch `protobuf:"bytes,6,rep,name=proxy_networks,json=proxyNetworks,proto3" json:"proxy_networks,omitempty"`
Routes []*RoutePatch `protobuf:"bytes,7,rep,name=routes,proto3" json:"routes,omitempty"`
ExitNodes []*ExitNodePatch `protobuf:"bytes,8,rep,name=exit_nodes,json=exitNodes,proto3" json:"exit_nodes,omitempty"`
MappedListeners []*UrlPatch `protobuf:"bytes,9,rep,name=mapped_listeners,json=mappedListeners,proto3" json:"mapped_listeners,omitempty"`
Connectors []*UrlPatch `protobuf:"bytes,10,rep,name=connectors,proto3" json:"connectors,omitempty"`
Ipv6PublicAddrProvider *bool `protobuf:"varint,11,opt,name=ipv6_public_addr_provider,json=ipv6PublicAddrProvider,proto3,oneof" json:"ipv6_public_addr_provider,omitempty"`
Ipv6PublicAddrAuto *bool `protobuf:"varint,12,opt,name=ipv6_public_addr_auto,json=ipv6PublicAddrAuto,proto3,oneof" json:"ipv6_public_addr_auto,omitempty"`
Ipv6PublicAddrPrefix *string `protobuf:"bytes,13,opt,name=ipv6_public_addr_prefix,json=ipv6PublicAddrPrefix,proto3,oneof" json:"ipv6_public_addr_prefix,omitempty"`
DisableRelayData *bool `protobuf:"varint,14,opt,name=disable_relay_data,json=disableRelayData,proto3,oneof" json:"disable_relay_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InstanceConfigPatch) Reset() {
*x = InstanceConfigPatch{}
mi := &file_api_config_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InstanceConfigPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceConfigPatch) ProtoMessage() {}
func (x *InstanceConfigPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 InstanceConfigPatch.ProtoReflect.Descriptor instead.
func (*InstanceConfigPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{0}
}
func (x *InstanceConfigPatch) GetHostname() string {
if x != nil && x.Hostname != nil {
return *x.Hostname
}
return ""
}
func (x *InstanceConfigPatch) GetIpv4() *common.Ipv4Inet {
if x != nil {
return x.Ipv4
}
return nil
}
func (x *InstanceConfigPatch) GetIpv6() *common.Ipv6Inet {
if x != nil {
return x.Ipv6
}
return nil
}
func (x *InstanceConfigPatch) GetPortForwards() []*PortForwardPatch {
if x != nil {
return x.PortForwards
}
return nil
}
func (x *InstanceConfigPatch) GetAcl() *AclPatch {
if x != nil {
return x.Acl
}
return nil
}
func (x *InstanceConfigPatch) GetProxyNetworks() []*ProxyNetworkPatch {
if x != nil {
return x.ProxyNetworks
}
return nil
}
func (x *InstanceConfigPatch) GetRoutes() []*RoutePatch {
if x != nil {
return x.Routes
}
return nil
}
func (x *InstanceConfigPatch) GetExitNodes() []*ExitNodePatch {
if x != nil {
return x.ExitNodes
}
return nil
}
func (x *InstanceConfigPatch) GetMappedListeners() []*UrlPatch {
if x != nil {
return x.MappedListeners
}
return nil
}
func (x *InstanceConfigPatch) GetConnectors() []*UrlPatch {
if x != nil {
return x.Connectors
}
return nil
}
func (x *InstanceConfigPatch) GetIpv6PublicAddrProvider() bool {
if x != nil && x.Ipv6PublicAddrProvider != nil {
return *x.Ipv6PublicAddrProvider
}
return false
}
func (x *InstanceConfigPatch) GetIpv6PublicAddrAuto() bool {
if x != nil && x.Ipv6PublicAddrAuto != nil {
return *x.Ipv6PublicAddrAuto
}
return false
}
func (x *InstanceConfigPatch) GetIpv6PublicAddrPrefix() string {
if x != nil && x.Ipv6PublicAddrPrefix != nil {
return *x.Ipv6PublicAddrPrefix
}
return ""
}
func (x *InstanceConfigPatch) GetDisableRelayData() bool {
if x != nil && x.DisableRelayData != nil {
return *x.DisableRelayData
}
return false
}
type PortForwardPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Cfg *common.PortForwardConfigPb `protobuf:"bytes,2,opt,name=cfg,proto3" json:"cfg,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PortForwardPatch) Reset() {
*x = PortForwardPatch{}
mi := &file_api_config_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PortForwardPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PortForwardPatch) ProtoMessage() {}
func (x *PortForwardPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 PortForwardPatch.ProtoReflect.Descriptor instead.
func (*PortForwardPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{1}
}
func (x *PortForwardPatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *PortForwardPatch) GetCfg() *common.PortForwardConfigPb {
if x != nil {
return x.Cfg
}
return nil
}
type StringPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StringPatch) Reset() {
*x = StringPatch{}
mi := &file_api_config_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StringPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StringPatch) ProtoMessage() {}
func (x *StringPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 StringPatch.ProtoReflect.Descriptor instead.
func (*StringPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{2}
}
func (x *StringPatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *StringPatch) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type UrlPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Url *common.Url `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UrlPatch) Reset() {
*x = UrlPatch{}
mi := &file_api_config_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UrlPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UrlPatch) ProtoMessage() {}
func (x *UrlPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 UrlPatch.ProtoReflect.Descriptor instead.
func (*UrlPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{3}
}
func (x *UrlPatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *UrlPatch) GetUrl() *common.Url {
if x != nil {
return x.Url
}
return nil
}
type AclPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Acl *acl.Acl `protobuf:"bytes,1,opt,name=acl,proto3,oneof" json:"acl,omitempty"`
TcpWhitelist []*StringPatch `protobuf:"bytes,2,rep,name=tcp_whitelist,json=tcpWhitelist,proto3" json:"tcp_whitelist,omitempty"`
UdpWhitelist []*StringPatch `protobuf:"bytes,3,rep,name=udp_whitelist,json=udpWhitelist,proto3" json:"udp_whitelist,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AclPatch) Reset() {
*x = AclPatch{}
mi := &file_api_config_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AclPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AclPatch) ProtoMessage() {}
func (x *AclPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 AclPatch.ProtoReflect.Descriptor instead.
func (*AclPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{4}
}
func (x *AclPatch) GetAcl() *acl.Acl {
if x != nil {
return x.Acl
}
return nil
}
func (x *AclPatch) GetTcpWhitelist() []*StringPatch {
if x != nil {
return x.TcpWhitelist
}
return nil
}
func (x *AclPatch) GetUdpWhitelist() []*StringPatch {
if x != nil {
return x.UdpWhitelist
}
return nil
}
type ProxyNetworkPatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Cidr *common.Ipv4Inet `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
MappedCidr *common.Ipv4Inet `protobuf:"bytes,3,opt,name=mapped_cidr,json=mappedCidr,proto3,oneof" json:"mapped_cidr,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProxyNetworkPatch) Reset() {
*x = ProxyNetworkPatch{}
mi := &file_api_config_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProxyNetworkPatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProxyNetworkPatch) ProtoMessage() {}
func (x *ProxyNetworkPatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 ProxyNetworkPatch.ProtoReflect.Descriptor instead.
func (*ProxyNetworkPatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{5}
}
func (x *ProxyNetworkPatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *ProxyNetworkPatch) GetCidr() *common.Ipv4Inet {
if x != nil {
return x.Cidr
}
return nil
}
func (x *ProxyNetworkPatch) GetMappedCidr() *common.Ipv4Inet {
if x != nil {
return x.MappedCidr
}
return nil
}
type RoutePatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Cidr *common.Ipv4Inet `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RoutePatch) Reset() {
*x = RoutePatch{}
mi := &file_api_config_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RoutePatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RoutePatch) ProtoMessage() {}
func (x *RoutePatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 RoutePatch.ProtoReflect.Descriptor instead.
func (*RoutePatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{6}
}
func (x *RoutePatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *RoutePatch) GetCidr() *common.Ipv4Inet {
if x != nil {
return x.Cidr
}
return nil
}
type ExitNodePatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Action ConfigPatchAction `protobuf:"varint,1,opt,name=action,proto3,enum=api.config.ConfigPatchAction" json:"action,omitempty"`
Node *common.IpAddr `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExitNodePatch) Reset() {
*x = ExitNodePatch{}
mi := &file_api_config_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExitNodePatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExitNodePatch) ProtoMessage() {}
func (x *ExitNodePatch) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 ExitNodePatch.ProtoReflect.Descriptor instead.
func (*ExitNodePatch) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{7}
}
func (x *ExitNodePatch) GetAction() ConfigPatchAction {
if x != nil {
return x.Action
}
return ConfigPatchAction_ADD
}
func (x *ExitNodePatch) GetNode() *common.IpAddr {
if x != nil {
return x.Node
}
return nil
}
type PatchConfigRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Patch *InstanceConfigPatch `protobuf:"bytes,1,opt,name=patch,proto3" json:"patch,omitempty"`
Instance *instance.InstanceIdentifier `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PatchConfigRequest) Reset() {
*x = PatchConfigRequest{}
mi := &file_api_config_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PatchConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PatchConfigRequest) ProtoMessage() {}
func (x *PatchConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 PatchConfigRequest.ProtoReflect.Descriptor instead.
func (*PatchConfigRequest) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{8}
}
func (x *PatchConfigRequest) GetPatch() *InstanceConfigPatch {
if x != nil {
return x.Patch
}
return nil
}
func (x *PatchConfigRequest) GetInstance() *instance.InstanceIdentifier {
if x != nil {
return x.Instance
}
return nil
}
type PatchConfigResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PatchConfigResponse) Reset() {
*x = PatchConfigResponse{}
mi := &file_api_config_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PatchConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PatchConfigResponse) ProtoMessage() {}
func (x *PatchConfigResponse) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 PatchConfigResponse.ProtoReflect.Descriptor instead.
func (*PatchConfigResponse) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{9}
}
type GetConfigRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Instance *instance.InstanceIdentifier `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetConfigRequest) Reset() {
*x = GetConfigRequest{}
mi := &file_api_config_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConfigRequest) ProtoMessage() {}
func (x *GetConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 GetConfigRequest.ProtoReflect.Descriptor instead.
func (*GetConfigRequest) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{10}
}
func (x *GetConfigRequest) GetInstance() *instance.InstanceIdentifier {
if x != nil {
return x.Instance
}
return nil
}
type GetConfigResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Config *manage.NetworkConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
TomlConfig string `protobuf:"bytes,2,opt,name=toml_config,json=tomlConfig,proto3" json:"toml_config,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetConfigResponse) Reset() {
*x = GetConfigResponse{}
mi := &file_api_config_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConfigResponse) ProtoMessage() {}
func (x *GetConfigResponse) ProtoReflect() protoreflect.Message {
mi := &file_api_config_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 GetConfigResponse.ProtoReflect.Descriptor instead.
func (*GetConfigResponse) Descriptor() ([]byte, []int) {
return file_api_config_proto_rawDescGZIP(), []int{11}
}
func (x *GetConfigResponse) GetConfig() *manage.NetworkConfig {
if x != nil {
return x.Config
}
return nil
}
func (x *GetConfigResponse) GetTomlConfig() string {
if x != nil {
return x.TomlConfig
}
return ""
}
var File_api_config_proto protoreflect.FileDescriptor
const file_api_config_proto_rawDesc = "" +
"\n" +
"\x10api_config.proto\x12\n" +
"api.config\x1a\fcommon.proto\x1a\tacl.proto\x1a\x12api_instance.proto\x1a\x10api_manage.proto\"\x9c\a\n" +
"\x13InstanceConfigPatch\x12\x1f\n" +
"\bhostname\x18\x01 \x01(\tH\x00R\bhostname\x88\x01\x01\x12)\n" +
"\x04ipv4\x18\x02 \x01(\v2\x10.common.Ipv4InetH\x01R\x04ipv4\x88\x01\x01\x12)\n" +
"\x04ipv6\x18\x03 \x01(\v2\x10.common.Ipv6InetH\x02R\x04ipv6\x88\x01\x01\x12A\n" +
"\rport_forwards\x18\x04 \x03(\v2\x1c.api.config.PortForwardPatchR\fportForwards\x12+\n" +
"\x03acl\x18\x05 \x01(\v2\x14.api.config.AclPatchH\x03R\x03acl\x88\x01\x01\x12D\n" +
"\x0eproxy_networks\x18\x06 \x03(\v2\x1d.api.config.ProxyNetworkPatchR\rproxyNetworks\x12.\n" +
"\x06routes\x18\a \x03(\v2\x16.api.config.RoutePatchR\x06routes\x128\n" +
"\n" +
"exit_nodes\x18\b \x03(\v2\x19.api.config.ExitNodePatchR\texitNodes\x12?\n" +
"\x10mapped_listeners\x18\t \x03(\v2\x14.api.config.UrlPatchR\x0fmappedListeners\x124\n" +
"\n" +
"connectors\x18\n" +
" \x03(\v2\x14.api.config.UrlPatchR\n" +
"connectors\x12>\n" +
"\x19ipv6_public_addr_provider\x18\v \x01(\bH\x04R\x16ipv6PublicAddrProvider\x88\x01\x01\x126\n" +
"\x15ipv6_public_addr_auto\x18\f \x01(\bH\x05R\x12ipv6PublicAddrAuto\x88\x01\x01\x12:\n" +
"\x17ipv6_public_addr_prefix\x18\r \x01(\tH\x06R\x14ipv6PublicAddrPrefix\x88\x01\x01\x121\n" +
"\x12disable_relay_data\x18\x0e \x01(\bH\aR\x10disableRelayData\x88\x01\x01B\v\n" +
"\t_hostnameB\a\n" +
"\x05_ipv4B\a\n" +
"\x05_ipv6B\x06\n" +
"\x04_aclB\x1c\n" +
"\x1a_ipv6_public_addr_providerB\x18\n" +
"\x16_ipv6_public_addr_autoB\x1a\n" +
"\x18_ipv6_public_addr_prefixB\x15\n" +
"\x13_disable_relay_data\"x\n" +
"\x10PortForwardPatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12-\n" +
"\x03cfg\x18\x02 \x01(\v2\x1b.common.PortForwardConfigPbR\x03cfg\"Z\n" +
"\vStringPatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"`\n" +
"\bUrlPatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12\x1d\n" +
"\x03url\x18\x02 \x01(\v2\v.common.UrlR\x03url\"\xaf\x01\n" +
"\bAclPatch\x12\x1f\n" +
"\x03acl\x18\x01 \x01(\v2\b.acl.AclH\x00R\x03acl\x88\x01\x01\x12<\n" +
"\rtcp_whitelist\x18\x02 \x03(\v2\x17.api.config.StringPatchR\ftcpWhitelist\x12<\n" +
"\rudp_whitelist\x18\x03 \x03(\v2\x17.api.config.StringPatchR\fudpWhitelistB\x06\n" +
"\x04_acl\"\xb8\x01\n" +
"\x11ProxyNetworkPatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12$\n" +
"\x04cidr\x18\x02 \x01(\v2\x10.common.Ipv4InetR\x04cidr\x126\n" +
"\vmapped_cidr\x18\x03 \x01(\v2\x10.common.Ipv4InetH\x00R\n" +
"mappedCidr\x88\x01\x01B\x0e\n" +
"\f_mapped_cidr\"i\n" +
"\n" +
"RoutePatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12$\n" +
"\x04cidr\x18\x02 \x01(\v2\x10.common.Ipv4InetR\x04cidr\"j\n" +
"\rExitNodePatch\x125\n" +
"\x06action\x18\x01 \x01(\x0e2\x1d.api.config.ConfigPatchActionR\x06action\x12\"\n" +
"\x04node\x18\x02 \x01(\v2\x0e.common.IpAddrR\x04node\"\x89\x01\n" +
"\x12PatchConfigRequest\x125\n" +
"\x05patch\x18\x01 \x01(\v2\x1f.api.config.InstanceConfigPatchR\x05patch\x12<\n" +
"\binstance\x18\x02 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"\x15\n" +
"\x13PatchConfigResponse\"P\n" +
"\x10GetConfigRequest\x12<\n" +
"\binstance\x18\x01 \x01(\v2 .api.instance.InstanceIdentifierR\binstance\"g\n" +
"\x11GetConfigResponse\x121\n" +
"\x06config\x18\x01 \x01(\v2\x19.api.manage.NetworkConfigR\x06config\x12\x1f\n" +
"\vtoml_config\x18\x02 \x01(\tR\n" +
"tomlConfig*3\n" +
"\x11ConfigPatchAction\x12\a\n" +
"\x03ADD\x10\x00\x12\n" +
"\n" +
"\x06REMOVE\x10\x01\x12\t\n" +
"\x05CLEAR\x10\x022\xa5\x01\n" +
"\tConfigRpc\x12N\n" +
"\vPatchConfig\x12\x1e.api.config.PatchConfigRequest\x1a\x1f.api.config.PatchConfigResponse\x12H\n" +
"\tGetConfig\x12\x1c.api.config.GetConfigRequest\x1a\x1d.api.config.GetConfigResponseb\x06proto3"
var (
file_api_config_proto_rawDescOnce sync.Once
file_api_config_proto_rawDescData []byte
)
func file_api_config_proto_rawDescGZIP() []byte {
file_api_config_proto_rawDescOnce.Do(func() {
file_api_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_config_proto_rawDesc), len(file_api_config_proto_rawDesc)))
})
return file_api_config_proto_rawDescData
}
var file_api_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_api_config_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_api_config_proto_goTypes = []any{
(ConfigPatchAction)(0), // 0: api.config.ConfigPatchAction
(*InstanceConfigPatch)(nil), // 1: api.config.InstanceConfigPatch
(*PortForwardPatch)(nil), // 2: api.config.PortForwardPatch
(*StringPatch)(nil), // 3: api.config.StringPatch
(*UrlPatch)(nil), // 4: api.config.UrlPatch
(*AclPatch)(nil), // 5: api.config.AclPatch
(*ProxyNetworkPatch)(nil), // 6: api.config.ProxyNetworkPatch
(*RoutePatch)(nil), // 7: api.config.RoutePatch
(*ExitNodePatch)(nil), // 8: api.config.ExitNodePatch
(*PatchConfigRequest)(nil), // 9: api.config.PatchConfigRequest
(*PatchConfigResponse)(nil), // 10: api.config.PatchConfigResponse
(*GetConfigRequest)(nil), // 11: api.config.GetConfigRequest
(*GetConfigResponse)(nil), // 12: api.config.GetConfigResponse
(*common.Ipv4Inet)(nil), // 13: common.Ipv4Inet
(*common.Ipv6Inet)(nil), // 14: common.Ipv6Inet
(*common.PortForwardConfigPb)(nil), // 15: common.PortForwardConfigPb
(*common.Url)(nil), // 16: common.Url
(*acl.Acl)(nil), // 17: acl.Acl
(*common.IpAddr)(nil), // 18: common.IpAddr
(*instance.InstanceIdentifier)(nil), // 19: api.instance.InstanceIdentifier
(*manage.NetworkConfig)(nil), // 20: api.manage.NetworkConfig
}
var file_api_config_proto_depIdxs = []int32{
13, // 0: api.config.InstanceConfigPatch.ipv4:type_name -> common.Ipv4Inet
14, // 1: api.config.InstanceConfigPatch.ipv6:type_name -> common.Ipv6Inet
2, // 2: api.config.InstanceConfigPatch.port_forwards:type_name -> api.config.PortForwardPatch
5, // 3: api.config.InstanceConfigPatch.acl:type_name -> api.config.AclPatch
6, // 4: api.config.InstanceConfigPatch.proxy_networks:type_name -> api.config.ProxyNetworkPatch
7, // 5: api.config.InstanceConfigPatch.routes:type_name -> api.config.RoutePatch
8, // 6: api.config.InstanceConfigPatch.exit_nodes:type_name -> api.config.ExitNodePatch
4, // 7: api.config.InstanceConfigPatch.mapped_listeners:type_name -> api.config.UrlPatch
4, // 8: api.config.InstanceConfigPatch.connectors:type_name -> api.config.UrlPatch
0, // 9: api.config.PortForwardPatch.action:type_name -> api.config.ConfigPatchAction
15, // 10: api.config.PortForwardPatch.cfg:type_name -> common.PortForwardConfigPb
0, // 11: api.config.StringPatch.action:type_name -> api.config.ConfigPatchAction
0, // 12: api.config.UrlPatch.action:type_name -> api.config.ConfigPatchAction
16, // 13: api.config.UrlPatch.url:type_name -> common.Url
17, // 14: api.config.AclPatch.acl:type_name -> acl.Acl
3, // 15: api.config.AclPatch.tcp_whitelist:type_name -> api.config.StringPatch
3, // 16: api.config.AclPatch.udp_whitelist:type_name -> api.config.StringPatch
0, // 17: api.config.ProxyNetworkPatch.action:type_name -> api.config.ConfigPatchAction
13, // 18: api.config.ProxyNetworkPatch.cidr:type_name -> common.Ipv4Inet
13, // 19: api.config.ProxyNetworkPatch.mapped_cidr:type_name -> common.Ipv4Inet
0, // 20: api.config.RoutePatch.action:type_name -> api.config.ConfigPatchAction
13, // 21: api.config.RoutePatch.cidr:type_name -> common.Ipv4Inet
0, // 22: api.config.ExitNodePatch.action:type_name -> api.config.ConfigPatchAction
18, // 23: api.config.ExitNodePatch.node:type_name -> common.IpAddr
1, // 24: api.config.PatchConfigRequest.patch:type_name -> api.config.InstanceConfigPatch
19, // 25: api.config.PatchConfigRequest.instance:type_name -> api.instance.InstanceIdentifier
19, // 26: api.config.GetConfigRequest.instance:type_name -> api.instance.InstanceIdentifier
20, // 27: api.config.GetConfigResponse.config:type_name -> api.manage.NetworkConfig
9, // 28: api.config.ConfigRpc.PatchConfig:input_type -> api.config.PatchConfigRequest
11, // 29: api.config.ConfigRpc.GetConfig:input_type -> api.config.GetConfigRequest
10, // 30: api.config.ConfigRpc.PatchConfig:output_type -> api.config.PatchConfigResponse
12, // 31: api.config.ConfigRpc.GetConfig:output_type -> api.config.GetConfigResponse
30, // [30:32] is the sub-list for method output_type
28, // [28:30] is the sub-list for method input_type
28, // [28:28] is the sub-list for extension type_name
28, // [28:28] is the sub-list for extension extendee
0, // [0:28] is the sub-list for field type_name
}
func init() { file_api_config_proto_init() }
func file_api_config_proto_init() {
if File_api_config_proto != nil {
return
}
file_api_config_proto_msgTypes[0].OneofWrappers = []any{}
file_api_config_proto_msgTypes[4].OneofWrappers = []any{}
file_api_config_proto_msgTypes[5].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_config_proto_rawDesc), len(file_api_config_proto_rawDesc)),
NumEnums: 1,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_api_config_proto_goTypes,
DependencyIndexes: file_api_config_proto_depIdxs,
EnumInfos: file_api_config_proto_enumTypes,
MessageInfos: file_api_config_proto_msgTypes,
}.Build()
File_api_config_proto = out.File
file_api_config_proto_goTypes = nil
file_api_config_proto_depIdxs = nil
}