mirror of
https://github.com/netbirdio/netbird.git
synced 2026-03-31 06:34:14 -04:00
2176 lines
69 KiB
Go
2176 lines
69 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v6.33.3
|
|
// source: proxy_service.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 ProxyMappingUpdateType int32
|
|
|
|
const (
|
|
ProxyMappingUpdateType_UPDATE_TYPE_CREATED ProxyMappingUpdateType = 0
|
|
ProxyMappingUpdateType_UPDATE_TYPE_MODIFIED ProxyMappingUpdateType = 1
|
|
ProxyMappingUpdateType_UPDATE_TYPE_REMOVED ProxyMappingUpdateType = 2
|
|
)
|
|
|
|
// Enum value maps for ProxyMappingUpdateType.
|
|
var (
|
|
ProxyMappingUpdateType_name = map[int32]string{
|
|
0: "UPDATE_TYPE_CREATED",
|
|
1: "UPDATE_TYPE_MODIFIED",
|
|
2: "UPDATE_TYPE_REMOVED",
|
|
}
|
|
ProxyMappingUpdateType_value = map[string]int32{
|
|
"UPDATE_TYPE_CREATED": 0,
|
|
"UPDATE_TYPE_MODIFIED": 1,
|
|
"UPDATE_TYPE_REMOVED": 2,
|
|
}
|
|
)
|
|
|
|
func (x ProxyMappingUpdateType) Enum() *ProxyMappingUpdateType {
|
|
p := new(ProxyMappingUpdateType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ProxyMappingUpdateType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ProxyMappingUpdateType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proxy_service_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ProxyMappingUpdateType) Type() protoreflect.EnumType {
|
|
return &file_proxy_service_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ProxyMappingUpdateType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ProxyMappingUpdateType.Descriptor instead.
|
|
func (ProxyMappingUpdateType) EnumDescriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type PathRewriteMode int32
|
|
|
|
const (
|
|
PathRewriteMode_PATH_REWRITE_DEFAULT PathRewriteMode = 0
|
|
PathRewriteMode_PATH_REWRITE_PRESERVE PathRewriteMode = 1
|
|
)
|
|
|
|
// Enum value maps for PathRewriteMode.
|
|
var (
|
|
PathRewriteMode_name = map[int32]string{
|
|
0: "PATH_REWRITE_DEFAULT",
|
|
1: "PATH_REWRITE_PRESERVE",
|
|
}
|
|
PathRewriteMode_value = map[string]int32{
|
|
"PATH_REWRITE_DEFAULT": 0,
|
|
"PATH_REWRITE_PRESERVE": 1,
|
|
}
|
|
)
|
|
|
|
func (x PathRewriteMode) Enum() *PathRewriteMode {
|
|
p := new(PathRewriteMode)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PathRewriteMode) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PathRewriteMode) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proxy_service_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (PathRewriteMode) Type() protoreflect.EnumType {
|
|
return &file_proxy_service_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x PathRewriteMode) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PathRewriteMode.Descriptor instead.
|
|
func (PathRewriteMode) EnumDescriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type ProxyStatus int32
|
|
|
|
const (
|
|
ProxyStatus_PROXY_STATUS_PENDING ProxyStatus = 0
|
|
ProxyStatus_PROXY_STATUS_ACTIVE ProxyStatus = 1
|
|
ProxyStatus_PROXY_STATUS_TUNNEL_NOT_CREATED ProxyStatus = 2
|
|
ProxyStatus_PROXY_STATUS_CERTIFICATE_PENDING ProxyStatus = 3
|
|
ProxyStatus_PROXY_STATUS_CERTIFICATE_FAILED ProxyStatus = 4
|
|
ProxyStatus_PROXY_STATUS_ERROR ProxyStatus = 5
|
|
)
|
|
|
|
// Enum value maps for ProxyStatus.
|
|
var (
|
|
ProxyStatus_name = map[int32]string{
|
|
0: "PROXY_STATUS_PENDING",
|
|
1: "PROXY_STATUS_ACTIVE",
|
|
2: "PROXY_STATUS_TUNNEL_NOT_CREATED",
|
|
3: "PROXY_STATUS_CERTIFICATE_PENDING",
|
|
4: "PROXY_STATUS_CERTIFICATE_FAILED",
|
|
5: "PROXY_STATUS_ERROR",
|
|
}
|
|
ProxyStatus_value = map[string]int32{
|
|
"PROXY_STATUS_PENDING": 0,
|
|
"PROXY_STATUS_ACTIVE": 1,
|
|
"PROXY_STATUS_TUNNEL_NOT_CREATED": 2,
|
|
"PROXY_STATUS_CERTIFICATE_PENDING": 3,
|
|
"PROXY_STATUS_CERTIFICATE_FAILED": 4,
|
|
"PROXY_STATUS_ERROR": 5,
|
|
}
|
|
)
|
|
|
|
func (x ProxyStatus) Enum() *ProxyStatus {
|
|
p := new(ProxyStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ProxyStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ProxyStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_proxy_service_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (ProxyStatus) Type() protoreflect.EnumType {
|
|
return &file_proxy_service_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x ProxyStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ProxyStatus.Descriptor instead.
|
|
func (ProxyStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
// ProxyCapabilities describes what a proxy can handle.
|
|
type ProxyCapabilities struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Whether the proxy can bind arbitrary ports for TCP/UDP/TLS services.
|
|
SupportsCustomPorts *bool `protobuf:"varint,1,opt,name=supports_custom_ports,json=supportsCustomPorts,proto3,oneof" json:"supports_custom_ports,omitempty"`
|
|
// Whether the proxy requires a subdomain label in front of its cluster domain.
|
|
// When true, tenants cannot use the cluster domain bare.
|
|
RequireSubdomain *bool `protobuf:"varint,2,opt,name=require_subdomain,json=requireSubdomain,proto3,oneof" json:"require_subdomain,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ProxyCapabilities) Reset() {
|
|
*x = ProxyCapabilities{}
|
|
mi := &file_proxy_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ProxyCapabilities) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ProxyCapabilities) ProtoMessage() {}
|
|
|
|
func (x *ProxyCapabilities) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 ProxyCapabilities.ProtoReflect.Descriptor instead.
|
|
func (*ProxyCapabilities) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ProxyCapabilities) GetSupportsCustomPorts() bool {
|
|
if x != nil && x.SupportsCustomPorts != nil {
|
|
return *x.SupportsCustomPorts
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ProxyCapabilities) GetRequireSubdomain() bool {
|
|
if x != nil && x.RequireSubdomain != nil {
|
|
return *x.RequireSubdomain
|
|
}
|
|
return false
|
|
}
|
|
|
|
// GetMappingUpdateRequest is sent to initialise a mapping stream.
|
|
type GetMappingUpdateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProxyId string `protobuf:"bytes,1,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
|
|
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
|
|
Capabilities *ProxyCapabilities `protobuf:"bytes,5,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) Reset() {
|
|
*x = GetMappingUpdateRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMappingUpdateRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMappingUpdateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 GetMappingUpdateRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMappingUpdateRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) GetProxyId() string {
|
|
if x != nil {
|
|
return x.ProxyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) GetStartedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.StartedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetMappingUpdateRequest) GetCapabilities() *ProxyCapabilities {
|
|
if x != nil {
|
|
return x.Capabilities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// GetMappingUpdateResponse contains zero or more ProxyMappings.
|
|
// No mappings may be sent to test the liveness of the Proxy.
|
|
// Mappings that are sent should be interpreted by the Proxy appropriately.
|
|
type GetMappingUpdateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mapping []*ProxyMapping `protobuf:"bytes,1,rep,name=mapping,proto3" json:"mapping,omitempty"`
|
|
// initial_sync_complete is set on the last message of the initial snapshot.
|
|
// The proxy uses this to signal that startup is complete.
|
|
InitialSyncComplete bool `protobuf:"varint,2,opt,name=initial_sync_complete,json=initialSyncComplete,proto3" json:"initial_sync_complete,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMappingUpdateResponse) Reset() {
|
|
*x = GetMappingUpdateResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMappingUpdateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMappingUpdateResponse) ProtoMessage() {}
|
|
|
|
func (x *GetMappingUpdateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 GetMappingUpdateResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetMappingUpdateResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetMappingUpdateResponse) GetMapping() []*ProxyMapping {
|
|
if x != nil {
|
|
return x.Mapping
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetMappingUpdateResponse) GetInitialSyncComplete() bool {
|
|
if x != nil {
|
|
return x.InitialSyncComplete
|
|
}
|
|
return false
|
|
}
|
|
|
|
type PathTargetOptions struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SkipTlsVerify bool `protobuf:"varint,1,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"`
|
|
RequestTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"`
|
|
PathRewrite PathRewriteMode `protobuf:"varint,3,opt,name=path_rewrite,json=pathRewrite,proto3,enum=management.PathRewriteMode" json:"path_rewrite,omitempty"`
|
|
CustomHeaders map[string]string `protobuf:"bytes,4,rep,name=custom_headers,json=customHeaders,proto3" json:"custom_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// Send PROXY protocol v2 header to this backend.
|
|
ProxyProtocol bool `protobuf:"varint,5,opt,name=proxy_protocol,json=proxyProtocol,proto3" json:"proxy_protocol,omitempty"`
|
|
// Idle timeout before a UDP session is reaped.
|
|
SessionIdleTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=session_idle_timeout,json=sessionIdleTimeout,proto3" json:"session_idle_timeout,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PathTargetOptions) Reset() {
|
|
*x = PathTargetOptions{}
|
|
mi := &file_proxy_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PathTargetOptions) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PathTargetOptions) ProtoMessage() {}
|
|
|
|
func (x *PathTargetOptions) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 PathTargetOptions.ProtoReflect.Descriptor instead.
|
|
func (*PathTargetOptions) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetSkipTlsVerify() bool {
|
|
if x != nil {
|
|
return x.SkipTlsVerify
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetRequestTimeout() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.RequestTimeout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetPathRewrite() PathRewriteMode {
|
|
if x != nil {
|
|
return x.PathRewrite
|
|
}
|
|
return PathRewriteMode_PATH_REWRITE_DEFAULT
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetCustomHeaders() map[string]string {
|
|
if x != nil {
|
|
return x.CustomHeaders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetProxyProtocol() bool {
|
|
if x != nil {
|
|
return x.ProxyProtocol
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PathTargetOptions) GetSessionIdleTimeout() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.SessionIdleTimeout
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PathMapping struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
|
|
Options *PathTargetOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PathMapping) Reset() {
|
|
*x = PathMapping{}
|
|
mi := &file_proxy_service_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PathMapping) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PathMapping) ProtoMessage() {}
|
|
|
|
func (x *PathMapping) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 PathMapping.ProtoReflect.Descriptor instead.
|
|
func (*PathMapping) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *PathMapping) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PathMapping) GetTarget() string {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PathMapping) GetOptions() *PathTargetOptions {
|
|
if x != nil {
|
|
return x.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type HeaderAuth struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Header name to check, e.g. "Authorization", "X-API-Key".
|
|
Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
|
// argon2id hash of the expected full header value.
|
|
HashedValue string `protobuf:"bytes,2,opt,name=hashed_value,json=hashedValue,proto3" json:"hashed_value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HeaderAuth) Reset() {
|
|
*x = HeaderAuth{}
|
|
mi := &file_proxy_service_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HeaderAuth) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeaderAuth) ProtoMessage() {}
|
|
|
|
func (x *HeaderAuth) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 HeaderAuth.ProtoReflect.Descriptor instead.
|
|
func (*HeaderAuth) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *HeaderAuth) GetHeader() string {
|
|
if x != nil {
|
|
return x.Header
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HeaderAuth) GetHashedValue() string {
|
|
if x != nil {
|
|
return x.HashedValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Authentication struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SessionKey string `protobuf:"bytes,1,opt,name=session_key,json=sessionKey,proto3" json:"session_key,omitempty"`
|
|
MaxSessionAgeSeconds int64 `protobuf:"varint,2,opt,name=max_session_age_seconds,json=maxSessionAgeSeconds,proto3" json:"max_session_age_seconds,omitempty"`
|
|
Password bool `protobuf:"varint,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
Pin bool `protobuf:"varint,4,opt,name=pin,proto3" json:"pin,omitempty"`
|
|
Oidc bool `protobuf:"varint,5,opt,name=oidc,proto3" json:"oidc,omitempty"`
|
|
HeaderAuths []*HeaderAuth `protobuf:"bytes,6,rep,name=header_auths,json=headerAuths,proto3" json:"header_auths,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Authentication) Reset() {
|
|
*x = Authentication{}
|
|
mi := &file_proxy_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Authentication) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Authentication) ProtoMessage() {}
|
|
|
|
func (x *Authentication) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 Authentication.ProtoReflect.Descriptor instead.
|
|
func (*Authentication) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *Authentication) GetSessionKey() string {
|
|
if x != nil {
|
|
return x.SessionKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Authentication) GetMaxSessionAgeSeconds() int64 {
|
|
if x != nil {
|
|
return x.MaxSessionAgeSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Authentication) GetPassword() bool {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Authentication) GetPin() bool {
|
|
if x != nil {
|
|
return x.Pin
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Authentication) GetOidc() bool {
|
|
if x != nil {
|
|
return x.Oidc
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Authentication) GetHeaderAuths() []*HeaderAuth {
|
|
if x != nil {
|
|
return x.HeaderAuths
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AccessRestrictions struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AllowedCidrs []string `protobuf:"bytes,1,rep,name=allowed_cidrs,json=allowedCidrs,proto3" json:"allowed_cidrs,omitempty"`
|
|
BlockedCidrs []string `protobuf:"bytes,2,rep,name=blocked_cidrs,json=blockedCidrs,proto3" json:"blocked_cidrs,omitempty"`
|
|
AllowedCountries []string `protobuf:"bytes,3,rep,name=allowed_countries,json=allowedCountries,proto3" json:"allowed_countries,omitempty"`
|
|
BlockedCountries []string `protobuf:"bytes,4,rep,name=blocked_countries,json=blockedCountries,proto3" json:"blocked_countries,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccessRestrictions) Reset() {
|
|
*x = AccessRestrictions{}
|
|
mi := &file_proxy_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccessRestrictions) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccessRestrictions) ProtoMessage() {}
|
|
|
|
func (x *AccessRestrictions) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 AccessRestrictions.ProtoReflect.Descriptor instead.
|
|
func (*AccessRestrictions) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *AccessRestrictions) GetAllowedCidrs() []string {
|
|
if x != nil {
|
|
return x.AllowedCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccessRestrictions) GetBlockedCidrs() []string {
|
|
if x != nil {
|
|
return x.BlockedCidrs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccessRestrictions) GetAllowedCountries() []string {
|
|
if x != nil {
|
|
return x.AllowedCountries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccessRestrictions) GetBlockedCountries() []string {
|
|
if x != nil {
|
|
return x.BlockedCountries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProxyMapping struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type ProxyMappingUpdateType `protobuf:"varint,1,opt,name=type,proto3,enum=management.ProxyMappingUpdateType" json:"type,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
AccountId string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
Path []*PathMapping `protobuf:"bytes,5,rep,name=path,proto3" json:"path,omitempty"`
|
|
AuthToken string `protobuf:"bytes,6,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
|
|
Auth *Authentication `protobuf:"bytes,7,opt,name=auth,proto3" json:"auth,omitempty"`
|
|
// When true, the original Host header from the client request is passed
|
|
// through to the backend instead of being rewritten to the backend's address.
|
|
PassHostHeader bool `protobuf:"varint,8,opt,name=pass_host_header,json=passHostHeader,proto3" json:"pass_host_header,omitempty"`
|
|
// When true, Location headers in backend responses are rewritten to replace
|
|
// the backend address with the public-facing domain.
|
|
RewriteRedirects bool `protobuf:"varint,9,opt,name=rewrite_redirects,json=rewriteRedirects,proto3" json:"rewrite_redirects,omitempty"`
|
|
// Service mode: "http", "tcp", "udp", or "tls".
|
|
Mode string `protobuf:"bytes,10,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
// For L4/TLS: the port the proxy listens on.
|
|
ListenPort int32 `protobuf:"varint,11,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"`
|
|
AccessRestrictions *AccessRestrictions `protobuf:"bytes,12,opt,name=access_restrictions,json=accessRestrictions,proto3" json:"access_restrictions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ProxyMapping) Reset() {
|
|
*x = ProxyMapping{}
|
|
mi := &file_proxy_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ProxyMapping) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ProxyMapping) ProtoMessage() {}
|
|
|
|
func (x *ProxyMapping) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 ProxyMapping.ProtoReflect.Descriptor instead.
|
|
func (*ProxyMapping) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ProxyMapping) GetType() ProxyMappingUpdateType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ProxyMappingUpdateType_UPDATE_TYPE_CREATED
|
|
}
|
|
|
|
func (x *ProxyMapping) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ProxyMapping) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ProxyMapping) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ProxyMapping) GetPath() []*PathMapping {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ProxyMapping) GetAuthToken() string {
|
|
if x != nil {
|
|
return x.AuthToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ProxyMapping) GetAuth() *Authentication {
|
|
if x != nil {
|
|
return x.Auth
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ProxyMapping) GetPassHostHeader() bool {
|
|
if x != nil {
|
|
return x.PassHostHeader
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ProxyMapping) GetRewriteRedirects() bool {
|
|
if x != nil {
|
|
return x.RewriteRedirects
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ProxyMapping) GetMode() string {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ProxyMapping) GetListenPort() int32 {
|
|
if x != nil {
|
|
return x.ListenPort
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ProxyMapping) GetAccessRestrictions() *AccessRestrictions {
|
|
if x != nil {
|
|
return x.AccessRestrictions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SendAccessLogRequest consists of one or more AccessLogs from a Proxy.
|
|
type SendAccessLogRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Log *AccessLog `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendAccessLogRequest) Reset() {
|
|
*x = SendAccessLogRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendAccessLogRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendAccessLogRequest) ProtoMessage() {}
|
|
|
|
func (x *SendAccessLogRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 SendAccessLogRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendAccessLogRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SendAccessLogRequest) GetLog() *AccessLog {
|
|
if x != nil {
|
|
return x.Log
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// SendAccessLogResponse is intentionally empty to allow for future expansion.
|
|
type SendAccessLogResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendAccessLogResponse) Reset() {
|
|
*x = SendAccessLogResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendAccessLogResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendAccessLogResponse) ProtoMessage() {}
|
|
|
|
func (x *SendAccessLogResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 SendAccessLogResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendAccessLogResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
type AccessLog struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
LogId string `protobuf:"bytes,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
|
|
AccountId string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
ServiceId string `protobuf:"bytes,4,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
|
|
Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
|
|
Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
|
|
DurationMs int64 `protobuf:"varint,7,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
|
|
Method string `protobuf:"bytes,8,opt,name=method,proto3" json:"method,omitempty"`
|
|
ResponseCode int32 `protobuf:"varint,9,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"`
|
|
SourceIp string `protobuf:"bytes,10,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`
|
|
AuthMechanism string `protobuf:"bytes,11,opt,name=auth_mechanism,json=authMechanism,proto3" json:"auth_mechanism,omitempty"`
|
|
UserId string `protobuf:"bytes,12,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
AuthSuccess bool `protobuf:"varint,13,opt,name=auth_success,json=authSuccess,proto3" json:"auth_success,omitempty"`
|
|
BytesUpload int64 `protobuf:"varint,14,opt,name=bytes_upload,json=bytesUpload,proto3" json:"bytes_upload,omitempty"`
|
|
BytesDownload int64 `protobuf:"varint,15,opt,name=bytes_download,json=bytesDownload,proto3" json:"bytes_download,omitempty"`
|
|
Protocol string `protobuf:"bytes,16,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccessLog) Reset() {
|
|
*x = AccessLog{}
|
|
mi := &file_proxy_service_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccessLog) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccessLog) ProtoMessage() {}
|
|
|
|
func (x *AccessLog) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 AccessLog.ProtoReflect.Descriptor instead.
|
|
func (*AccessLog) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *AccessLog) GetTimestamp() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AccessLog) GetLogId() string {
|
|
if x != nil {
|
|
return x.LogId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetServiceId() string {
|
|
if x != nil {
|
|
return x.ServiceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetHost() string {
|
|
if x != nil {
|
|
return x.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetDurationMs() int64 {
|
|
if x != nil {
|
|
return x.DurationMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccessLog) GetMethod() string {
|
|
if x != nil {
|
|
return x.Method
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetResponseCode() int32 {
|
|
if x != nil {
|
|
return x.ResponseCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccessLog) GetSourceIp() string {
|
|
if x != nil {
|
|
return x.SourceIp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetAuthMechanism() string {
|
|
if x != nil {
|
|
return x.AuthMechanism
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccessLog) GetAuthSuccess() bool {
|
|
if x != nil {
|
|
return x.AuthSuccess
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AccessLog) GetBytesUpload() int64 {
|
|
if x != nil {
|
|
return x.BytesUpload
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccessLog) GetBytesDownload() int64 {
|
|
if x != nil {
|
|
return x.BytesDownload
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccessLog) GetProtocol() string {
|
|
if x != nil {
|
|
return x.Protocol
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AuthenticateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
// Types that are valid to be assigned to Request:
|
|
//
|
|
// *AuthenticateRequest_Password
|
|
// *AuthenticateRequest_Pin
|
|
// *AuthenticateRequest_HeaderAuth
|
|
Request isAuthenticateRequest_Request `protobuf_oneof:"request"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticateRequest) Reset() {
|
|
*x = AuthenticateRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthenticateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthenticateRequest) ProtoMessage() {}
|
|
|
|
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 AuthenticateRequest.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticateRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetRequest() isAuthenticateRequest_Request {
|
|
if x != nil {
|
|
return x.Request
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetPassword() *PasswordRequest {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*AuthenticateRequest_Password); ok {
|
|
return x.Password
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetPin() *PinRequest {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*AuthenticateRequest_Pin); ok {
|
|
return x.Pin
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticateRequest) GetHeaderAuth() *HeaderAuthRequest {
|
|
if x != nil {
|
|
if x, ok := x.Request.(*AuthenticateRequest_HeaderAuth); ok {
|
|
return x.HeaderAuth
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isAuthenticateRequest_Request interface {
|
|
isAuthenticateRequest_Request()
|
|
}
|
|
|
|
type AuthenticateRequest_Password struct {
|
|
Password *PasswordRequest `protobuf:"bytes,3,opt,name=password,proto3,oneof"`
|
|
}
|
|
|
|
type AuthenticateRequest_Pin struct {
|
|
Pin *PinRequest `protobuf:"bytes,4,opt,name=pin,proto3,oneof"`
|
|
}
|
|
|
|
type AuthenticateRequest_HeaderAuth struct {
|
|
HeaderAuth *HeaderAuthRequest `protobuf:"bytes,5,opt,name=header_auth,json=headerAuth,proto3,oneof"`
|
|
}
|
|
|
|
func (*AuthenticateRequest_Password) isAuthenticateRequest_Request() {}
|
|
|
|
func (*AuthenticateRequest_Pin) isAuthenticateRequest_Request() {}
|
|
|
|
func (*AuthenticateRequest_HeaderAuth) isAuthenticateRequest_Request() {}
|
|
|
|
type HeaderAuthRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HeaderValue string `protobuf:"bytes,1,opt,name=header_value,json=headerValue,proto3" json:"header_value,omitempty"`
|
|
HeaderName string `protobuf:"bytes,2,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HeaderAuthRequest) Reset() {
|
|
*x = HeaderAuthRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HeaderAuthRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HeaderAuthRequest) ProtoMessage() {}
|
|
|
|
func (x *HeaderAuthRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 HeaderAuthRequest.ProtoReflect.Descriptor instead.
|
|
func (*HeaderAuthRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *HeaderAuthRequest) GetHeaderValue() string {
|
|
if x != nil {
|
|
return x.HeaderValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HeaderAuthRequest) GetHeaderName() string {
|
|
if x != nil {
|
|
return x.HeaderName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PasswordRequest) Reset() {
|
|
*x = PasswordRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *PasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 PasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*PasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *PasswordRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PinRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PinRequest) Reset() {
|
|
*x = PinRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PinRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PinRequest) ProtoMessage() {}
|
|
|
|
func (x *PinRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 PinRequest.ProtoReflect.Descriptor instead.
|
|
func (*PinRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *PinRequest) GetPin() string {
|
|
if x != nil {
|
|
return x.Pin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AuthenticateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticateResponse) Reset() {
|
|
*x = AuthenticateResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthenticateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthenticateResponse) ProtoMessage() {}
|
|
|
|
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 AuthenticateResponse.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticateResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *AuthenticateResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AuthenticateResponse) GetSessionToken() string {
|
|
if x != nil {
|
|
return x.SessionToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// SendStatusUpdateRequest is sent by the proxy to update its status
|
|
type SendStatusUpdateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
|
|
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
Status ProxyStatus `protobuf:"varint,3,opt,name=status,proto3,enum=management.ProxyStatus" json:"status,omitempty"`
|
|
CertificateIssued bool `protobuf:"varint,4,opt,name=certificate_issued,json=certificateIssued,proto3" json:"certificate_issued,omitempty"`
|
|
ErrorMessage *string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) Reset() {
|
|
*x = SendStatusUpdateRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendStatusUpdateRequest) ProtoMessage() {}
|
|
|
|
func (x *SendStatusUpdateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 SendStatusUpdateRequest.ProtoReflect.Descriptor instead.
|
|
func (*SendStatusUpdateRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) GetServiceId() string {
|
|
if x != nil {
|
|
return x.ServiceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) GetStatus() ProxyStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ProxyStatus_PROXY_STATUS_PENDING
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) GetCertificateIssued() bool {
|
|
if x != nil {
|
|
return x.CertificateIssued
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SendStatusUpdateRequest) GetErrorMessage() string {
|
|
if x != nil && x.ErrorMessage != nil {
|
|
return *x.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// SendStatusUpdateResponse is intentionally empty to allow for future expansion
|
|
type SendStatusUpdateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SendStatusUpdateResponse) Reset() {
|
|
*x = SendStatusUpdateResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SendStatusUpdateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SendStatusUpdateResponse) ProtoMessage() {}
|
|
|
|
func (x *SendStatusUpdateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 SendStatusUpdateResponse.ProtoReflect.Descriptor instead.
|
|
func (*SendStatusUpdateResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
// CreateProxyPeerRequest is sent by the proxy to create a peer connection
|
|
// The token is a one-time authentication token sent via ProxyMapping
|
|
type CreateProxyPeerRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
|
|
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
|
|
WireguardPublicKey string `protobuf:"bytes,4,opt,name=wireguard_public_key,json=wireguardPublicKey,proto3" json:"wireguard_public_key,omitempty"`
|
|
Cluster string `protobuf:"bytes,5,opt,name=cluster,proto3" json:"cluster,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) Reset() {
|
|
*x = CreateProxyPeerRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateProxyPeerRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateProxyPeerRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 CreateProxyPeerRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateProxyPeerRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) GetServiceId() string {
|
|
if x != nil {
|
|
return x.ServiceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) GetWireguardPublicKey() string {
|
|
if x != nil {
|
|
return x.WireguardPublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateProxyPeerRequest) GetCluster() string {
|
|
if x != nil {
|
|
return x.Cluster
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CreateProxyPeerResponse contains the result of peer creation
|
|
type CreateProxyPeerResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ErrorMessage *string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateProxyPeerResponse) Reset() {
|
|
*x = CreateProxyPeerResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateProxyPeerResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateProxyPeerResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateProxyPeerResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 CreateProxyPeerResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateProxyPeerResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *CreateProxyPeerResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateProxyPeerResponse) GetErrorMessage() string {
|
|
if x != nil && x.ErrorMessage != nil {
|
|
return *x.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetOIDCURLRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
RedirectUrl string `protobuf:"bytes,3,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOIDCURLRequest) Reset() {
|
|
*x = GetOIDCURLRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOIDCURLRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOIDCURLRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOIDCURLRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 GetOIDCURLRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOIDCURLRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *GetOIDCURLRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetOIDCURLRequest) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetOIDCURLRequest) GetRedirectUrl() string {
|
|
if x != nil {
|
|
return x.RedirectUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetOIDCURLResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOIDCURLResponse) Reset() {
|
|
*x = GetOIDCURLResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOIDCURLResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOIDCURLResponse) ProtoMessage() {}
|
|
|
|
func (x *GetOIDCURLResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 GetOIDCURLResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetOIDCURLResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *GetOIDCURLResponse) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ValidateSessionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
SessionToken string `protobuf:"bytes,2,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ValidateSessionRequest) Reset() {
|
|
*x = ValidateSessionRequest{}
|
|
mi := &file_proxy_service_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ValidateSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ValidateSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *ValidateSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 ValidateSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*ValidateSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *ValidateSessionRequest) GetDomain() string {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ValidateSessionRequest) GetSessionToken() string {
|
|
if x != nil {
|
|
return x.SessionToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ValidateSessionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserEmail string `protobuf:"bytes,3,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
|
|
DeniedReason string `protobuf:"bytes,4,opt,name=denied_reason,json=deniedReason,proto3" json:"denied_reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) Reset() {
|
|
*x = ValidateSessionResponse{}
|
|
mi := &file_proxy_service_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ValidateSessionResponse) ProtoMessage() {}
|
|
|
|
func (x *ValidateSessionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proxy_service_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 ValidateSessionResponse.ProtoReflect.Descriptor instead.
|
|
func (*ValidateSessionResponse) Descriptor() ([]byte, []int) {
|
|
return file_proxy_service_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) GetValid() bool {
|
|
if x != nil {
|
|
return x.Valid
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) GetUserEmail() string {
|
|
if x != nil {
|
|
return x.UserEmail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ValidateSessionResponse) GetDeniedReason() string {
|
|
if x != nil {
|
|
return x.DeniedReason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_proxy_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_proxy_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13proxy_service.proto\x12\n" +
|
|
"management\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n" +
|
|
"\x11ProxyCapabilities\x127\n" +
|
|
"\x15supports_custom_ports\x18\x01 \x01(\bH\x00R\x13supportsCustomPorts\x88\x01\x01\x120\n" +
|
|
"\x11require_subdomain\x18\x02 \x01(\bH\x01R\x10requireSubdomain\x88\x01\x01B\x18\n" +
|
|
"\x16_supports_custom_portsB\x14\n" +
|
|
"\x12_require_subdomain\"\xe6\x01\n" +
|
|
"\x17GetMappingUpdateRequest\x12\x19\n" +
|
|
"\bproxy_id\x18\x01 \x01(\tR\aproxyId\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\tR\aversion\x129\n" +
|
|
"\n" +
|
|
"started_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12\x18\n" +
|
|
"\aaddress\x18\x04 \x01(\tR\aaddress\x12A\n" +
|
|
"\fcapabilities\x18\x05 \x01(\v2\x1d.management.ProxyCapabilitiesR\fcapabilities\"\x82\x01\n" +
|
|
"\x18GetMappingUpdateResponse\x122\n" +
|
|
"\amapping\x18\x01 \x03(\v2\x18.management.ProxyMappingR\amapping\x122\n" +
|
|
"\x15initial_sync_complete\x18\x02 \x01(\bR\x13initialSyncComplete\"\xce\x03\n" +
|
|
"\x11PathTargetOptions\x12&\n" +
|
|
"\x0fskip_tls_verify\x18\x01 \x01(\bR\rskipTlsVerify\x12B\n" +
|
|
"\x0frequest_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x0erequestTimeout\x12>\n" +
|
|
"\fpath_rewrite\x18\x03 \x01(\x0e2\x1b.management.PathRewriteModeR\vpathRewrite\x12W\n" +
|
|
"\x0ecustom_headers\x18\x04 \x03(\v20.management.PathTargetOptions.CustomHeadersEntryR\rcustomHeaders\x12%\n" +
|
|
"\x0eproxy_protocol\x18\x05 \x01(\bR\rproxyProtocol\x12K\n" +
|
|
"\x14session_idle_timeout\x18\x06 \x01(\v2\x19.google.protobuf.DurationR\x12sessionIdleTimeout\x1a@\n" +
|
|
"\x12CustomHeadersEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"r\n" +
|
|
"\vPathMapping\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\x12\x16\n" +
|
|
"\x06target\x18\x02 \x01(\tR\x06target\x127\n" +
|
|
"\aoptions\x18\x03 \x01(\v2\x1d.management.PathTargetOptionsR\aoptions\"G\n" +
|
|
"\n" +
|
|
"HeaderAuth\x12\x16\n" +
|
|
"\x06header\x18\x01 \x01(\tR\x06header\x12!\n" +
|
|
"\fhashed_value\x18\x02 \x01(\tR\vhashedValue\"\xe5\x01\n" +
|
|
"\x0eAuthentication\x12\x1f\n" +
|
|
"\vsession_key\x18\x01 \x01(\tR\n" +
|
|
"sessionKey\x125\n" +
|
|
"\x17max_session_age_seconds\x18\x02 \x01(\x03R\x14maxSessionAgeSeconds\x12\x1a\n" +
|
|
"\bpassword\x18\x03 \x01(\bR\bpassword\x12\x10\n" +
|
|
"\x03pin\x18\x04 \x01(\bR\x03pin\x12\x12\n" +
|
|
"\x04oidc\x18\x05 \x01(\bR\x04oidc\x129\n" +
|
|
"\fheader_auths\x18\x06 \x03(\v2\x16.management.HeaderAuthR\vheaderAuths\"\xb8\x01\n" +
|
|
"\x12AccessRestrictions\x12#\n" +
|
|
"\rallowed_cidrs\x18\x01 \x03(\tR\fallowedCidrs\x12#\n" +
|
|
"\rblocked_cidrs\x18\x02 \x03(\tR\fblockedCidrs\x12+\n" +
|
|
"\x11allowed_countries\x18\x03 \x03(\tR\x10allowedCountries\x12+\n" +
|
|
"\x11blocked_countries\x18\x04 \x03(\tR\x10blockedCountries\"\xe6\x03\n" +
|
|
"\fProxyMapping\x126\n" +
|
|
"\x04type\x18\x01 \x01(\x0e2\".management.ProxyMappingUpdateTypeR\x04type\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\tR\x02id\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x03 \x01(\tR\taccountId\x12\x16\n" +
|
|
"\x06domain\x18\x04 \x01(\tR\x06domain\x12+\n" +
|
|
"\x04path\x18\x05 \x03(\v2\x17.management.PathMappingR\x04path\x12\x1d\n" +
|
|
"\n" +
|
|
"auth_token\x18\x06 \x01(\tR\tauthToken\x12.\n" +
|
|
"\x04auth\x18\a \x01(\v2\x1a.management.AuthenticationR\x04auth\x12(\n" +
|
|
"\x10pass_host_header\x18\b \x01(\bR\x0epassHostHeader\x12+\n" +
|
|
"\x11rewrite_redirects\x18\t \x01(\bR\x10rewriteRedirects\x12\x12\n" +
|
|
"\x04mode\x18\n" +
|
|
" \x01(\tR\x04mode\x12\x1f\n" +
|
|
"\vlisten_port\x18\v \x01(\x05R\n" +
|
|
"listenPort\x12O\n" +
|
|
"\x13access_restrictions\x18\f \x01(\v2\x1e.management.AccessRestrictionsR\x12accessRestrictions\"?\n" +
|
|
"\x14SendAccessLogRequest\x12'\n" +
|
|
"\x03log\x18\x01 \x01(\v2\x15.management.AccessLogR\x03log\"\x17\n" +
|
|
"\x15SendAccessLogResponse\"\x86\x04\n" +
|
|
"\tAccessLog\x128\n" +
|
|
"\ttimestamp\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x15\n" +
|
|
"\x06log_id\x18\x02 \x01(\tR\x05logId\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x03 \x01(\tR\taccountId\x12\x1d\n" +
|
|
"\n" +
|
|
"service_id\x18\x04 \x01(\tR\tserviceId\x12\x12\n" +
|
|
"\x04host\x18\x05 \x01(\tR\x04host\x12\x12\n" +
|
|
"\x04path\x18\x06 \x01(\tR\x04path\x12\x1f\n" +
|
|
"\vduration_ms\x18\a \x01(\x03R\n" +
|
|
"durationMs\x12\x16\n" +
|
|
"\x06method\x18\b \x01(\tR\x06method\x12#\n" +
|
|
"\rresponse_code\x18\t \x01(\x05R\fresponseCode\x12\x1b\n" +
|
|
"\tsource_ip\x18\n" +
|
|
" \x01(\tR\bsourceIp\x12%\n" +
|
|
"\x0eauth_mechanism\x18\v \x01(\tR\rauthMechanism\x12\x17\n" +
|
|
"\auser_id\x18\f \x01(\tR\x06userId\x12!\n" +
|
|
"\fauth_success\x18\r \x01(\bR\vauthSuccess\x12!\n" +
|
|
"\fbytes_upload\x18\x0e \x01(\x03R\vbytesUpload\x12%\n" +
|
|
"\x0ebytes_download\x18\x0f \x01(\x03R\rbytesDownload\x12\x1a\n" +
|
|
"\bprotocol\x18\x10 \x01(\tR\bprotocol\"\xf8\x01\n" +
|
|
"\x13AuthenticateRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x02 \x01(\tR\taccountId\x129\n" +
|
|
"\bpassword\x18\x03 \x01(\v2\x1b.management.PasswordRequestH\x00R\bpassword\x12*\n" +
|
|
"\x03pin\x18\x04 \x01(\v2\x16.management.PinRequestH\x00R\x03pin\x12@\n" +
|
|
"\vheader_auth\x18\x05 \x01(\v2\x1d.management.HeaderAuthRequestH\x00R\n" +
|
|
"headerAuthB\t\n" +
|
|
"\arequest\"W\n" +
|
|
"\x11HeaderAuthRequest\x12!\n" +
|
|
"\fheader_value\x18\x01 \x01(\tR\vheaderValue\x12\x1f\n" +
|
|
"\vheader_name\x18\x02 \x01(\tR\n" +
|
|
"headerName\"-\n" +
|
|
"\x0fPasswordRequest\x12\x1a\n" +
|
|
"\bpassword\x18\x01 \x01(\tR\bpassword\"\x1e\n" +
|
|
"\n" +
|
|
"PinRequest\x12\x10\n" +
|
|
"\x03pin\x18\x01 \x01(\tR\x03pin\"U\n" +
|
|
"\x14AuthenticateResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12#\n" +
|
|
"\rsession_token\x18\x02 \x01(\tR\fsessionToken\"\xf3\x01\n" +
|
|
"\x17SendStatusUpdateRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"service_id\x18\x01 \x01(\tR\tserviceId\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x02 \x01(\tR\taccountId\x12/\n" +
|
|
"\x06status\x18\x03 \x01(\x0e2\x17.management.ProxyStatusR\x06status\x12-\n" +
|
|
"\x12certificate_issued\x18\x04 \x01(\bR\x11certificateIssued\x12(\n" +
|
|
"\rerror_message\x18\x05 \x01(\tH\x00R\ferrorMessage\x88\x01\x01B\x10\n" +
|
|
"\x0e_error_message\"\x1a\n" +
|
|
"\x18SendStatusUpdateResponse\"\xb8\x01\n" +
|
|
"\x16CreateProxyPeerRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"service_id\x18\x01 \x01(\tR\tserviceId\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x02 \x01(\tR\taccountId\x12\x14\n" +
|
|
"\x05token\x18\x03 \x01(\tR\x05token\x120\n" +
|
|
"\x14wireguard_public_key\x18\x04 \x01(\tR\x12wireguardPublicKey\x12\x18\n" +
|
|
"\acluster\x18\x05 \x01(\tR\acluster\"o\n" +
|
|
"\x17CreateProxyPeerResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12(\n" +
|
|
"\rerror_message\x18\x02 \x01(\tH\x00R\ferrorMessage\x88\x01\x01B\x10\n" +
|
|
"\x0e_error_message\"e\n" +
|
|
"\x11GetOIDCURLRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x02 \x01(\tR\taccountId\x12!\n" +
|
|
"\fredirect_url\x18\x03 \x01(\tR\vredirectUrl\"&\n" +
|
|
"\x12GetOIDCURLResponse\x12\x10\n" +
|
|
"\x03url\x18\x01 \x01(\tR\x03url\"U\n" +
|
|
"\x16ValidateSessionRequest\x12\x16\n" +
|
|
"\x06domain\x18\x01 \x01(\tR\x06domain\x12#\n" +
|
|
"\rsession_token\x18\x02 \x01(\tR\fsessionToken\"\x8c\x01\n" +
|
|
"\x17ValidateSessionResponse\x12\x14\n" +
|
|
"\x05valid\x18\x01 \x01(\bR\x05valid\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_email\x18\x03 \x01(\tR\tuserEmail\x12#\n" +
|
|
"\rdenied_reason\x18\x04 \x01(\tR\fdeniedReason*d\n" +
|
|
"\x16ProxyMappingUpdateType\x12\x17\n" +
|
|
"\x13UPDATE_TYPE_CREATED\x10\x00\x12\x18\n" +
|
|
"\x14UPDATE_TYPE_MODIFIED\x10\x01\x12\x17\n" +
|
|
"\x13UPDATE_TYPE_REMOVED\x10\x02*F\n" +
|
|
"\x0fPathRewriteMode\x12\x18\n" +
|
|
"\x14PATH_REWRITE_DEFAULT\x10\x00\x12\x19\n" +
|
|
"\x15PATH_REWRITE_PRESERVE\x10\x01*\xc8\x01\n" +
|
|
"\vProxyStatus\x12\x18\n" +
|
|
"\x14PROXY_STATUS_PENDING\x10\x00\x12\x17\n" +
|
|
"\x13PROXY_STATUS_ACTIVE\x10\x01\x12#\n" +
|
|
"\x1fPROXY_STATUS_TUNNEL_NOT_CREATED\x10\x02\x12$\n" +
|
|
" PROXY_STATUS_CERTIFICATE_PENDING\x10\x03\x12#\n" +
|
|
"\x1fPROXY_STATUS_CERTIFICATE_FAILED\x10\x04\x12\x16\n" +
|
|
"\x12PROXY_STATUS_ERROR\x10\x052\xfc\x04\n" +
|
|
"\fProxyService\x12_\n" +
|
|
"\x10GetMappingUpdate\x12#.management.GetMappingUpdateRequest\x1a$.management.GetMappingUpdateResponse0\x01\x12T\n" +
|
|
"\rSendAccessLog\x12 .management.SendAccessLogRequest\x1a!.management.SendAccessLogResponse\x12Q\n" +
|
|
"\fAuthenticate\x12\x1f.management.AuthenticateRequest\x1a .management.AuthenticateResponse\x12]\n" +
|
|
"\x10SendStatusUpdate\x12#.management.SendStatusUpdateRequest\x1a$.management.SendStatusUpdateResponse\x12Z\n" +
|
|
"\x0fCreateProxyPeer\x12\".management.CreateProxyPeerRequest\x1a#.management.CreateProxyPeerResponse\x12K\n" +
|
|
"\n" +
|
|
"GetOIDCURL\x12\x1d.management.GetOIDCURLRequest\x1a\x1e.management.GetOIDCURLResponse\x12Z\n" +
|
|
"\x0fValidateSession\x12\".management.ValidateSessionRequest\x1a#.management.ValidateSessionResponseB\bZ\x06/protob\x06proto3"
|
|
|
|
var (
|
|
file_proxy_service_proto_rawDescOnce sync.Once
|
|
file_proxy_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proxy_service_proto_rawDescGZIP() []byte {
|
|
file_proxy_service_proto_rawDescOnce.Do(func() {
|
|
file_proxy_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_service_proto_rawDesc), len(file_proxy_service_proto_rawDesc)))
|
|
})
|
|
return file_proxy_service_proto_rawDescData
|
|
}
|
|
|
|
var file_proxy_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
|
var file_proxy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
var file_proxy_service_proto_goTypes = []any{
|
|
(ProxyMappingUpdateType)(0), // 0: management.ProxyMappingUpdateType
|
|
(PathRewriteMode)(0), // 1: management.PathRewriteMode
|
|
(ProxyStatus)(0), // 2: management.ProxyStatus
|
|
(*ProxyCapabilities)(nil), // 3: management.ProxyCapabilities
|
|
(*GetMappingUpdateRequest)(nil), // 4: management.GetMappingUpdateRequest
|
|
(*GetMappingUpdateResponse)(nil), // 5: management.GetMappingUpdateResponse
|
|
(*PathTargetOptions)(nil), // 6: management.PathTargetOptions
|
|
(*PathMapping)(nil), // 7: management.PathMapping
|
|
(*HeaderAuth)(nil), // 8: management.HeaderAuth
|
|
(*Authentication)(nil), // 9: management.Authentication
|
|
(*AccessRestrictions)(nil), // 10: management.AccessRestrictions
|
|
(*ProxyMapping)(nil), // 11: management.ProxyMapping
|
|
(*SendAccessLogRequest)(nil), // 12: management.SendAccessLogRequest
|
|
(*SendAccessLogResponse)(nil), // 13: management.SendAccessLogResponse
|
|
(*AccessLog)(nil), // 14: management.AccessLog
|
|
(*AuthenticateRequest)(nil), // 15: management.AuthenticateRequest
|
|
(*HeaderAuthRequest)(nil), // 16: management.HeaderAuthRequest
|
|
(*PasswordRequest)(nil), // 17: management.PasswordRequest
|
|
(*PinRequest)(nil), // 18: management.PinRequest
|
|
(*AuthenticateResponse)(nil), // 19: management.AuthenticateResponse
|
|
(*SendStatusUpdateRequest)(nil), // 20: management.SendStatusUpdateRequest
|
|
(*SendStatusUpdateResponse)(nil), // 21: management.SendStatusUpdateResponse
|
|
(*CreateProxyPeerRequest)(nil), // 22: management.CreateProxyPeerRequest
|
|
(*CreateProxyPeerResponse)(nil), // 23: management.CreateProxyPeerResponse
|
|
(*GetOIDCURLRequest)(nil), // 24: management.GetOIDCURLRequest
|
|
(*GetOIDCURLResponse)(nil), // 25: management.GetOIDCURLResponse
|
|
(*ValidateSessionRequest)(nil), // 26: management.ValidateSessionRequest
|
|
(*ValidateSessionResponse)(nil), // 27: management.ValidateSessionResponse
|
|
nil, // 28: management.PathTargetOptions.CustomHeadersEntry
|
|
(*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp
|
|
(*durationpb.Duration)(nil), // 30: google.protobuf.Duration
|
|
}
|
|
var file_proxy_service_proto_depIdxs = []int32{
|
|
29, // 0: management.GetMappingUpdateRequest.started_at:type_name -> google.protobuf.Timestamp
|
|
3, // 1: management.GetMappingUpdateRequest.capabilities:type_name -> management.ProxyCapabilities
|
|
11, // 2: management.GetMappingUpdateResponse.mapping:type_name -> management.ProxyMapping
|
|
30, // 3: management.PathTargetOptions.request_timeout:type_name -> google.protobuf.Duration
|
|
1, // 4: management.PathTargetOptions.path_rewrite:type_name -> management.PathRewriteMode
|
|
28, // 5: management.PathTargetOptions.custom_headers:type_name -> management.PathTargetOptions.CustomHeadersEntry
|
|
30, // 6: management.PathTargetOptions.session_idle_timeout:type_name -> google.protobuf.Duration
|
|
6, // 7: management.PathMapping.options:type_name -> management.PathTargetOptions
|
|
8, // 8: management.Authentication.header_auths:type_name -> management.HeaderAuth
|
|
0, // 9: management.ProxyMapping.type:type_name -> management.ProxyMappingUpdateType
|
|
7, // 10: management.ProxyMapping.path:type_name -> management.PathMapping
|
|
9, // 11: management.ProxyMapping.auth:type_name -> management.Authentication
|
|
10, // 12: management.ProxyMapping.access_restrictions:type_name -> management.AccessRestrictions
|
|
14, // 13: management.SendAccessLogRequest.log:type_name -> management.AccessLog
|
|
29, // 14: management.AccessLog.timestamp:type_name -> google.protobuf.Timestamp
|
|
17, // 15: management.AuthenticateRequest.password:type_name -> management.PasswordRequest
|
|
18, // 16: management.AuthenticateRequest.pin:type_name -> management.PinRequest
|
|
16, // 17: management.AuthenticateRequest.header_auth:type_name -> management.HeaderAuthRequest
|
|
2, // 18: management.SendStatusUpdateRequest.status:type_name -> management.ProxyStatus
|
|
4, // 19: management.ProxyService.GetMappingUpdate:input_type -> management.GetMappingUpdateRequest
|
|
12, // 20: management.ProxyService.SendAccessLog:input_type -> management.SendAccessLogRequest
|
|
15, // 21: management.ProxyService.Authenticate:input_type -> management.AuthenticateRequest
|
|
20, // 22: management.ProxyService.SendStatusUpdate:input_type -> management.SendStatusUpdateRequest
|
|
22, // 23: management.ProxyService.CreateProxyPeer:input_type -> management.CreateProxyPeerRequest
|
|
24, // 24: management.ProxyService.GetOIDCURL:input_type -> management.GetOIDCURLRequest
|
|
26, // 25: management.ProxyService.ValidateSession:input_type -> management.ValidateSessionRequest
|
|
5, // 26: management.ProxyService.GetMappingUpdate:output_type -> management.GetMappingUpdateResponse
|
|
13, // 27: management.ProxyService.SendAccessLog:output_type -> management.SendAccessLogResponse
|
|
19, // 28: management.ProxyService.Authenticate:output_type -> management.AuthenticateResponse
|
|
21, // 29: management.ProxyService.SendStatusUpdate:output_type -> management.SendStatusUpdateResponse
|
|
23, // 30: management.ProxyService.CreateProxyPeer:output_type -> management.CreateProxyPeerResponse
|
|
25, // 31: management.ProxyService.GetOIDCURL:output_type -> management.GetOIDCURLResponse
|
|
27, // 32: management.ProxyService.ValidateSession:output_type -> management.ValidateSessionResponse
|
|
26, // [26:33] is the sub-list for method output_type
|
|
19, // [19:26] is the sub-list for method input_type
|
|
19, // [19:19] is the sub-list for extension type_name
|
|
19, // [19:19] is the sub-list for extension extendee
|
|
0, // [0:19] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proxy_service_proto_init() }
|
|
func file_proxy_service_proto_init() {
|
|
if File_proxy_service_proto != nil {
|
|
return
|
|
}
|
|
file_proxy_service_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_proxy_service_proto_msgTypes[12].OneofWrappers = []any{
|
|
(*AuthenticateRequest_Password)(nil),
|
|
(*AuthenticateRequest_Pin)(nil),
|
|
(*AuthenticateRequest_HeaderAuth)(nil),
|
|
}
|
|
file_proxy_service_proto_msgTypes[17].OneofWrappers = []any{}
|
|
file_proxy_service_proto_msgTypes[20].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_service_proto_rawDesc), len(file_proxy_service_proto_rawDesc)),
|
|
NumEnums: 3,
|
|
NumMessages: 26,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proxy_service_proto_goTypes,
|
|
DependencyIndexes: file_proxy_service_proto_depIdxs,
|
|
EnumInfos: file_proxy_service_proto_enumTypes,
|
|
MessageInfos: file_proxy_service_proto_msgTypes,
|
|
}.Build()
|
|
File_proxy_service_proto = out.File
|
|
file_proxy_service_proto_goTypes = nil
|
|
file_proxy_service_proto_depIdxs = nil
|
|
}
|