mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
1844 lines
63 KiB
Go
1844 lines
63 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.30.0
|
|
// protoc v3.21.7
|
|
// source: api.proto
|
|
|
|
package cli
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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 ExportRequest_Format int32
|
|
|
|
const (
|
|
ExportRequest_EXPORT_FORMAT_UNDEFINED ExportRequest_Format = 0
|
|
ExportRequest_EXPORT_FORMAT_JSON_COMPACT ExportRequest_Format = 1
|
|
ExportRequest_EXPORT_FORMAT_JSON_PRETTY ExportRequest_Format = 2
|
|
)
|
|
|
|
// Enum value maps for ExportRequest_Format.
|
|
var (
|
|
ExportRequest_Format_name = map[int32]string{
|
|
0: "EXPORT_FORMAT_UNDEFINED",
|
|
1: "EXPORT_FORMAT_JSON_COMPACT",
|
|
2: "EXPORT_FORMAT_JSON_PRETTY",
|
|
}
|
|
ExportRequest_Format_value = map[string]int32{
|
|
"EXPORT_FORMAT_UNDEFINED": 0,
|
|
"EXPORT_FORMAT_JSON_COMPACT": 1,
|
|
"EXPORT_FORMAT_JSON_PRETTY": 2,
|
|
}
|
|
)
|
|
|
|
func (x ExportRequest_Format) Enum() *ExportRequest_Format {
|
|
p := new(ExportRequest_Format)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ExportRequest_Format) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ExportRequest_Format) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ExportRequest_Format) Type() protoreflect.EnumType {
|
|
return &file_api_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ExportRequest_Format) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ExportRequest_Format.Descriptor instead.
|
|
func (ExportRequest_Format) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{4, 0}
|
|
}
|
|
|
|
type ConnectionStatusUpdates_ConnectionStatus int32
|
|
|
|
const (
|
|
ConnectionStatusUpdates_CONNECTION_STATUS_UNDEFINED ConnectionStatusUpdates_ConnectionStatus = 0
|
|
ConnectionStatusUpdates_CONNECTION_STATUS_CONNECTING ConnectionStatusUpdates_ConnectionStatus = 1
|
|
ConnectionStatusUpdates_CONNECTION_STATUS_AUTH_REQUIRED ConnectionStatusUpdates_ConnectionStatus = 2
|
|
ConnectionStatusUpdates_CONNECTION_STATUS_CONNECTED ConnectionStatusUpdates_ConnectionStatus = 3
|
|
ConnectionStatusUpdates_CONNECTION_STATUS_DISCONNECTED ConnectionStatusUpdates_ConnectionStatus = 4
|
|
)
|
|
|
|
// Enum value maps for ConnectionStatusUpdates_ConnectionStatus.
|
|
var (
|
|
ConnectionStatusUpdates_ConnectionStatus_name = map[int32]string{
|
|
0: "CONNECTION_STATUS_UNDEFINED",
|
|
1: "CONNECTION_STATUS_CONNECTING",
|
|
2: "CONNECTION_STATUS_AUTH_REQUIRED",
|
|
3: "CONNECTION_STATUS_CONNECTED",
|
|
4: "CONNECTION_STATUS_DISCONNECTED",
|
|
}
|
|
ConnectionStatusUpdates_ConnectionStatus_value = map[string]int32{
|
|
"CONNECTION_STATUS_UNDEFINED": 0,
|
|
"CONNECTION_STATUS_CONNECTING": 1,
|
|
"CONNECTION_STATUS_AUTH_REQUIRED": 2,
|
|
"CONNECTION_STATUS_CONNECTED": 3,
|
|
"CONNECTION_STATUS_DISCONNECTED": 4,
|
|
}
|
|
)
|
|
|
|
func (x ConnectionStatusUpdates_ConnectionStatus) Enum() *ConnectionStatusUpdates_ConnectionStatus {
|
|
p := new(ConnectionStatusUpdates_ConnectionStatus)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ConnectionStatusUpdates_ConnectionStatus) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ConnectionStatusUpdates_ConnectionStatus) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (ConnectionStatusUpdates_ConnectionStatus) Type() protoreflect.EnumType {
|
|
return &file_api_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x ConnectionStatusUpdates_ConnectionStatus) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ConnectionStatusUpdates_ConnectionStatus.Descriptor instead.
|
|
func (ConnectionStatusUpdates_ConnectionStatus) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{11, 0}
|
|
}
|
|
|
|
type Record struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// if omitted, a new record would be created
|
|
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
|
|
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
|
|
// connection data may be omitted if i.e. just manipulating the tags data
|
|
Conn *Connection `protobuf:"bytes,3,opt,name=conn,proto3,oneof" json:"conn,omitempty"`
|
|
}
|
|
|
|
func (x *Record) Reset() {
|
|
*x = Record{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Record) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Record) ProtoMessage() {}
|
|
|
|
func (x *Record) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Record.ProtoReflect.Descriptor instead.
|
|
func (*Record) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Record) GetId() string {
|
|
if x != nil && x.Id != nil {
|
|
return *x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Record) GetTags() []string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Record) GetConn() *Connection {
|
|
if x != nil {
|
|
return x.Conn
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Selector struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Types that are assignable to Filter:
|
|
//
|
|
// *Selector_All
|
|
// *Selector_Tag
|
|
// *Selector_IdFilter_
|
|
Filter isSelector_Filter `protobuf_oneof:"filter"`
|
|
}
|
|
|
|
func (x *Selector) Reset() {
|
|
*x = Selector{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Selector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Selector) ProtoMessage() {}
|
|
|
|
func (x *Selector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Selector.ProtoReflect.Descriptor instead.
|
|
func (*Selector) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (m *Selector) GetFilter() isSelector_Filter {
|
|
if m != nil {
|
|
return m.Filter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Selector) GetAll() bool {
|
|
if x, ok := x.GetFilter().(*Selector_All); ok {
|
|
return x.All
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Selector) GetTag() *Selector_TagFilter {
|
|
if x, ok := x.GetFilter().(*Selector_Tag); ok {
|
|
return x.Tag
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Selector) GetIdFilter() *Selector_IdFilter {
|
|
if x, ok := x.GetFilter().(*Selector_IdFilter_); ok {
|
|
return x.IdFilter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isSelector_Filter interface {
|
|
isSelector_Filter()
|
|
}
|
|
|
|
type Selector_All struct {
|
|
// all records
|
|
All bool `protobuf:"varint,1,opt,name=all,proto3,oneof"`
|
|
}
|
|
|
|
type Selector_Tag struct {
|
|
// only return connections matching tag(s)
|
|
Tag *Selector_TagFilter `protobuf:"bytes,2,opt,name=tag,proto3,oneof"`
|
|
}
|
|
|
|
type Selector_IdFilter_ struct {
|
|
// only return specific connection(s)
|
|
IdFilter *Selector_IdFilter `protobuf:"bytes,3,opt,name=id_filter,json=idFilter,proto3,oneof"`
|
|
}
|
|
|
|
func (*Selector_All) isSelector_Filter() {}
|
|
|
|
func (*Selector_Tag) isSelector_Filter() {}
|
|
|
|
func (*Selector_IdFilter_) isSelector_Filter() {}
|
|
|
|
type ListRecordsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
}
|
|
|
|
func (x *ListRecordsResponse) Reset() {
|
|
*x = ListRecordsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ListRecordsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRecordsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListRecordsResponse) GetRecords() []*Record {
|
|
if x != nil {
|
|
return x.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteRecordsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *DeleteRecordsResponse) Reset() {
|
|
*x = DeleteRecordsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DeleteRecordsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteRecordsResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteRecordsResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
// Export dumps configuration (or subset of, based on provided tag filter)
|
|
// in the JSON format
|
|
type ExportRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Selector *Selector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
// remove_tags to strip tags from output
|
|
RemoveTags bool `protobuf:"varint,2,opt,name=remove_tags,json=removeTags,proto3" json:"remove_tags,omitempty"`
|
|
Format ExportRequest_Format `protobuf:"varint,3,opt,name=format,proto3,enum=pomerium.cli.ExportRequest_Format" json:"format,omitempty"`
|
|
}
|
|
|
|
func (x *ExportRequest) Reset() {
|
|
*x = ExportRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ExportRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ExportRequest) ProtoMessage() {}
|
|
|
|
func (x *ExportRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.
|
|
func (*ExportRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ExportRequest) GetSelector() *Selector {
|
|
if x != nil {
|
|
return x.Selector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ExportRequest) GetRemoveTags() bool {
|
|
if x != nil {
|
|
return x.RemoveTags
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ExportRequest) GetFormat() ExportRequest_Format {
|
|
if x != nil {
|
|
return x.Format
|
|
}
|
|
return ExportRequest_EXPORT_FORMAT_UNDEFINED
|
|
}
|
|
|
|
type ConfigData struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (x *ConfigData) Reset() {
|
|
*x = ConfigData{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ConfigData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfigData) ProtoMessage() {}
|
|
|
|
func (x *ConfigData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConfigData.ProtoReflect.Descriptor instead.
|
|
func (*ConfigData) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ConfigData) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ImportRequest would consume the previously exported data back,
|
|
// merging it with existing configuration,
|
|
// and performing de-duplication of the records so that multiple imports would
|
|
// yield the same result
|
|
type ImportRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// if set, all connections would receive that tag instead
|
|
OverrideTag *string `protobuf:"bytes,1,opt,name=override_tag,json=overrideTag,proto3,oneof" json:"override_tag,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (x *ImportRequest) Reset() {
|
|
*x = ImportRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ImportRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ImportRequest) ProtoMessage() {}
|
|
|
|
func (x *ImportRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ImportRequest.ProtoReflect.Descriptor instead.
|
|
func (*ImportRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ImportRequest) GetOverrideTag() string {
|
|
if x != nil && x.OverrideTag != nil {
|
|
return *x.OverrideTag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ImportRequest) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ImportResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *ImportResponse) Reset() {
|
|
*x = ImportResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ImportResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ImportResponse) ProtoMessage() {}
|
|
|
|
func (x *ImportResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[7]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ImportResponse.ProtoReflect.Descriptor instead.
|
|
func (*ImportResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type ListenerUpdateRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// omit connection ids to connect all connections
|
|
ConnectionIds []string `protobuf:"bytes,1,rep,name=connection_ids,json=connectionIds,proto3" json:"connection_ids,omitempty"`
|
|
Connected bool `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
|
|
}
|
|
|
|
func (x *ListenerUpdateRequest) Reset() {
|
|
*x = ListenerUpdateRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ListenerUpdateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListenerUpdateRequest) ProtoMessage() {}
|
|
|
|
func (x *ListenerUpdateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[8]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListenerUpdateRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListenerUpdateRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListenerUpdateRequest) GetConnectionIds() []string {
|
|
if x != nil {
|
|
return x.ConnectionIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListenerUpdateRequest) GetConnected() bool {
|
|
if x != nil {
|
|
return x.Connected
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListenerStatus struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// active listeners with their current ports
|
|
Active map[string]uint32 `protobuf:"bytes,1,rep,name=active,proto3" json:"active,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
|
// if some listeners were unable to start up
|
|
Errors map[string]string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *ListenerStatus) Reset() {
|
|
*x = ListenerStatus{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ListenerStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListenerStatus) ProtoMessage() {}
|
|
|
|
func (x *ListenerStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[9]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListenerStatus.ProtoReflect.Descriptor instead.
|
|
func (*ListenerStatus) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ListenerStatus) GetActive() map[string]uint32 {
|
|
if x != nil {
|
|
return x.Active
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListenerStatus) GetErrors() map[string]string {
|
|
if x != nil {
|
|
return x.Errors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type StatusUpdatesRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *StatusUpdatesRequest) Reset() {
|
|
*x = StatusUpdatesRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *StatusUpdatesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatusUpdatesRequest) ProtoMessage() {}
|
|
|
|
func (x *StatusUpdatesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[10]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StatusUpdatesRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatusUpdatesRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
// ConnectionStatusUpdates represent connection state changes
|
|
type ConnectionStatusUpdates struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// record this event relates to
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// peer_addr represents connecting party remote address and may be used to
|
|
// distinguish between individual TCP connections
|
|
PeerAddr string `protobuf:"bytes,2,opt,name=peer_addr,json=peerAddr,proto3" json:"peer_addr,omitempty"`
|
|
Status ConnectionStatusUpdates_ConnectionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=pomerium.cli.ConnectionStatusUpdates_ConnectionStatus" json:"status,omitempty"`
|
|
// in case the connection failed or terminated, last error may be available
|
|
LastError *string `protobuf:"bytes,4,opt,name=last_error,json=lastError,proto3,oneof" json:"last_error,omitempty"`
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) Reset() {
|
|
*x = ConnectionStatusUpdates{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConnectionStatusUpdates) ProtoMessage() {}
|
|
|
|
func (x *ConnectionStatusUpdates) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[11]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ConnectionStatusUpdates.ProtoReflect.Descriptor instead.
|
|
func (*ConnectionStatusUpdates) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) GetPeerAddr() string {
|
|
if x != nil {
|
|
return x.PeerAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) GetStatus() ConnectionStatusUpdates_ConnectionStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ConnectionStatusUpdates_CONNECTION_STATUS_UNDEFINED
|
|
}
|
|
|
|
func (x *ConnectionStatusUpdates) GetLastError() string {
|
|
if x != nil && x.LastError != nil {
|
|
return *x.LastError
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Connection
|
|
type Connection struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// name is a user friendly connection name that a user may define
|
|
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
// remote_addr is a remote pomerium host:port
|
|
RemoteAddr string `protobuf:"bytes,2,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"`
|
|
// listen_address, if not provided, will assign a random port each time
|
|
ListenAddr *string `protobuf:"bytes,3,opt,name=listen_addr,json=listenAddr,proto3,oneof" json:"listen_addr,omitempty"`
|
|
// the URL of the pomerium server to connect to
|
|
PomeriumUrl *string `protobuf:"bytes,4,opt,name=pomerium_url,json=pomeriumUrl,proto3,oneof" json:"pomerium_url,omitempty"`
|
|
// Types that are assignable to TlsOptions:
|
|
//
|
|
// *Connection_DisableTlsVerification
|
|
// *Connection_CaCert
|
|
TlsOptions isConnection_TlsOptions `protobuf_oneof:"tls_options"`
|
|
}
|
|
|
|
func (x *Connection) Reset() {
|
|
*x = Connection{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Connection) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Connection) ProtoMessage() {}
|
|
|
|
func (x *Connection) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[12]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Connection.ProtoReflect.Descriptor instead.
|
|
func (*Connection) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *Connection) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetRemoteAddr() string {
|
|
if x != nil {
|
|
return x.RemoteAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetListenAddr() string {
|
|
if x != nil && x.ListenAddr != nil {
|
|
return *x.ListenAddr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetPomeriumUrl() string {
|
|
if x != nil && x.PomeriumUrl != nil {
|
|
return *x.PomeriumUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Connection) GetTlsOptions() isConnection_TlsOptions {
|
|
if m != nil {
|
|
return m.TlsOptions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Connection) GetDisableTlsVerification() bool {
|
|
if x, ok := x.GetTlsOptions().(*Connection_DisableTlsVerification); ok {
|
|
return x.DisableTlsVerification
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Connection) GetCaCert() []byte {
|
|
if x, ok := x.GetTlsOptions().(*Connection_CaCert); ok {
|
|
return x.CaCert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isConnection_TlsOptions interface {
|
|
isConnection_TlsOptions()
|
|
}
|
|
|
|
type Connection_DisableTlsVerification struct {
|
|
DisableTlsVerification bool `protobuf:"varint,5,opt,name=disable_tls_verification,json=disableTlsVerification,proto3,oneof"`
|
|
}
|
|
|
|
type Connection_CaCert struct {
|
|
CaCert []byte `protobuf:"bytes,6,opt,name=ca_cert,json=caCert,proto3,oneof"`
|
|
}
|
|
|
|
func (*Connection_DisableTlsVerification) isConnection_TlsOptions() {}
|
|
|
|
func (*Connection_CaCert) isConnection_TlsOptions() {}
|
|
|
|
type Selector_IdFilter struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
|
|
}
|
|
|
|
func (x *Selector_IdFilter) Reset() {
|
|
*x = Selector_IdFilter{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Selector_IdFilter) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Selector_IdFilter) ProtoMessage() {}
|
|
|
|
func (x *Selector_IdFilter) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[13]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Selector_IdFilter.ProtoReflect.Descriptor instead.
|
|
func (*Selector_IdFilter) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
func (x *Selector_IdFilter) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Selector_TagFilter struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
|
|
}
|
|
|
|
func (x *Selector_TagFilter) Reset() {
|
|
*x = Selector_TagFilter{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_api_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Selector_TagFilter) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Selector_TagFilter) ProtoMessage() {}
|
|
|
|
func (x *Selector_TagFilter) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_proto_msgTypes[14]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Selector_TagFilter.ProtoReflect.Descriptor instead.
|
|
func (*Selector_TagFilter) Descriptor() ([]byte, []int) {
|
|
return file_api_proto_rawDescGZIP(), []int{1, 1}
|
|
}
|
|
|
|
func (x *Selector_TagFilter) GetTags() []string {
|
|
if x != nil {
|
|
return x.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_proto protoreflect.FileDescriptor
|
|
|
|
var file_api_proto_rawDesc = []byte{
|
|
0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x70, 0x6f, 0x6d,
|
|
0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x22, 0x74, 0x0a, 0x06, 0x52, 0x65, 0x63,
|
|
0x6f, 0x72, 0x64, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48,
|
|
0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73,
|
|
0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x31, 0x0a, 0x04,
|
|
0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x6f, 0x6d,
|
|
0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x6e, 0x88, 0x01, 0x01, 0x42,
|
|
0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x22,
|
|
0xdd, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x03,
|
|
0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x03, 0x61, 0x6c, 0x6c,
|
|
0x12, 0x34, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
|
0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x53, 0x65, 0x6c,
|
|
0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x54, 0x61, 0x67, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48,
|
|
0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x3e, 0x0a, 0x09, 0x69, 0x64, 0x5f, 0x66, 0x69, 0x6c,
|
|
0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x6f, 0x6d, 0x65,
|
|
0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f,
|
|
0x72, 0x2e, 0x49, 0x64, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x69, 0x64,
|
|
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x1c, 0x0a, 0x08, 0x49, 0x64, 0x46, 0x69, 0x6c, 0x74,
|
|
0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
0x03, 0x69, 0x64, 0x73, 0x1a, 0x1f, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x46, 0x69, 0x6c, 0x74, 0x65,
|
|
0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52,
|
|
0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22,
|
|
0x45, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
|
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69,
|
|
0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72,
|
|
0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
0x86, 0x02, 0x0a, 0x0d, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x12, 0x32, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63,
|
|
0x6c, 0x69, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x73, 0x65, 0x6c,
|
|
0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f,
|
|
0x74, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f,
|
|
0x76, 0x65, 0x54, 0x61, 0x67, 0x73, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75,
|
|
0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d,
|
|
0x61, 0x74, 0x22, 0x64, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x17,
|
|
0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e,
|
|
0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x58, 0x50,
|
|
0x4f, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x5f,
|
|
0x43, 0x4f, 0x4d, 0x50, 0x41, 0x43, 0x54, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x58, 0x50,
|
|
0x4f, 0x52, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x5f,
|
|
0x50, 0x52, 0x45, 0x54, 0x54, 0x59, 0x10, 0x02, 0x22, 0x20, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66,
|
|
0x69, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5c, 0x0a, 0x0d, 0x49, 0x6d,
|
|
0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x6f,
|
|
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x54, 0x61, 0x67,
|
|
0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6f, 0x76, 0x65, 0x72,
|
|
0x72, 0x69, 0x64, 0x65, 0x5f, 0x74, 0x61, 0x67, 0x22, 0x10, 0x0a, 0x0e, 0x49, 0x6d, 0x70, 0x6f,
|
|
0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x15, 0x4c, 0x69,
|
|
0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e,
|
|
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63,
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x22, 0x8a, 0x02, 0x0a, 0x0e, 0x4c, 0x69, 0x73,
|
|
0x74, 0x65, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x40, 0x0a, 0x06, 0x61,
|
|
0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x6f,
|
|
0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65,
|
|
0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x40, 0x0a,
|
|
0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e,
|
|
0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x4c, 0x69, 0x73,
|
|
0x74, 0x65, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f,
|
|
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x1a,
|
|
0x39, 0x0a, 0x0b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
|
|
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
|
|
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x72,
|
|
0x72, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
|
|
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
|
0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x16, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55,
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8b, 0x03,
|
|
0x0a, 0x17, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74,
|
|
0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x65, 0x65,
|
|
0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65,
|
|
0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x4e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75,
|
|
0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x2e, 0x43, 0x6f,
|
|
0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
|
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65,
|
|
0x72, 0x72, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x61,
|
|
0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x22, 0xbf, 0x01, 0x0a, 0x10, 0x43,
|
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
|
|
0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54,
|
|
0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00,
|
|
0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53,
|
|
0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47,
|
|
0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e,
|
|
0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x52, 0x45, 0x51,
|
|
0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4e, 0x4e, 0x45,
|
|
0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4e,
|
|
0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x4f, 0x4e, 0x4e,
|
|
0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x49,
|
|
0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x04, 0x42, 0x0d, 0x0a, 0x0b,
|
|
0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xa4, 0x02, 0x0a, 0x0a,
|
|
0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x64,
|
|
0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65,
|
|
0x41, 0x64, 0x64, 0x72, 0x12, 0x24, 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61,
|
|
0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0a, 0x6c, 0x69, 0x73,
|
|
0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x70, 0x6f,
|
|
0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
|
|
0x48, 0x03, 0x52, 0x0b, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x55, 0x72, 0x6c, 0x88,
|
|
0x01, 0x01, 0x12, 0x3a, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6c,
|
|
0x73, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
|
|
0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
|
0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19,
|
|
0x0a, 0x07, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x48,
|
|
0x00, 0x52, 0x06, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x6c, 0x73,
|
|
0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d,
|
|
0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64,
|
|
0x72, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x5f, 0x75,
|
|
0x72, 0x6c, 0x32, 0xce, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a,
|
|
0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d,
|
|
0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x21, 0x2e,
|
|
0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x4c, 0x69, 0x73,
|
|
0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
0x12, 0x45, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x6f, 0x6d,
|
|
0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,
|
|
0x6f, 0x72, 0x1a, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c,
|
|
0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x55, 0x70, 0x73, 0x65, 0x72,
|
|
0x74, 0x12, 0x14, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69,
|
|
0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x14, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69,
|
|
0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x3f, 0x0a,
|
|
0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69,
|
|
0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e,
|
|
0x63, 0x6c, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x43,
|
|
0x0a, 0x06, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72,
|
|
0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d,
|
|
0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x32, 0xa9, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72,
|
|
0x12, 0x4b, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6d,
|
|
0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e,
|
|
0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x4c,
|
|
0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x50, 0x0a,
|
|
0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x12, 0x16,
|
|
0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x53, 0x65,
|
|
0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75,
|
|
0x6d, 0x2e, 0x63, 0x6c, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x30, 0x01, 0x42,
|
|
0x2b, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f,
|
|
0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f,
|
|
0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6c, 0x69, 0x62, 0x06, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_api_proto_rawDescOnce sync.Once
|
|
file_api_proto_rawDescData = file_api_proto_rawDesc
|
|
)
|
|
|
|
func file_api_proto_rawDescGZIP() []byte {
|
|
file_api_proto_rawDescOnce.Do(func() {
|
|
file_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_proto_rawDescData)
|
|
})
|
|
return file_api_proto_rawDescData
|
|
}
|
|
|
|
var file_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
|
var file_api_proto_goTypes = []interface{}{
|
|
(ExportRequest_Format)(0), // 0: pomerium.cli.ExportRequest.Format
|
|
(ConnectionStatusUpdates_ConnectionStatus)(0), // 1: pomerium.cli.ConnectionStatusUpdates.ConnectionStatus
|
|
(*Record)(nil), // 2: pomerium.cli.Record
|
|
(*Selector)(nil), // 3: pomerium.cli.Selector
|
|
(*ListRecordsResponse)(nil), // 4: pomerium.cli.ListRecordsResponse
|
|
(*DeleteRecordsResponse)(nil), // 5: pomerium.cli.DeleteRecordsResponse
|
|
(*ExportRequest)(nil), // 6: pomerium.cli.ExportRequest
|
|
(*ConfigData)(nil), // 7: pomerium.cli.ConfigData
|
|
(*ImportRequest)(nil), // 8: pomerium.cli.ImportRequest
|
|
(*ImportResponse)(nil), // 9: pomerium.cli.ImportResponse
|
|
(*ListenerUpdateRequest)(nil), // 10: pomerium.cli.ListenerUpdateRequest
|
|
(*ListenerStatus)(nil), // 11: pomerium.cli.ListenerStatus
|
|
(*StatusUpdatesRequest)(nil), // 12: pomerium.cli.StatusUpdatesRequest
|
|
(*ConnectionStatusUpdates)(nil), // 13: pomerium.cli.ConnectionStatusUpdates
|
|
(*Connection)(nil), // 14: pomerium.cli.Connection
|
|
(*Selector_IdFilter)(nil), // 15: pomerium.cli.Selector.IdFilter
|
|
(*Selector_TagFilter)(nil), // 16: pomerium.cli.Selector.TagFilter
|
|
nil, // 17: pomerium.cli.ListenerStatus.ActiveEntry
|
|
nil, // 18: pomerium.cli.ListenerStatus.ErrorsEntry
|
|
}
|
|
var file_api_proto_depIdxs = []int32{
|
|
14, // 0: pomerium.cli.Record.conn:type_name -> pomerium.cli.Connection
|
|
16, // 1: pomerium.cli.Selector.tag:type_name -> pomerium.cli.Selector.TagFilter
|
|
15, // 2: pomerium.cli.Selector.id_filter:type_name -> pomerium.cli.Selector.IdFilter
|
|
2, // 3: pomerium.cli.ListRecordsResponse.records:type_name -> pomerium.cli.Record
|
|
3, // 4: pomerium.cli.ExportRequest.selector:type_name -> pomerium.cli.Selector
|
|
0, // 5: pomerium.cli.ExportRequest.format:type_name -> pomerium.cli.ExportRequest.Format
|
|
17, // 6: pomerium.cli.ListenerStatus.active:type_name -> pomerium.cli.ListenerStatus.ActiveEntry
|
|
18, // 7: pomerium.cli.ListenerStatus.errors:type_name -> pomerium.cli.ListenerStatus.ErrorsEntry
|
|
1, // 8: pomerium.cli.ConnectionStatusUpdates.status:type_name -> pomerium.cli.ConnectionStatusUpdates.ConnectionStatus
|
|
3, // 9: pomerium.cli.Config.List:input_type -> pomerium.cli.Selector
|
|
3, // 10: pomerium.cli.Config.Delete:input_type -> pomerium.cli.Selector
|
|
2, // 11: pomerium.cli.Config.Upsert:input_type -> pomerium.cli.Record
|
|
6, // 12: pomerium.cli.Config.Export:input_type -> pomerium.cli.ExportRequest
|
|
8, // 13: pomerium.cli.Config.Import:input_type -> pomerium.cli.ImportRequest
|
|
10, // 14: pomerium.cli.Listener.Update:input_type -> pomerium.cli.ListenerUpdateRequest
|
|
3, // 15: pomerium.cli.Listener.StatusUpdates:input_type -> pomerium.cli.Selector
|
|
4, // 16: pomerium.cli.Config.List:output_type -> pomerium.cli.ListRecordsResponse
|
|
5, // 17: pomerium.cli.Config.Delete:output_type -> pomerium.cli.DeleteRecordsResponse
|
|
2, // 18: pomerium.cli.Config.Upsert:output_type -> pomerium.cli.Record
|
|
7, // 19: pomerium.cli.Config.Export:output_type -> pomerium.cli.ConfigData
|
|
9, // 20: pomerium.cli.Config.Import:output_type -> pomerium.cli.ImportResponse
|
|
11, // 21: pomerium.cli.Listener.Update:output_type -> pomerium.cli.ListenerStatus
|
|
13, // 22: pomerium.cli.Listener.StatusUpdates:output_type -> pomerium.cli.ConnectionStatusUpdates
|
|
16, // [16:23] is the sub-list for method output_type
|
|
9, // [9:16] is the sub-list for method input_type
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
0, // [0:9] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_proto_init() }
|
|
func file_api_proto_init() {
|
|
if File_api_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Record); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Selector); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ListRecordsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DeleteRecordsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ExportRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ConfigData); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ImportRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ImportResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ListenerUpdateRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ListenerStatus); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*StatusUpdatesRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ConnectionStatusUpdates); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Connection); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Selector_IdFilter); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Selector_TagFilter); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_api_proto_msgTypes[0].OneofWrappers = []interface{}{}
|
|
file_api_proto_msgTypes[1].OneofWrappers = []interface{}{
|
|
(*Selector_All)(nil),
|
|
(*Selector_Tag)(nil),
|
|
(*Selector_IdFilter_)(nil),
|
|
}
|
|
file_api_proto_msgTypes[6].OneofWrappers = []interface{}{}
|
|
file_api_proto_msgTypes[11].OneofWrappers = []interface{}{}
|
|
file_api_proto_msgTypes[12].OneofWrappers = []interface{}{
|
|
(*Connection_DisableTlsVerification)(nil),
|
|
(*Connection_CaCert)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_api_proto_rawDesc,
|
|
NumEnums: 2,
|
|
NumMessages: 17,
|
|
NumExtensions: 0,
|
|
NumServices: 2,
|
|
},
|
|
GoTypes: file_api_proto_goTypes,
|
|
DependencyIndexes: file_api_proto_depIdxs,
|
|
EnumInfos: file_api_proto_enumTypes,
|
|
MessageInfos: file_api_proto_msgTypes,
|
|
}.Build()
|
|
File_api_proto = out.File
|
|
file_api_proto_rawDesc = nil
|
|
file_api_proto_goTypes = nil
|
|
file_api_proto_depIdxs = nil
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConnInterface
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
// ConfigClient is the client API for Config service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ConfigClient interface {
|
|
List(ctx context.Context, in *Selector, opts ...grpc.CallOption) (*ListRecordsResponse, error)
|
|
Delete(ctx context.Context, in *Selector, opts ...grpc.CallOption) (*DeleteRecordsResponse, error)
|
|
Upsert(ctx context.Context, in *Record, opts ...grpc.CallOption) (*Record, error)
|
|
Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ConfigData, error)
|
|
Import(ctx context.Context, in *ImportRequest, opts ...grpc.CallOption) (*ImportResponse, error)
|
|
}
|
|
|
|
type configClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewConfigClient(cc grpc.ClientConnInterface) ConfigClient {
|
|
return &configClient{cc}
|
|
}
|
|
|
|
func (c *configClient) List(ctx context.Context, in *Selector, opts ...grpc.CallOption) (*ListRecordsResponse, error) {
|
|
out := new(ListRecordsResponse)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Config/List", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *configClient) Delete(ctx context.Context, in *Selector, opts ...grpc.CallOption) (*DeleteRecordsResponse, error) {
|
|
out := new(DeleteRecordsResponse)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Config/Delete", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *configClient) Upsert(ctx context.Context, in *Record, opts ...grpc.CallOption) (*Record, error) {
|
|
out := new(Record)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Config/Upsert", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *configClient) Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ConfigData, error) {
|
|
out := new(ConfigData)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Config/Export", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *configClient) Import(ctx context.Context, in *ImportRequest, opts ...grpc.CallOption) (*ImportResponse, error) {
|
|
out := new(ImportResponse)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Config/Import", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ConfigServer is the server API for Config service.
|
|
type ConfigServer interface {
|
|
List(context.Context, *Selector) (*ListRecordsResponse, error)
|
|
Delete(context.Context, *Selector) (*DeleteRecordsResponse, error)
|
|
Upsert(context.Context, *Record) (*Record, error)
|
|
Export(context.Context, *ExportRequest) (*ConfigData, error)
|
|
Import(context.Context, *ImportRequest) (*ImportResponse, error)
|
|
}
|
|
|
|
// UnimplementedConfigServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedConfigServer struct {
|
|
}
|
|
|
|
func (*UnimplementedConfigServer) List(context.Context, *Selector) (*ListRecordsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
}
|
|
func (*UnimplementedConfigServer) Delete(context.Context, *Selector) (*DeleteRecordsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
}
|
|
func (*UnimplementedConfigServer) Upsert(context.Context, *Record) (*Record, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Upsert not implemented")
|
|
}
|
|
func (*UnimplementedConfigServer) Export(context.Context, *ExportRequest) (*ConfigData, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Export not implemented")
|
|
}
|
|
func (*UnimplementedConfigServer) Import(context.Context, *ImportRequest) (*ImportResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Import not implemented")
|
|
}
|
|
|
|
func RegisterConfigServer(s *grpc.Server, srv ConfigServer) {
|
|
s.RegisterService(&_Config_serviceDesc, srv)
|
|
}
|
|
|
|
func _Config_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Selector)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ConfigServer).List(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Config/List",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ConfigServer).List(ctx, req.(*Selector))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Config_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Selector)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ConfigServer).Delete(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Config/Delete",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ConfigServer).Delete(ctx, req.(*Selector))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Config_Upsert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Record)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ConfigServer).Upsert(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Config/Upsert",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ConfigServer).Upsert(ctx, req.(*Record))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Config_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ExportRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ConfigServer).Export(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Config/Export",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ConfigServer).Export(ctx, req.(*ExportRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Config_Import_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ImportRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ConfigServer).Import(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Config/Import",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ConfigServer).Import(ctx, req.(*ImportRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Config_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pomerium.cli.Config",
|
|
HandlerType: (*ConfigServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "List",
|
|
Handler: _Config_List_Handler,
|
|
},
|
|
{
|
|
MethodName: "Delete",
|
|
Handler: _Config_Delete_Handler,
|
|
},
|
|
{
|
|
MethodName: "Upsert",
|
|
Handler: _Config_Upsert_Handler,
|
|
},
|
|
{
|
|
MethodName: "Export",
|
|
Handler: _Config_Export_Handler,
|
|
},
|
|
{
|
|
MethodName: "Import",
|
|
Handler: _Config_Import_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "api.proto",
|
|
}
|
|
|
|
// ListenerClient is the client API for Listener service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ListenerClient interface {
|
|
// Listen starts connection listener
|
|
Update(ctx context.Context, in *ListenerUpdateRequest, opts ...grpc.CallOption) (*ListenerStatus, error)
|
|
// StatusUpdates opens a stream to listen to connection status updates
|
|
// a client has to subscribe and continuously
|
|
// listen to the broadcasted updates
|
|
StatusUpdates(ctx context.Context, in *Selector, opts ...grpc.CallOption) (Listener_StatusUpdatesClient, error)
|
|
}
|
|
|
|
type listenerClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewListenerClient(cc grpc.ClientConnInterface) ListenerClient {
|
|
return &listenerClient{cc}
|
|
}
|
|
|
|
func (c *listenerClient) Update(ctx context.Context, in *ListenerUpdateRequest, opts ...grpc.CallOption) (*ListenerStatus, error) {
|
|
out := new(ListenerStatus)
|
|
err := c.cc.Invoke(ctx, "/pomerium.cli.Listener/Update", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *listenerClient) StatusUpdates(ctx context.Context, in *Selector, opts ...grpc.CallOption) (Listener_StatusUpdatesClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_Listener_serviceDesc.Streams[0], "/pomerium.cli.Listener/StatusUpdates", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &listenerStatusUpdatesClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type Listener_StatusUpdatesClient interface {
|
|
Recv() (*ConnectionStatusUpdates, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type listenerStatusUpdatesClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *listenerStatusUpdatesClient) Recv() (*ConnectionStatusUpdates, error) {
|
|
m := new(ConnectionStatusUpdates)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
// ListenerServer is the server API for Listener service.
|
|
type ListenerServer interface {
|
|
// Listen starts connection listener
|
|
Update(context.Context, *ListenerUpdateRequest) (*ListenerStatus, error)
|
|
// StatusUpdates opens a stream to listen to connection status updates
|
|
// a client has to subscribe and continuously
|
|
// listen to the broadcasted updates
|
|
StatusUpdates(*Selector, Listener_StatusUpdatesServer) error
|
|
}
|
|
|
|
// UnimplementedListenerServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedListenerServer struct {
|
|
}
|
|
|
|
func (*UnimplementedListenerServer) Update(context.Context, *ListenerUpdateRequest) (*ListenerStatus, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
|
}
|
|
func (*UnimplementedListenerServer) StatusUpdates(*Selector, Listener_StatusUpdatesServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method StatusUpdates not implemented")
|
|
}
|
|
|
|
func RegisterListenerServer(s *grpc.Server, srv ListenerServer) {
|
|
s.RegisterService(&_Listener_serviceDesc, srv)
|
|
}
|
|
|
|
func _Listener_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListenerUpdateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ListenerServer).Update(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/pomerium.cli.Listener/Update",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ListenerServer).Update(ctx, req.(*ListenerUpdateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Listener_StatusUpdates_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(Selector)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(ListenerServer).StatusUpdates(m, &listenerStatusUpdatesServer{stream})
|
|
}
|
|
|
|
type Listener_StatusUpdatesServer interface {
|
|
Send(*ConnectionStatusUpdates) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type listenerStatusUpdatesServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *listenerStatusUpdatesServer) Send(m *ConnectionStatusUpdates) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
var _Listener_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "pomerium.cli.Listener",
|
|
HandlerType: (*ListenerServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Update",
|
|
Handler: _Listener_Update_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "StatusUpdates",
|
|
Handler: _Listener_StatusUpdates_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "api.proto",
|
|
}
|