From a77cab5db6dfeb644ef1e614ab2fbd9ceab5176b Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Sun, 20 Feb 2022 17:33:04 -0800 Subject: [PATCH 1/6] manage --- go.mod | 2 +- go.sum | 4 + options/options.go | 135 +++++ .../build/go/protos/args/ps_args_nats.pb.go | 57 +- .../protos/args/ps_args_nats_jetstream.pb.go | 60 ++- .../protos/args/ps_args_nats_streaming.pb.go | 75 +-- .../opts/batch_connection_options.pb.go | 166 +++--- .../build/go/protos/opts/ps_opts_cli.pb.go | 66 ++- .../build/go/protos/opts/ps_opts_manage.pb.go | 496 +++++++++++++++++ .../opts/ps_opts_manage_connection.pb.go | 404 ++++++++++++++ .../go/protos/opts/ps_opts_manage_relay.pb.go | 454 ++++++++++++++++ .../protos/opts/ps_opts_manage_tunnel.pb.go | 506 ++++++++++++++++++ .../build/go/protos/opts/ps_opts_server.pb.go | 78 ++- .../build/go/protos/ps_base.pb.go | 65 +-- vendor/modules.txt | 2 +- 15 files changed, 2300 insertions(+), 270 deletions(-) create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_connection.pb.go create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go diff --git a/go.mod b/go.mod index d03ddc11..4cda2cd9 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/batchcorp/kong v0.2.17-batch-fix github.com/batchcorp/natty v0.0.16 github.com/batchcorp/pgoutput v0.3.2 - github.com/batchcorp/plumber-schemas v0.0.142 + github.com/batchcorp/plumber-schemas v0.0.145 github.com/batchcorp/rabbit v0.1.17 github.com/dustin/go-humanize v1.0.0 // indirect github.com/eclipse/paho.mqtt.golang v1.2.0 diff --git a/go.sum b/go.sum index ac44fdd6..e8157adc 100644 --- a/go.sum +++ b/go.sum @@ -141,6 +141,10 @@ github.com/batchcorp/plumber-schemas v0.0.142-0.20220214214009-c6a6303bce51 h1:8 github.com/batchcorp/plumber-schemas v0.0.142-0.20220214214009-c6a6303bce51/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/plumber-schemas v0.0.142 h1:7gvZJ/LAIGswR3WGeY94R7suf7inyQuVQou1mlLqlDg= github.com/batchcorp/plumber-schemas v0.0.142/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.144 h1:MrUefrzGQoUqxZcdW1ZRD3JqkS/2qmS9J9D42rGFGls= +github.com/batchcorp/plumber-schemas v0.0.144/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.145 h1:+zRyQ3EKiGwt9GbxZMKc4KC/A2A01AwzwDhyWpNRHT8= +github.com/batchcorp/plumber-schemas v0.0.145/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/rabbit v0.1.17 h1:dui1W7FLTrNxyVlDN+G+6d8LXz8HBhVAcUethXql9vQ= github.com/batchcorp/rabbit v0.1.17/go.mod h1:2nplLhzjXrddaHWxrnduZS6tFwpF9QSpJ0a2A3erNYw= github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6/go.mod h1:6YNgTHLutezwnBvyneBbwvB8C82y3dcoOj5EQJIdGXA= diff --git a/options/options.go b/options/options.go index 4a99b61b..a9f6f85a 100644 --- a/options/options.go +++ b/options/options.go @@ -181,6 +181,7 @@ func NewCLIOptions() *opts.CLIOptions { Relay: newRelayOptions(), Tunnel: newTunnelOptions(), Batch: newBatchOptions(), + Manage: newManageOptions(), } } @@ -629,3 +630,137 @@ func newBatchOptions() *opts.BatchOptions { }, } } + +func newManageOptions() *opts.ManageOptions { + return &opts.ManageOptions{ + GlobalOptions: &opts.GlobalManageOptions{}, + Get: &opts.GetOptions{ + Connection: &opts.GetConnectionOptions{}, + Relay: &opts.GetRelayOptions{}, + Tunnel: &opts.GetTunnelOptions{}, + }, + Create: &opts.CreateOptions{ + Connection: &opts.CreateConnectionOptions{ + Kafka: &args.KafkaConn{ + Address: make([]string, 0), + }, + ActiveMq: &args.ActiveMQConn{}, + AwsSqs: &args.AWSSQSConn{}, + AwsSns: &args.AWSSNSConn{}, + Mongo: &args.MongoConn{}, + Nats: &args.NatsConn{ + UserCredentials: make([]byte, 0), + TlsOptions: &args.NatsTLSOptions{ + TlsCaCert: make([]byte, 0), + TlsClientCert: make([]byte, 0), + TlsClientKey: make([]byte, 0), + }, + }, + NatsStreaming: &args.NatsStreamingConn{ + UserCredentials: make([]byte, 0), + TlsOptions: &args.NatsStreamingTLSOptions{ + TlsCaCert: make([]byte, 0), + TlsClientCert: make([]byte, 0), + TlsClientKey: make([]byte, 0), + }, + }, + NatsJetstream: &args.NatsJetstreamConn{ + UserCredentials: make([]byte, 0), + TlsOptions: &args.NatsJetstreamTLSOptions{ + TlsCaCert: make([]byte, 0), + TlsClientCert: make([]byte, 0), + TlsClientKey: make([]byte, 0), + }, + }, + Nsq: &args.NSQConn{ + TlsCaCert: make([]byte, 0), + TlsClientCert: make([]byte, 0), + TlsClientKey: make([]byte, 0), + }, + Postgres: &args.PostgresConn{}, + Pulsar: &args.PulsarConn{ + TlsClientCert: make([]byte, 0), + TlsClientKey: make([]byte, 0), + }, + Rabbit: &args.RabbitConn{}, + RabbitStreams: &args.RabbitStreamsConn{}, + RedisPubsub: &args.RedisPubSubConn{}, + RedisStreams: &args.RedisStreamsConn{}, + AzureEventHub: &args.AzureEventHubConn{}, + AzureServiceBus: &args.AzureServiceBusConn{}, + Mqtt: &args.MQTTConn{ + TlsOptions: &args.MQTTTLSOptions{}, + }, + KubemqQueue: &args.KubeMQQueueConn{}, + GcpPubsub: &args.GCPPubSubConn{}, + AwsKinesis: &args.AWSKinesisConn{}, + }, + Relay: &opts.CreateRelayOptions{ + Kafka: &args.KafkaRelayArgs{ + Topics: make([]string, 0), + }, + AwsSqs: &args.AWSSQSRelayArgs{}, + Mongo: &args.MongoReadArgs{}, + Nsq: &args.NSQReadArgs{}, + Rabbit: &args.RabbitReadArgs{}, + Mqtt: &args.MQTTReadArgs{}, + AzureServiceBus: &args.AzureServiceBusReadArgs{}, + GcpPubsub: &args.GCPPubSubReadArgs{}, + KubemqQueue: &args.KubeMQQueueReadArgs{}, + RedisPubsub: &args.RedisPubSubReadArgs{ + Channels: make([]string, 0), + }, + RedisStreams: &args.RedisStreamsReadArgs{ + Streams: make([]string, 0), + CreateConsumerConfig: &args.CreateConsumerConfig{}, + }, + Postgres: &args.PostgresReadArgs{}, + Nats: &args.NatsReadArgs{}, + NatsStreaming: &args.NatsStreamingReadArgs{}, + NatsJetstream: &args.NatsJetstreamReadArgs{}, + }, + Tunnel: &opts.CreateTunnelOptions{ + Kafka: &args.KafkaWriteArgs{ + Topics: make([]string, 0), + }, + Activemq: &args.ActiveMQWriteArgs{}, + AwsSqs: &args.AWSSQSWriteArgs{ + Attributes: make(map[string]string, 0), + }, + AwsSns: &args.AWSSNSWriteArgs{}, + Nats: &args.NatsWriteArgs{}, + NatsStreaming: &args.NatsStreamingWriteArgs{}, + Nsq: &args.NSQWriteArgs{}, + Rabbit: &args.RabbitWriteArgs{}, + Mqtt: &args.MQTTWriteArgs{}, + AzureServiceBus: &args.AzureServiceBusWriteArgs{}, + AzureEventHub: &args.AzureEventHubWriteArgs{}, + GcpPubsub: &args.GCPPubSubWriteArgs{}, + KubemqQueue: &args.KubeMQQueueWriteArgs{}, + RedisPubsub: &args.RedisPubSubWriteArgs{ + Channels: make([]string, 0), + }, + RedisStreams: &args.RedisStreamsWriteArgs{ + Streams: make([]string, 0), + }, + Pulsar: &args.PulsarWriteArgs{}, + RabbitStreams: &args.RabbitStreamsWriteArgs{}, + NatsJetstream: &args.NatsJetstreamWriteArgs{}, + AwsKinesis: &args.AWSKinesisWriteArgs{}, + }, + }, + Delete: &opts.DeleteOptions{ + Connection: &opts.DeleteConnectionOptions{}, + Relay: &opts.DeleteRelayOptions{}, + Tunnel: &opts.DeleteTunnelOptions{}, + }, + Stop: &opts.StopOptions{ + Relay: &opts.StopRelayOptions{}, + Tunnel: &opts.StopTunnelOptions{}, + }, + Resume: &opts.ResumeOptions{ + Relay: &opts.ResumeRelayOptions{}, + Tunnel: &opts.ResumeTunnelOptions{}, + }, + } +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats.pb.go index 9bf237f8..d92757ac 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats.pb.go @@ -86,7 +86,9 @@ type NatsTLSOptions struct { // @gotags: kong:"help='Client cert file (only needed if addr is tls://)',env='PLUMBER_RELAY_NATS_TLS_CLIENT_CERT'" TlsClientCert []byte `protobuf:"bytes,3,opt,name=tls_client_cert,json=tlsClientCert,proto3" json:"tls_client_cert,omitempty" kong:"help='Client cert file (only needed if addr is tls://)',env='PLUMBER_RELAY_NATS_TLS_CLIENT_CERT'"` // @gotags: kong:"help='client key file (only needed if addr is tls://)',env='PLUMBER_RELAY_NATS_TLS_CLIENT_KEY'" - TlsClientKey []byte `protobuf:"bytes,4,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty" kong:"help='client key file (only needed if addr is tls://)',env='PLUMBER_RELAY_NATS_TLS_CLIENT_KEY'"` + TlsClientKey []byte `protobuf:"bytes,4,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty" kong:"help='client key file (only needed if addr is tls://)',env='PLUMBER_RELAY_NATS_TLS_CLIENT_KEY'"` + // @gotags: kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_USE_TLS'" + UseTls bool `protobuf:"varint,5,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty" kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_USE_TLS'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -145,6 +147,13 @@ func (m *NatsTLSOptions) GetTlsClientKey() []byte { return nil } +func (m *NatsTLSOptions) GetUseTls() bool { + if m != nil { + return m.UseTls + } + return false +} + type NatsReadArgs struct { // @gotags: kong:"help='NATS Subject. Ex: foo.bar.*',env='PLUMBER_RELAY_NATS_SUBJECT'" Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty" kong:"help='NATS Subject. Ex: foo.bar.*',env='PLUMBER_RELAY_NATS_SUBJECT'"` @@ -235,26 +244,28 @@ func init() { func init() { proto.RegisterFile("ps_args_nats.proto", fileDescriptor_ee5ddeb96e248a57) } var fileDescriptor_ee5ddeb96e248a57 = []byte{ - // 332 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x5f, 0x4b, 0xc3, 0x30, - 0x14, 0xc5, 0xa9, 0x13, 0xdd, 0xb2, 0xbf, 0xe4, 0xa9, 0x20, 0xc8, 0x28, 0x22, 0xdd, 0x83, 0x2d, - 0xe8, 0x93, 0xe8, 0x8b, 0xf6, 0x51, 0x51, 0xe8, 0x44, 0xc1, 0x97, 0x92, 0xa6, 0xb1, 0x8b, 0xcb, - 0x9a, 0x92, 0x7b, 0x2b, 0xec, 0x03, 0xf8, 0x55, 0xfc, 0x9c, 0x92, 0x74, 0xd3, 0xf9, 0xe2, 0x53, - 0xee, 0x3d, 0xf9, 0x71, 0xcf, 0xe1, 0x10, 0x5a, 0x43, 0xc6, 0x4c, 0x09, 0x59, 0xc5, 0x10,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6f, 0xdb, 0x35, 0x98, 0x91, 0xa1, 0x25, 0x5f, 0x8c, 0x44, 0xf1, - 0x3f, 0x7a, 0x7b, 0xf5, 0x7a, 0x59, 0x4a, 0x5c, 0x34, 0x79, 0xc4, 0xf5, 0x2a, 0xce, 0x19, 0xf2, - 0x05, 0xd7, 0xa6, 0x8e, 0x6b, 0xd5, 0xac, 0x72, 0x61, 0xce, 0x80, 0x2f, 0xc4, 0x8a, 0x41, 0x9c, - 0x37, 0x52, 0x15, 0x71, 0xa9, 0xe3, 0xb6, 0xd5, 0xd8, 0xb6, 0x9a, 0x1f, 0xb8, 0xe5, 0xe2, 0x3b, - 0x00, 0x00, 0xff, 0xff, 0xaa, 0xfa, 0x2c, 0x03, 0xec, 0x01, 0x00, 0x00, + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x4f, 0xab, 0xd3, 0x40, + 0x14, 0xc5, 0x89, 0xd5, 0xfe, 0x99, 0xfe, 0x65, 0x36, 0x06, 0x04, 0x29, 0x41, 0x24, 0x5d, 0x98, + 0x80, 0xae, 0x44, 0x37, 0x9a, 0xa5, 0xa2, 0x90, 0x16, 0x05, 0x37, 0x61, 0x32, 0xb9, 0xa6, 0x63, + 0xa7, 0x99, 0x30, 0xf7, 0x46, 0xe8, 0x07, 0x78, 0x9f, 0xeb, 0x7d, 0xb5, 0xc7, 0x4c, 0xda, 0xf7, + 0xfa, 0x36, 0x6f, 0x95, 0x7b, 0x4f, 0x7e, 0xdc, 0x73, 0xe6, 0x30, 0xde, 0x62, 0x21, 0x6c, 0x8d, + 0x45, 0x23, 0x08, 0x93, 0xd6, 0x1a, 0x32, 0x7c, 0xea, 0x3f, 0x98, 0x38, 0x3d, 0xba, 0x09, 0xd8, + 0xf8, 0x87, 0x20, 0xcc, 0x4c, 0xd3, 0xf0, 0x15, 0x1b, 0x54, 0xd8, 0x84, 0xc1, 0x3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0x08, 0x9e, 0x46, 0xbf, 0x7e, 0xfa, 0xf3, 0xb1, 0x56, 0xb4, 0xef, 0xca, 0x44, + 0x9a, 0x63, 0x5a, 0x0a, 0x92, 0x7b, 0x69, 0x6c, 0x9b, 0xb6, 0xba, 0x3b, 0x96, 0x60, 0xdf, 0xa1, + 0xdc, 0xc3, 0x51, 0x60, 0x5a, 0x76, 0x4a, 0x57, 0x69, 0x6d, 0xd2, 0xbe, 0xee, 0xd4, 0xd5, 0x5d, + 0x0e, 0xfd, 0xf2, 0xe1, 0x2e, 0x00, 0x00, 0xff, 0xff, 0x02, 0x9d, 0x3f, 0xae, 0x05, 0x02, 0x00, + 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_jetstream.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_jetstream.pb.go index 99094d96..3ff2eafc 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_jetstream.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_jetstream.pb.go @@ -28,7 +28,9 @@ type NatsJetstreamTLSOptions struct { // @gotags: kong:"help='Client key file (only needed if addr is tls://*)',env='PLUMBER_RELAY_NATS_JETSTREAM_TLS_CLIENT_KEY'" TlsClientKey []byte `protobuf:"bytes,3,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty" kong:"help='Client key file (only needed if addr is tls://*)',env='PLUMBER_RELAY_NATS_JETSTREAM_TLS_CLIENT_KEY'"` // @gotags: kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_JETSTREAM_SKIP_VERIFY_TLS'" - TlsSkipVerify bool `protobuf:"varint,4,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty" kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_JETSTREAM_SKIP_VERIFY_TLS'"` + TlsSkipVerify bool `protobuf:"varint,4,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty" kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_JETSTREAM_SKIP_VERIFY_TLS'"` + // @gotags: kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_JETSTREAM_USE_TLS'" + UseTls bool `protobuf:"varint,5,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty" kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_JETSTREAM_USE_TLS'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -87,6 +89,13 @@ func (m *NatsJetstreamTLSOptions) GetTlsSkipVerify() bool { return false } +func (m *NatsJetstreamTLSOptions) GetUseTls() bool { + if m != nil { + return m.UseTls + } + return false +} + type NatsJetstreamConn struct { // @gotags: kong:"help='Dial string for NATS server. Ex: nats://localhost:4222',default='nats://localhost:4222',env='PLUMBER_RELAY_NATS_JETSTREAM_DSN'" Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty" kong:"help='Dial string for NATS server. Ex: nats://localhost:4222',default='nats://localhost:4222',env='PLUMBER_RELAY_NATS_JETSTREAM_DSN'"` @@ -244,28 +253,29 @@ func init() { func init() { proto.RegisterFile("ps_args_nats_jetstream.proto", fileDescriptor_a1868c7e9e1b078c) } var fileDescriptor_a1868c7e9e1b078c = []byte{ - // 359 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x4f, 0x6b, 0xdb, 0x40, - 0x10, 0xc5, 0x51, 0x5d, 0x8c, 0xb5, 0x76, 0x6b, 0x77, 0xa1, 0xae, 0xa1, 0xa5, 0x18, 0x61, 0x8a, - 0x7b, 0xa8, 0x54, 0x92, 0x53, 0xc8, 0x29, 0x11, 0x39, 0xe4, 0x0f, 0x09, 0xc8, 0x21, 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b6, 0xf6, 0x86, 0xb5, 0xee, 0xbf, 0xc9, 0xfc, 0x27, 0xb3, 0x5b, 0x73, - 0x32, 0x31, 0xde, 0xec, 0xa0, 0xd7, 0x08, 0xa7, 0x09, 0x3f, 0x69, 0x52, 0x50, 0x4d, 0x28, 0xc6, - 0x53, 0x7f, 0x6f, 0xe6, 0x6e, 0x85, 0xe8, 0xbe, 0x13, 0x60, 0xc0, 0x28, 0xc3, 0xb6, 0x76, 0x3c, - 0xf6, 0x7d, 0x07, 0x0b, 0x40, 0x24, 0x47, 0x3a, 0x45, 0x3e, 0x66, 0xdd, 0x46, 0x69, 0xcd, 0xb7, - 0x9d, 0xf3, 0x9f, 0x8d, 0x77, 0x06, 0x6e, 0xb5, 0x24, 0xf8, 0x68, 0xe2, 0xf8, 0xf0, 0xee, 0x20, - 0x95, 0xb4, 0xac, 0x22, 0x37, 0x56, 0xb9, 0x17, 0x09, 0x8a, 0x97, 0xb1, 0xd2, 0xa5, 0x57, 0x66, - 0x55, 0x1e, 0x81, 0xfe, 0x87, 0xf1, 0x12, 0x72, 0x81, 0x5e, 0x54, 0xc9, 0x2c, 0xf1, 0x52, 0xe5, - 0x35, 0x37, 0x78, 0xf5, 0x0d, 0x51, 0xd7, 0x34, 0xfb, 0x2f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7e, - 0x6a, 0x97, 0x13, 0x3c, 0x02, 0x00, 0x00, + // 373 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x4f, 0xcb, 0xd3, 0x40, + 0x10, 0xc6, 0x89, 0xaf, 0xd6, 0x66, 0x5b, 0x6d, 0x5d, 0xb0, 0x0d, 0x28, 0x52, 0x42, 0x91, 0x7a, + 0x30, 0x11, 0x3d, 0x89, 0x27, 0x0d, 0x1e, 0xfc, 0x83, 0x42, 0x5a, 0x14, 0xbc, 0x2c, 0x9b, 0x64, + 0x4c, 0xd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0xb7, 0x08, 0x56, 0xe4, 0x16, 0x0a, 0xa8, 0x49, 0x49, + 0x8d, 0x83, 0xef, 0x59, 0xa7, 0x27, 0xff, 0x64, 0xfe, 0x80, 0xf9, 0x83, 0x6b, 0x55, 0x38, 0xd3, + 0x7e, 0x3a, 0xee, 0x85, 0x77, 0x05, 0x7f, 0xdb, 0xc7, 0x63, 0xfa, 0xb4, 0x9c, 0xd9, 0xc9, 0xf3, + 0x75, 0x74, 0x96, 0x6e, 0xf4, 0x9f, 0x64, 0x53, 0x46, 0x1a, 0x87, 0x7f, 0x18, 0xb3, 0xfb, 0x17, + 0x58, 0x0a, 0xb2, 0x78, 0x6d, 0x4b, 0xe4, 0x0b, 0x36, 0xea, 0x95, 0xc1, 0xfc, 0x50, 0x85, 0xcf, + 0xd8, 0xe2, 0x62, 0xe0, 0xab, 0x55, 0x04, 0xd7, 0x4d, 0xbc, 0x79, 0xf5, 0xed, 0x65, 0xa9, 0x68, + 0xdf, 0x66, 0x51, 0x6e, 0xaa, 0x38, 0x93, 0x94, 0xef, 0x73, 0x63, 0x9b, 0xb8, 0xd1, 0x6d, 0x95, + 0x81, 0x7d, 0x8a, 0xf9, 0x1e, 0x2a, 0x89, 0x71, 0xd6, 0x2a, 0x5d, 0xc4, 0xa5, 0x89, 0xfb, 0x1b, + 0xe2, 0xee, 0x86, 0x6c, 0xe4, 0x8a, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x93, 0xfc, + 0x8c, 0x55, 0x02, 0x00, 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_streaming.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_streaming.pb.go index 39034e18..5421e13e 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_streaming.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/args/ps_args_nats_streaming.pb.go @@ -28,7 +28,9 @@ type NatsStreamingTLSOptions struct { // @gotags: kong:"help='Client key file (only needed if addr is tls://*)',env='PLUMBER_RELAY_NATS_STREAMING_TLS_CLIENT_KEY'" TlsClientKey []byte `protobuf:"bytes,3,opt,name=tls_client_key,json=tlsClientKey,proto3" json:"tls_client_key,omitempty" kong:"help='Client key file (only needed if addr is tls://*)',env='PLUMBER_RELAY_NATS_STREAMING_TLS_CLIENT_KEY'"` // @gotags: kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_STREAMING_SKIP_VERIFY_TLS'" - TlsSkipVerify bool `protobuf:"varint,4,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty" kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_STREAMING_SKIP_VERIFY_TLS'"` + TlsSkipVerify bool `protobuf:"varint,4,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty" kong:"help='Whether to verify server certificate',env='PLUMBER_RELAY_NATS_STREAMING_SKIP_VERIFY_TLS'"` + // @gotags: kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_STREAMING_USE_TLS'" + UseTls bool `protobuf:"varint,5,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty" kong:"help='Enable TLS',env='PLUMBER_RELAY_NATS_STREAMING_USE_TLS'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -87,6 +89,13 @@ func (m *NatsStreamingTLSOptions) GetTlsSkipVerify() bool { return false } +func (m *NatsStreamingTLSOptions) GetUseTls() bool { + if m != nil { + return m.UseTls + } + return false +} + type NatsStreamingConn struct { // @gotags: kong:"help='Dial string for NATS server. Ex: nats://localhost:4222',default='nats://localhost:4222',env='PLUMBER_RELAY_NATS_STREAMING_DSN'" Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty" kong:"help='Dial string for NATS server. Ex: nats://localhost:4222',default='nats://localhost:4222',env='PLUMBER_RELAY_NATS_STREAMING_DSN'"` @@ -298,36 +307,36 @@ func init() { func init() { proto.RegisterFile("ps_args_nats_streaming.proto", fileDescriptor_5bc025e0cb724b14) } var fileDescriptor_5bc025e0cb724b14 = []byte{ - // 483 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0x15, 0x06, 0x5b, 0xe3, 0x6e, 0x6c, 0x33, 0xff, 0x82, 0xf8, 0xa3, 0x52, 0x4d, 0xa8, - 0x5c, 0x90, 0xa0, 0x71, 0x85, 0xb8, 0x2a, 0x15, 0x17, 0x13, 0x53, 0x91, 0x52, 0x04, 0x12, 0x37, - 0x96, 0xe3, 0x1c, 0x5a, 0xab, 0x8e, 0x13, 0x7c, 0x9c, 0x49, 0x7d, 0x2a, 0x1e, 0x86, 0x17, 0xe1, - 0x11, 0x90, 0x4f, 0x52, 0x58, 0x2f, 0xe0, 0xaa, 0x3e, 0xdf, 0xf7, 0xab, 0xf3, 0x7d, 0xc7, 0xec, - 0x71, 0x83, 0x42, 0xba, 0x25, 0x0a, 0x2b, 0x3d, 0x0a, 0xf4, 0x0e, 0x64, 0xa5, 0xed, 0x32, 0x6d, - 0x5c, 0xed, 0x6b, 0x3e, 0xa4, 0x1f, 0x4c, 0x03, 0x31, 0xfe, 0x11, 0xb1, 0x07, 0x73, 0xe9, 0x71, - 0xb1, 0x85, 0x3e, 0x5d, 0x2e, 0x3e, 0x36, 0x5e, 0xd7, 0x16, 0xf9, 0x53, 0x36, 0xf4, 0x06, 0x85, - 0x92, 0x42, 0x81, 0xf3, 0x49, 0x34, 0x8a, 0x26, 0x87, 0x79, 0xec, 0x0d, 0xce, 0xe4, 0x0c, 0x9c, - 0xe7, 0xcf, 0xd9, 0x31, 0xf9, 0x46, 0x83, 0xf5, 0x1d, 0x73, 0x83, 0x98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, 0x76, 0xc7, 0x81, 0x2c, 0x85, 0x91, 0xe8, 0x85, 0xbc, 0x92, 0xda, 0x04, 0x8b, 0x2a, 0x0e, - 0xf2, 0xd3, 0x60, 0x5d, 0x4a, 0xf4, 0xd3, 0xad, 0xc1, 0x5f, 0xb1, 0xbb, 0xc4, 0x23, 0x7c, 0x6f, - 0xc1, 0x2a, 0x10, 0xb6, 0xad, 0x0a, 0x70, 0xd4, 0xfa, 0x28, 0xe7, 0xc1, 0x5b, 0xf4, 0xd6, 0x9c, - 0x9c, 0xb0, 0xbb, 0xee, 0x1f, 0xda, 0x2a, 0xa0, 0xfa, 0x71, 0x1e, 0x13, 0x17, 0x04, 0xfe, 0x90, - 0x0d, 0xc8, 0x96, 0xc6, 0x24, 0xfb, 0xf4, 0xd5, 0x83, 0x30, 0x4f, 0x8d, 0x19, 0x9f, 0xb3, 0xfb, - 0x3b, 0x8d, 0xbf, 0x38, 0xed, 0xe1, 0xff, 0x95, 0xdf, 0xbd, 0xfd, 0xfa, 0x66, 0xa9, 0xfd, 0xaa, - 0x2d, 0x52, 0x55, 0x57, 0x59, 0x21, 0xbd, 0x5a, 0xa9, 0xda, 0x35, 0x59, 0x63, 0x28, 0xcd, 0x4b, - 0x54, 0x2b, 0xa8, 0x24, 0x66, 0x45, 0xab, 0x4d, 0x99, 0x2d, 0xeb, 0xac, 0x7b, 0x87, 0x2c, 0xbc, - 0x43, 0xb1, 0x4f, 0xc3, 0xeb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x5c, 0xb0, 0x90, 0x1f, - 0x03, 0x00, 0x00, + // 495 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x5f, 0x6f, 0xd3, 0x30, + 0x14, 0xc5, 0x15, 0x06, 0x5b, 0xe3, 0x76, 0x6c, 0x33, 0x7f, 0x16, 0xc4, 0x1f, 0x8d, 0x6a, 0x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 0xb7, 0x66, 0xe4, 0x84, 0xdd, 0x75, + 0xff, 0xd0, 0x56, 0x01, 0xd5, 0x8f, 0xf3, 0x98, 0xb8, 0x20, 0xf0, 0x47, 0x6c, 0x40, 0xb6, 0x34, + 0x26, 0xd9, 0xa5, 0xaf, 0xee, 0x85, 0x79, 0x62, 0xcc, 0xf8, 0x9c, 0x3d, 0xdc, 0x6a, 0xfc, 0xc5, + 0x69, 0x0f, 0xff, 0xaf, 0xfc, 0xfe, 0xdd, 0xd7, 0xb7, 0x0b, 0xed, 0x97, 0x6d, 0x91, 0xaa, 0xba, + 0xca, 0x0a, 0xe9, 0xd5, 0x52, 0xd5, 0xae, 0xc9, 0x1a, 0x43, 0x69, 0x5e, 0xa1, 0x5a, 0x42, 0x25, + 0x31, 0x2b, 0x5a, 0x6d, 0xca, 0x6c, 0x51, 0x67, 0xdd, 0x3b, 0x64, 0xe1, 0x1d, 0x8a, 0x5d, 0x1a, + 0xde, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xb0, 0xa5, 0x50, 0x38, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go index 5767ae7c..226eaf9d 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go @@ -8,6 +8,33 @@ import ( func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions_Conn, bool) { switch backend { + case "natsstreaming": + asserted, ok := connArgs.(args.NatsStreamingConn) + if !ok { + return nil, false + } + + return &ConnectionOptions_NatsStreaming{ + NatsStreaming: &asserted, + }, true + case "postgres": + asserted, ok := connArgs.(args.PostgresConn) + if !ok { + return nil, false + } + + return &ConnectionOptions_Postgres{ + Postgres: &asserted, + }, true + case "pulsar": + asserted, ok := connArgs.(args.PulsarConn) + if !ok { + return nil, false + } + + return &ConnectionOptions_Pulsar{ + Pulsar: &asserted, + }, true case "rabbit": asserted, ok := connArgs.(args.RabbitConn) if !ok { @@ -26,32 +53,23 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_RabbitStreams{ RabbitStreams: &asserted, }, true - case "mqtt": - asserted, ok := connArgs.(args.MQTTConn) - if !ok { - return nil, false - } - - return &ConnectionOptions_Mqtt{ - Mqtt: &asserted, - }, true - case "gcppubsub": - asserted, ok := connArgs.(args.GCPPubSubConn) + case "redispubsub": + asserted, ok := connArgs.(args.RedisPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_GcpPubsub{ - GcpPubsub: &asserted, + return &ConnectionOptions_RedisPubsub{ + RedisPubsub: &asserted, }, true - case "awssqs": - asserted, ok := connArgs.(args.AWSSQSConn) + case "activemq": + asserted, ok := connArgs.(args.ActiveMQConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSqs{ - AwsSqs: &asserted, + return &ConnectionOptions_ActiveMq{ + ActiveMq: &asserted, }, true case "awssns": asserted, ok := connArgs.(args.AWSSNSConn) @@ -62,59 +80,59 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_AwsSns{ AwsSns: &asserted, }, true - case "mongo": - asserted, ok := connArgs.(args.MongoConn) + case "azureeventhub": + asserted, ok := connArgs.(args.AzureEventHubConn) if !ok { return nil, false } - return &ConnectionOptions_Mongo{ - Mongo: &asserted, + return &ConnectionOptions_AzureEventHub{ + AzureEventHub: &asserted, }, true - case "nats": - asserted, ok := connArgs.(args.NatsConn) + case "gcppubsub": + asserted, ok := connArgs.(args.GCPPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_Nats{ - Nats: &asserted, + return &ConnectionOptions_GcpPubsub{ + GcpPubsub: &asserted, }, true - case "nsq": - asserted, ok := connArgs.(args.NSQConn) + case "mongo": + asserted, ok := connArgs.(args.MongoConn) if !ok { return nil, false } - return &ConnectionOptions_Nsq{ - Nsq: &asserted, + return &ConnectionOptions_Mongo{ + Mongo: &asserted, }, true - case "redispubsub": - asserted, ok := connArgs.(args.RedisPubSubConn) + case "redisstreams": + asserted, ok := connArgs.(args.RedisStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_RedisPubsub{ - RedisPubsub: &asserted, + return &ConnectionOptions_RedisStreams{ + RedisStreams: &asserted, }, true - case "azureeventhub": - asserted, ok := connArgs.(args.AzureEventHubConn) + case "azureservicebus": + asserted, ok := connArgs.(args.AzureServiceBusConn) if !ok { return nil, false } - return &ConnectionOptions_AzureEventHub{ - AzureEventHub: &asserted, + return &ConnectionOptions_AzureServiceBus{ + AzureServiceBus: &asserted, }, true - case "natsjetstream": - asserted, ok := connArgs.(args.NatsJetstreamConn) + case "awskinesis": + asserted, ok := connArgs.(args.AWSKinesisConn) if !ok { return nil, false } - return &ConnectionOptions_NatsJetstream{ - NatsJetstream: &asserted, + return &ConnectionOptions_AwsKinesis{ + AwsKinesis: &asserted, }, true case "kafka": asserted, ok := connArgs.(args.KafkaConn) @@ -125,77 +143,59 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_Kafka{ Kafka: &asserted, }, true - case "activemq": - asserted, ok := connArgs.(args.ActiveMQConn) - if !ok { - return nil, false - } - - return &ConnectionOptions_ActiveMq{ - ActiveMq: &asserted, - }, true - case "natsstreaming": - asserted, ok := connArgs.(args.NatsStreamingConn) - if !ok { - return nil, false - } - - return &ConnectionOptions_NatsStreaming{ - NatsStreaming: &asserted, - }, true - case "pulsar": - asserted, ok := connArgs.(args.PulsarConn) + case "awssqs": + asserted, ok := connArgs.(args.AWSSQSConn) if !ok { return nil, false } - return &ConnectionOptions_Pulsar{ - Pulsar: &asserted, + return &ConnectionOptions_AwsSqs{ + AwsSqs: &asserted, }, true - case "postgres": - asserted, ok := connArgs.(args.PostgresConn) + case "natsjetstream": + asserted, ok := connArgs.(args.NatsJetstreamConn) if !ok { return nil, false } - return &ConnectionOptions_Postgres{ - Postgres: &asserted, + return &ConnectionOptions_NatsJetstream{ + NatsJetstream: &asserted, }, true - case "redisstreams": - asserted, ok := connArgs.(args.RedisStreamsConn) + case "nats": + asserted, ok := connArgs.(args.NatsConn) if !ok { return nil, false } - return &ConnectionOptions_RedisStreams{ - RedisStreams: &asserted, + return &ConnectionOptions_Nats{ + Nats: &asserted, }, true - case "azureservicebus": - asserted, ok := connArgs.(args.AzureServiceBusConn) + case "kubemqqueue": + asserted, ok := connArgs.(args.KubeMQQueueConn) if !ok { return nil, false } - return &ConnectionOptions_AzureServiceBus{ - AzureServiceBus: &asserted, + return &ConnectionOptions_KubemqQueue{ + KubemqQueue: &asserted, }, true - case "kubemqqueue": - asserted, ok := connArgs.(args.KubeMQQueueConn) + case "nsq": + asserted, ok := connArgs.(args.NSQConn) if !ok { return nil, false } - return &ConnectionOptions_KubemqQueue{ - KubemqQueue: &asserted, + return &ConnectionOptions_Nsq{ + Nsq: &asserted, }, true - case "awskinesis": - asserted, ok := connArgs.(args.AWSKinesisConn) + case "mqtt": + asserted, ok := connArgs.(args.MQTTConn) if !ok { return nil, false } - return &ConnectionOptions_AwsKinesis{ - AwsKinesis: &asserted, + return &ConnectionOptions_Mqtt{ + Mqtt: &asserted, }, true default: return nil, false diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go index 2693980e..6708edd0 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go @@ -125,7 +125,9 @@ type CLIOptions struct { // @gotags: kong:"cmd,help='Control Batch resources via the public API'" Batch *BatchOptions `protobuf:"bytes,6,opt,name=batch,proto3" json:"batch,omitempty" kong:"cmd,help='Control Batch resources via the public API'"` // @gotags: kong:"cmd,help='Run plumber in server mode'" - Server *ServerOptions `protobuf:"bytes,7,opt,name=server,proto3" json:"server,omitempty" kong:"cmd,help='Run plumber in server mode'"` + Server *ServerOptions `protobuf:"bytes,7,opt,name=server,proto3" json:"server,omitempty" kong:"cmd,help='Run plumber in server mode'"` + // @gotags: kong:"cmd,help='Manage plumber server'" + Manage *ManageOptions `protobuf:"bytes,8,opt,name=manage,proto3" json:"manage,omitempty" kong:"cmd,help='Manage plumber server'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -205,6 +207,13 @@ func (m *CLIOptions) GetServer() *ServerOptions { return nil } +func (m *CLIOptions) GetManage() *ManageOptions { + if m != nil { + return m.Manage + } + return nil +} + func init() { proto.RegisterType((*GlobalCLIOptions)(nil), "protos.opts.GlobalCLIOptions") proto.RegisterType((*CLIOptions)(nil), "protos.opts.CLIOptions") @@ -213,31 +222,32 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_cli.proto", fileDescriptor_e6a10a7c41f3437b) } var fileDescriptor_e6a10a7c41f3437b = []byte{ - // 411 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcf, 0x8a, 0xd5, 0x30, - 0x14, 0xc6, 0xe9, 0x38, 0xb7, 0x1d, 0x53, 0x04, 0x09, 0xa2, 0x99, 0x82, 0x30, 0x8c, 0x9b, 0x59, - 0x68, 0x03, 0x15, 0x17, 0xe2, 0xca, 0x3b, 0xa0, 0x08, 0x82, 0x50, 0x05, 0xc1, 0x4d, 0x49, 0xd2, - 0xd8, 0x5b, 0x4c, 0x9b, 0x9a, 0x3f, 0x23, 0x3e, 0x97, 0x2f, 0xa5, 0xe2, 0x43, 0x48, 0x4e, 0xee, - 0x2d, 0xd3, 0x4b, 0x57, 0xe5, 0x9c, 0xdf, 0xf7, 0x9d, 0x2f, 0x27, 0x0d, 0x7a, 0xa8, 0x27, 0x67, - 0xe9, 0x64, 0x9b, 0xf0, 0x6d, 0x84, 0xea, 0xcb, 0xc9, 0x68, 0xa7, 0x71, 0x0e, 0x1f, 0x5b, 0x86, - 0x76, 0x41, 0x16, 0x22, 0xce, 0x9c, 0xd8, 0x45, 0x59, 0x71, 0xbe, 0x20, 0xce, 0x8f, 0xa3, 0x54, - 0x7b, 0xf4, 0x68, 0x81, 0x8c, 0x64, 0xed, 0x1e, 0x90, 0x23, 0xa0, 0xd8, 0xcf, 0xd5, 0x69, 0x56, - 0x9a, 0x1b, 0x69, 0x56, 0x4d, 0x3f, 0x4c, 0xef, 0x64, 0x24, 0x97, 0xbf, 0x12, 0x74, 0xff, 0xad, - 0xd2, 0x9c, 0xa9, 0xeb, 0xf7, 0xef, 0x3e, 0x4c, 0xae, 0xd7, 0xa3, 0xc5, 0x0f, 0xd0, 0xa6, 0x95, - 0xdc, 0x77, 0x24, 0xb9, 0x48, 0xae, 0xce, 0xea, 0x58, 0x84, 0xee, 0x77, 0xdf, 0x4b, 0x47, 0x4e, - 0x62, 0x17, 0x0a, 0x4c, 0x50, 0x76, 0x23, 0x8d, 0xed, 0xf5, 0x48, 0xee, 0x40, 0xff, 0x50, 0xe2, - 0x27, 0xe8, 0x5e, 0xf3, 0xd5, 0x2b, 0xd5, 0x08, 0x3d, 0x0c, 0x6c, 0x6c, 0xc9, 0xef, 0xec, 0x22, - 0xb9, 0xba, 0x5b, 0xe7, 0x6f, 0xbc, 0x52, 0xd7, 0xb1, 0x17, 0xec, 0x0d, 0x13, 0x21, 0x96, 0xfc, - 0x89, 0x38, 0x7d, 0x0d, 0x25, 0x2e, 0xd0, 0x59, 0xc3, 0x99, 0xf8, 0x26, 0xc7, 0x96, 0xfc, 0x8d, - 0x28, 0xdb, 0xc6, 0xfa, 0xf2, 0xdf, 0x09, 0x42, 0xb7, 0xce, 0xfb, 0x02, 0xa5, 0x1d, 0xec, 0x00, - 0x07, 0xce, 0xab, 0xc7, 0xe5, 0xad, 0xfb, 0x2f, 0x8f, 0xd7, 0xab, 0xf7, 0x62, 0xfc, 0x14, 0x9d, - 0x86, 0x8b, 0x85, 0x7d, 0xf2, 0x8a, 0x2c, 0x4c, 0xb5, 0x64, 0xed, 0x41, 0x0f, 0x2a, 0x4c, 0xd1, - 0x06, 0x2e, 0x0e, 0xd6, 0xcc, 0xab, 0xf3, 0x85, 0xfc, 0x73, 0x20, 0x07, 0x7d, 0xd4, 0x05, 0x03, - 0xfc, 0x1e, 0x72, 0xba, 0x62, 0xa8, 0x03, 0x99, 0x0d, 0xa0, 0xc3, 0x15, 0x4a, 0xe3, 0x1b, 0x20, - 0x1b, 0x70, 0x14, 0x0b, 0xc7, 0x27, 0x40, 0xf3, 0x0e, 0x51, 0x19, 0x42, 0xe0, 0x45, 0x91, 0x74, - 0x25, 0x64, 0x1b, 0xc8, 0x1c, 0x02, 0xba, 0x10, 0x12, 0x9f, 0x06, 0xc9, 0x56, 0x42, 0x3e, 0x02, - 0x9a, 0x43, 0xa2, 0x72, 0xfb, 0xea, 0xcb, 0xcb, 0xae, 0x77, 0x3b, 0xcf, 0x4b, 0xa1, 0x07, 0x0a, - 0x73, 0x84, 0x36, 0x13, 0x9d, 0x94, 0x1f, 0xb8, 0x34, 0xcf, 0xac, 0xd8, 0xc9, 0x81, 0x59, 0xca, - 0x7d, 0xaf, 0x5a, 0xda, 0x69, 0x1a, 0x47, 0xd2, 0x30, 0x92, 0xa7, 0x50, 0x3c, 0xff, 0x1f, 0x00, - 0x00, 0xff, 0xff, 0xd5, 0x86, 0xc1, 0x7d, 0x2c, 0x03, 0x00, 0x00, + // 432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x8a, 0xd4, 0x30, + 0x14, 0xc6, 0x19, 0x77, 0xa7, 0x33, 0xa6, 0x08, 0x12, 0x44, 0xb3, 0x05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b6, 0xd0, 0x66, 0xa0, 0x83, 0xf2, 0x1d, 0x97, 0xe6, 0x99, 0x15, + 0x7b, 0xd9, 0x31, 0x4b, 0xb9, 0x6f, 0x55, 0x4d, 0x1b, 0x4d, 0xe3, 0x48, 0x1a, 0x46, 0xf2, 0x04, + 0x8a, 0xe7, 0x37, 0x01, 0x00, 0x00, 0xff, 0xff, 0x96, 0xb4, 0xaa, 0x76, 0x7b, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go new file mode 100644 index 00000000..ad0dde4e --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go @@ -0,0 +1,496 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: opts/ps_opts_manage.proto + +package opts + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type ManageOptions struct { + // @gotags: kong:"embed" + GlobalOptions *GlobalManageOptions `protobuf:"bytes,1,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty" kong:"embed"` + // @gotags: kong:"cmd,help='Get resource(s) from plumber server'" + Get *GetOptions `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty" kong:"cmd,help='Get resource(s) from plumber server'"` + // @gotags: kong:"cmd,help='Create resources in plumber server'" + Create *CreateOptions `protobuf:"bytes,3,opt,name=create,proto3" json:"create,omitempty" kong:"cmd,help='Create resources in plumber server'"` + // @gotags: kong:"cmd,help='Delete resources in plumber server'" + Delete *DeleteOptions `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty" kong:"cmd,help='Delete resources in plumber server'"` + // @gotags: kong:"cmd,help='Stop resources in plumber server'" + Stop *StopOptions `protobuf:"bytes,6,opt,name=stop,proto3" json:"stop,omitempty" kong:"cmd,help='Stop resources in plumber server'"` + // @gotags: kong:"cmd,help='Resume/Start resources in plumber server'" + Resume *ResumeOptions `protobuf:"bytes,7,opt,name=resume,proto3" json:"resume,omitempty" kong:"cmd,help='Resume/Start resources in plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ManageOptions) Reset() { *m = ManageOptions{} } +func (m *ManageOptions) String() string { return proto.CompactTextString(m) } +func (*ManageOptions) ProtoMessage() {} +func (*ManageOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{0} +} + +func (m *ManageOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ManageOptions.Unmarshal(m, b) +} +func (m *ManageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ManageOptions.Marshal(b, m, deterministic) +} +func (m *ManageOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ManageOptions.Merge(m, src) +} +func (m *ManageOptions) XXX_Size() int { + return xxx_messageInfo_ManageOptions.Size(m) +} +func (m *ManageOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ManageOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ManageOptions proto.InternalMessageInfo + +func (m *ManageOptions) GetGlobalOptions() *GlobalManageOptions { + if m != nil { + return m.GlobalOptions + } + return nil +} + +func (m *ManageOptions) GetGet() *GetOptions { + if m != nil { + return m.Get + } + return nil +} + +func (m *ManageOptions) GetCreate() *CreateOptions { + if m != nil { + return m.Create + } + return nil +} + +func (m *ManageOptions) GetDelete() *DeleteOptions { + if m != nil { + return m.Delete + } + return nil +} + +func (m *ManageOptions) GetStop() *StopOptions { + if m != nil { + return m.Stop + } + return nil +} + +func (m *ManageOptions) GetResume() *ResumeOptions { + if m != nil { + return m.Resume + } + return nil +} + +type GlobalManageOptions struct { + // @gotags: kong:"help='Plumber server gRPC API address',default='localhost:9090'" + ServerAddress string `protobuf:"bytes,1,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty" kong:"help='Plumber server gRPC API address',default='localhost:9090'"` + // @gotags: kong:"help='Plumber server auth token',default='batchcorp'" + ServerToken string `protobuf:"bytes,2,opt,name=server_token,json=serverToken,proto3" json:"server_token,omitempty" kong:"help='Plumber server auth token',default='batchcorp'"` + // @gotags: kong:"help='Use TLS when talking to plumber server',default='false'" + ServerUseTls bool `protobuf:"varint,3,opt,name=server_use_tls,json=serverUseTls,proto3" json:"server_use_tls,omitempty" kong:"help='Use TLS when talking to plumber server',default='false'"` + // @gotags: kong:"help='Skip TLS server certificate verification',default='false'" + ServerInsecureTls bool `protobuf:"varint,4,opt,name=server_insecure_tls,json=serverInsecureTls,proto3" json:"server_insecure_tls,omitempty" kong:"help='Skip TLS server certificate verification',default='false'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GlobalManageOptions) Reset() { *m = GlobalManageOptions{} } +func (m *GlobalManageOptions) String() string { return proto.CompactTextString(m) } +func (*GlobalManageOptions) ProtoMessage() {} +func (*GlobalManageOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{1} +} + +func (m *GlobalManageOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GlobalManageOptions.Unmarshal(m, b) +} +func (m *GlobalManageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GlobalManageOptions.Marshal(b, m, deterministic) +} +func (m *GlobalManageOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GlobalManageOptions.Merge(m, src) +} +func (m *GlobalManageOptions) XXX_Size() int { + return xxx_messageInfo_GlobalManageOptions.Size(m) +} +func (m *GlobalManageOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GlobalManageOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GlobalManageOptions proto.InternalMessageInfo + +func (m *GlobalManageOptions) GetServerAddress() string { + if m != nil { + return m.ServerAddress + } + return "" +} + +func (m *GlobalManageOptions) GetServerToken() string { + if m != nil { + return m.ServerToken + } + return "" +} + +func (m *GlobalManageOptions) GetServerUseTls() bool { + if m != nil { + return m.ServerUseTls + } + return false +} + +func (m *GlobalManageOptions) GetServerInsecureTls() bool { + if m != nil { + return m.ServerInsecureTls + } + return false +} + +type GetOptions struct { + // @gotags: kong:"cmd,help='Get connection(s) from plumber server'" + Connection *GetConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Get connection(s) from plumber server'"` + // @gotags: kong:"cmd,help='Get relay(s) from plumber server'" + Relay *GetRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Get relay(s) from plumber server'"` + // @gotags: kong:"cmd,help='Get tunnel(s) from plumber server'" + Tunnel *GetTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Get tunnel(s) from plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetOptions) Reset() { *m = GetOptions{} } +func (m *GetOptions) String() string { return proto.CompactTextString(m) } +func (*GetOptions) ProtoMessage() {} +func (*GetOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{2} +} + +func (m *GetOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetOptions.Unmarshal(m, b) +} +func (m *GetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetOptions.Marshal(b, m, deterministic) +} +func (m *GetOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetOptions.Merge(m, src) +} +func (m *GetOptions) XXX_Size() int { + return xxx_messageInfo_GetOptions.Size(m) +} +func (m *GetOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GetOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GetOptions proto.InternalMessageInfo + +func (m *GetOptions) GetConnection() *GetConnectionOptions { + if m != nil { + return m.Connection + } + return nil +} + +func (m *GetOptions) GetRelay() *GetRelayOptions { + if m != nil { + return m.Relay + } + return nil +} + +func (m *GetOptions) GetTunnel() *GetTunnelOptions { + if m != nil { + return m.Tunnel + } + return nil +} + +type CreateOptions struct { + // @gotags: kong:"cmd,help='Create connection in plumber server'" + Connection *CreateConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Create connection in plumber server'"` + // @gotags: kong:"cmd,help='Create relay in plumber server'" + Relay *CreateRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Create relay in plumber server'"` + // @gotags: kong:"cmd,help='Create tunnel in plumber server'" + Tunnel *CreateTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Create tunnel in plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateOptions) Reset() { *m = CreateOptions{} } +func (m *CreateOptions) String() string { return proto.CompactTextString(m) } +func (*CreateOptions) ProtoMessage() {} +func (*CreateOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{3} +} + +func (m *CreateOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateOptions.Unmarshal(m, b) +} +func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateOptions.Marshal(b, m, deterministic) +} +func (m *CreateOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateOptions.Merge(m, src) +} +func (m *CreateOptions) XXX_Size() int { + return xxx_messageInfo_CreateOptions.Size(m) +} +func (m *CreateOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CreateOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateOptions proto.InternalMessageInfo + +func (m *CreateOptions) GetConnection() *CreateConnectionOptions { + if m != nil { + return m.Connection + } + return nil +} + +func (m *CreateOptions) GetRelay() *CreateRelayOptions { + if m != nil { + return m.Relay + } + return nil +} + +func (m *CreateOptions) GetTunnel() *CreateTunnelOptions { + if m != nil { + return m.Tunnel + } + return nil +} + +type DeleteOptions struct { + // @gotags: kong:"cmd,help='Delete connection in plumber server'" + Connection *DeleteConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Delete connection in plumber server'"` + // @gotags: kong:"cmd,help='Delete relay in plumber server'" + Relay *DeleteRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Delete relay in plumber server'"` + // @gotags: kong:"cmd,help='Delete tunnel in plumber server'" + Tunnel *DeleteTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Delete tunnel in plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } +func (m *DeleteOptions) String() string { return proto.CompactTextString(m) } +func (*DeleteOptions) ProtoMessage() {} +func (*DeleteOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{4} +} + +func (m *DeleteOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteOptions.Unmarshal(m, b) +} +func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteOptions.Marshal(b, m, deterministic) +} +func (m *DeleteOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteOptions.Merge(m, src) +} +func (m *DeleteOptions) XXX_Size() int { + return xxx_messageInfo_DeleteOptions.Size(m) +} +func (m *DeleteOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteOptions proto.InternalMessageInfo + +func (m *DeleteOptions) GetConnection() *DeleteConnectionOptions { + if m != nil { + return m.Connection + } + return nil +} + +func (m *DeleteOptions) GetRelay() *DeleteRelayOptions { + if m != nil { + return m.Relay + } + return nil +} + +func (m *DeleteOptions) GetTunnel() *DeleteTunnelOptions { + if m != nil { + return m.Tunnel + } + return nil +} + +type StopOptions struct { + // @gotags: kong:"cmd,help='Stop relay in plumber server'" + Relay *StopRelayOptions `protobuf:"bytes,1,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Stop relay in plumber server'"` + // @gotags: kong:"cmd,help='Stop tunnel in plumber server'" + Tunnel *StopTunnelOptions `protobuf:"bytes,2,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Stop tunnel in plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopOptions) Reset() { *m = StopOptions{} } +func (m *StopOptions) String() string { return proto.CompactTextString(m) } +func (*StopOptions) ProtoMessage() {} +func (*StopOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{5} +} + +func (m *StopOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopOptions.Unmarshal(m, b) +} +func (m *StopOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopOptions.Marshal(b, m, deterministic) +} +func (m *StopOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopOptions.Merge(m, src) +} +func (m *StopOptions) XXX_Size() int { + return xxx_messageInfo_StopOptions.Size(m) +} +func (m *StopOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StopOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StopOptions proto.InternalMessageInfo + +func (m *StopOptions) GetRelay() *StopRelayOptions { + if m != nil { + return m.Relay + } + return nil +} + +func (m *StopOptions) GetTunnel() *StopTunnelOptions { + if m != nil { + return m.Tunnel + } + return nil +} + +type ResumeOptions struct { + // @gotags: kong:"cmd,help='Resume/Start relay in plumber server'" + Relay *ResumeRelayOptions `protobuf:"bytes,1,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Resume/Start relay in plumber server'"` + // @gotags: kong:"cmd,help='Resume/Start tunnel in plumber server'" + Tunnel *ResumeTunnelOptions `protobuf:"bytes,2,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Resume/Start tunnel in plumber server'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResumeOptions) Reset() { *m = ResumeOptions{} } +func (m *ResumeOptions) String() string { return proto.CompactTextString(m) } +func (*ResumeOptions) ProtoMessage() {} +func (*ResumeOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_1d5f0e150eafe5f0, []int{6} +} + +func (m *ResumeOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeOptions.Unmarshal(m, b) +} +func (m *ResumeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeOptions.Marshal(b, m, deterministic) +} +func (m *ResumeOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeOptions.Merge(m, src) +} +func (m *ResumeOptions) XXX_Size() int { + return xxx_messageInfo_ResumeOptions.Size(m) +} +func (m *ResumeOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeOptions proto.InternalMessageInfo + +func (m *ResumeOptions) GetRelay() *ResumeRelayOptions { + if m != nil { + return m.Relay + } + return nil +} + +func (m *ResumeOptions) GetTunnel() *ResumeTunnelOptions { + if m != nil { + return m.Tunnel + } + return nil +} + +func init() { + proto.RegisterType((*ManageOptions)(nil), "protos.opts.ManageOptions") + proto.RegisterType((*GlobalManageOptions)(nil), "protos.opts.GlobalManageOptions") + proto.RegisterType((*GetOptions)(nil), "protos.opts.GetOptions") + proto.RegisterType((*CreateOptions)(nil), "protos.opts.CreateOptions") + proto.RegisterType((*DeleteOptions)(nil), "protos.opts.DeleteOptions") + proto.RegisterType((*StopOptions)(nil), "protos.opts.StopOptions") + proto.RegisterType((*ResumeOptions)(nil), "protos.opts.ResumeOptions") +} + +func init() { proto.RegisterFile("opts/ps_opts_manage.proto", fileDescriptor_1d5f0e150eafe5f0) } + +var fileDescriptor_1d5f0e150eafe5f0 = []byte{ + // 557 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xd1, 0x8a, 0xd3, 0x4c, + 0x14, 0xc7, 0x49, 0xb7, 0xed, 0xb7, 0x3b, 0xfd, 0xb2, 0xe8, 0xec, 0x85, 0xb1, 0xa8, 0xdb, 0x2d, + 0x15, 0x14, 0x34, 0x81, 0x2e, 0x2b, 0x8a, 0x57, 0xeb, 0x2e, 0x2c, 0x0a, 0x22, 0xc4, 0x7a, 0xe3, + 0x4d, 0x48, 0xd2, 0x43, 0x5a, 0x9c, 0x64, 0xc2, 0xcc, 0x44, 0xd0, 0x2b, 0x5f, 0xca, 0x1b, 0x1f, + 0xc0, 0x17, 0xf0, 0x85, 0x64, 0xe6, 0x24, 0x69, 0x53, 0xc7, 0x45, 0xf1, 0x2a, 0xe4, 0x9c, 0xdf, + 0xff, 0x9c, 0xf9, 0x9f, 0x39, 0x43, 0x6e, 0xf3, 0x52, 0xc9, 0xa0, 0x94, 0x91, 0xfe, 0x46, 0x79, + 0x5c, 0xc4, 0x19, 0xf8, 0xa5, 0xe0, 0x8a, 0xd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0x4f, 0x7d, 0xef, 0x17, 0x95, 0xbd, 0xf7, 0x17, 0x87, 0xb8, 0x9d, + 0x27, 0xba, 0xb1, 0xef, 0x58, 0xec, 0x23, 0x7a, 0xbd, 0xfd, 0x9e, 0xc5, 0x3e, 0xea, 0xac, 0x47, + 0x78, 0xf1, 0xfc, 0xfd, 0xb3, 0x6c, 0xad, 0x56, 0x55, 0xe2, 0xa7, 0x3c, 0x0f, 0x92, 0x58, 0xa5, + 0xab, 0x94, 0x8b, 0x32, 0x28, 0x59, 0x95, 0x27, 0x20, 0x1e, 0xcb, 0x74, 0x05, 0x79, 0x2c, 0x83, + 0xa4, 0x5a, 0xb3, 0x65, 0x90, 0xf1, 0x00, 0x0b, 0x07, 0xba, 0x70, 0x32, 0x34, 0x3f, 0xa7, 0x3f, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x71, 0x7f, 0xf6, 0xac, 0x32, 0x06, 0x00, 0x00, +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_connection.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_connection.pb.go new file mode 100644 index 00000000..3dfae7d8 --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_connection.pb.go @@ -0,0 +1,404 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: opts/ps_opts_manage_connection.proto + +package opts + +import ( + fmt "fmt" + args "github.com/batchcorp/plumber-schemas/build/go/protos/args" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetConnectionOptions struct { + // @gotags: kong:"help='ID of the connection to get (leave empty to get all)'" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the connection to get (leave empty to get all)'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetConnectionOptions) Reset() { *m = GetConnectionOptions{} } +func (m *GetConnectionOptions) String() string { return proto.CompactTextString(m) } +func (*GetConnectionOptions) ProtoMessage() {} +func (*GetConnectionOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_135d08c7ffd8961f, []int{0} +} + +func (m *GetConnectionOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetConnectionOptions.Unmarshal(m, b) +} +func (m *GetConnectionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetConnectionOptions.Marshal(b, m, deterministic) +} +func (m *GetConnectionOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetConnectionOptions.Merge(m, src) +} +func (m *GetConnectionOptions) XXX_Size() int { + return xxx_messageInfo_GetConnectionOptions.Size(m) +} +func (m *GetConnectionOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GetConnectionOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GetConnectionOptions proto.InternalMessageInfo + +func (m *GetConnectionOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type CreateConnectionOptions struct { + // @gotags: kong:"help='Optional friendly name for the connection'" + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" kong:"help='Optional friendly name for the connection'"` + // @gotags: kong:"help='Optional notes to associate with the connection'" + Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Optional notes to associate with the connection'"` + // @gotags: kong:"cmd,help='Apache Kafka'" + Kafka *args.KafkaConn `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` + // @gotags: kong:"cmd,help='ActiveMQ'" + ActiveMq *args.ActiveMQConn `protobuf:"bytes,101,opt,name=active_mq,json=activeMq,proto3" json:"active_mq,omitempty" kong:"cmd,help='ActiveMQ'"` + // @gotags: kong:"cmd,help='AWS Simple Queue Service'" + AwsSqs *args.AWSSQSConn `protobuf:"bytes,102,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue Service'"` + // @gotags: kong:"cmd,help='AWS Simple Notification Service'" + AwsSns *args.AWSSNSConn `protobuf:"bytes,103,opt,name=aws_sns,json=awsSns,proto3" json:"aws_sns,omitempty" kong:"cmd,help='AWS Simple Notification Service'"` + // @gotags: kong:"cmd,help='Mongo (CDC)'" + Mongo *args.MongoConn `protobuf:"bytes,104,opt,name=mongo,proto3" json:"mongo,omitempty" kong:"cmd,help='Mongo (CDC)'"` + // @gotags: kong:"cmd,help='NATS PubSub'" + Nats *args.NatsConn `protobuf:"bytes,105,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS PubSub'"` + // @gotags: kong:"cmd,help='NATS Streaming (deprecated)'" + NatsStreaming *args.NatsStreamingConn `protobuf:"bytes,106,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming (deprecated)'"` + // @gotags: kong:"cmd,help='NSQ'" + Nsq *args.NSQConn `protobuf:"bytes,107,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` + // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" + Postgres *args.PostgresConn `protobuf:"bytes,108,opt,name=postgres,proto3" json:"postgres,omitempty" kong:"cmd,help='PostgreSQL (CDC)'"` + // @gotags: kong:"cmd,help='Pulsar'" + Pulsar *args.PulsarConn `protobuf:"bytes,109,opt,name=pulsar,proto3" json:"pulsar,omitempty" kong:"cmd,help='Pulsar'"` + // @gotags: kong:"cmd,help='Rabbit'" + Rabbit *args.RabbitConn `protobuf:"bytes,110,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='Rabbit'"` + // @gotags: kong:"cmd,help='Rabbit Streams'" + RabbitStreams *args.RabbitStreamsConn `protobuf:"bytes,111,opt,name=rabbit_streams,json=rabbitStreams,proto3" json:"rabbit_streams,omitempty" kong:"cmd,help='Rabbit Streams'"` + // @gotags: kong:"cmd,help='Redis PubSub'" + RedisPubsub *args.RedisPubSubConn `protobuf:"bytes,112,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` + // @gotags: kong:"cmd,help='Redis Streams'" + RedisStreams *args.RedisStreamsConn `protobuf:"bytes,113,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` + // @gotags: kong:"cmd,help='Azure Event Hub'" + AzureEventHub *args.AzureEventHubConn `protobuf:"bytes,114,opt,name=azure_event_hub,json=azureEventHub,proto3" json:"azure_event_hub,omitempty" kong:"cmd,help='Azure Event Hub'"` + // @gotags: kong:"cmd,help='Azure Service Bus'" + AzureServiceBus *args.AzureServiceBusConn `protobuf:"bytes,115,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` + // @gotags: kong:"cmd,help='MQTT'" + Mqtt *args.MQTTConn `protobuf:"bytes,116,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` + // @gotags: kong:"cmd,help='KubeMQ Queue'" + KubemqQueue *args.KubeMQQueueConn `protobuf:"bytes,117,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` + // @gotags: kong:"cmd,help='Google Cloud Pub/Sub'" + GcpPubsub *args.GCPPubSubConn `protobuf:"bytes,118,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Pub/Sub'"` + // @gotags: kong:"cmd,help='NATS JetStream'" + NatsJetstream *args.NatsJetstreamConn `protobuf:"bytes,119,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` + // @gotags: kong:"cmd,help='AWS Kinesis'" + AwsKinesis *args.AWSKinesisConn `protobuf:"bytes,120,opt,name=aws_kinesis,json=awsKinesis,proto3" json:"aws_kinesis,omitempty" kong:"cmd,help='AWS Kinesis'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateConnectionOptions) Reset() { *m = CreateConnectionOptions{} } +func (m *CreateConnectionOptions) String() string { return proto.CompactTextString(m) } +func (*CreateConnectionOptions) ProtoMessage() {} +func (*CreateConnectionOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_135d08c7ffd8961f, []int{1} +} + +func (m *CreateConnectionOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateConnectionOptions.Unmarshal(m, b) +} +func (m *CreateConnectionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateConnectionOptions.Marshal(b, m, deterministic) +} +func (m *CreateConnectionOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateConnectionOptions.Merge(m, src) +} +func (m *CreateConnectionOptions) XXX_Size() int { + return xxx_messageInfo_CreateConnectionOptions.Size(m) +} +func (m *CreateConnectionOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CreateConnectionOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateConnectionOptions proto.InternalMessageInfo + +func (m *CreateConnectionOptions) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateConnectionOptions) GetNotes() string { + if m != nil { + return m.Notes + } + return "" +} + +func (m *CreateConnectionOptions) GetKafka() *args.KafkaConn { + if m != nil { + return m.Kafka + } + return nil +} + +func (m *CreateConnectionOptions) GetActiveMq() *args.ActiveMQConn { + if m != nil { + return m.ActiveMq + } + return nil +} + +func (m *CreateConnectionOptions) GetAwsSqs() *args.AWSSQSConn { + if m != nil { + return m.AwsSqs + } + return nil +} + +func (m *CreateConnectionOptions) GetAwsSns() *args.AWSSNSConn { + if m != nil { + return m.AwsSns + } + return nil +} + +func (m *CreateConnectionOptions) GetMongo() *args.MongoConn { + if m != nil { + return m.Mongo + } + return nil +} + +func (m *CreateConnectionOptions) GetNats() *args.NatsConn { + if m != nil { + return m.Nats + } + return nil +} + +func (m *CreateConnectionOptions) GetNatsStreaming() *args.NatsStreamingConn { + if m != nil { + return m.NatsStreaming + } + return nil +} + +func (m *CreateConnectionOptions) GetNsq() *args.NSQConn { + if m != nil { + return m.Nsq + } + return nil +} + +func (m *CreateConnectionOptions) GetPostgres() *args.PostgresConn { + if m != nil { + return m.Postgres + } + return nil +} + +func (m *CreateConnectionOptions) GetPulsar() *args.PulsarConn { + if m != nil { + return m.Pulsar + } + return nil +} + +func (m *CreateConnectionOptions) GetRabbit() *args.RabbitConn { + if m != nil { + return m.Rabbit + } + return nil +} + +func (m *CreateConnectionOptions) GetRabbitStreams() *args.RabbitStreamsConn { + if m != nil { + return m.RabbitStreams + } + return nil +} + +func (m *CreateConnectionOptions) GetRedisPubsub() *args.RedisPubSubConn { + if m != nil { + return m.RedisPubsub + } + return nil +} + +func (m *CreateConnectionOptions) GetRedisStreams() *args.RedisStreamsConn { + if m != nil { + return m.RedisStreams + } + return nil +} + +func (m *CreateConnectionOptions) GetAzureEventHub() *args.AzureEventHubConn { + if m != nil { + return m.AzureEventHub + } + return nil +} + +func (m *CreateConnectionOptions) GetAzureServiceBus() *args.AzureServiceBusConn { + if m != nil { + return m.AzureServiceBus + } + return nil +} + +func (m *CreateConnectionOptions) GetMqtt() *args.MQTTConn { + if m != nil { + return m.Mqtt + } + return nil +} + +func (m *CreateConnectionOptions) GetKubemqQueue() *args.KubeMQQueueConn { + if m != nil { + return m.KubemqQueue + } + return nil +} + +func (m *CreateConnectionOptions) GetGcpPubsub() *args.GCPPubSubConn { + if m != nil { + return m.GcpPubsub + } + return nil +} + +func (m *CreateConnectionOptions) GetNatsJetstream() *args.NatsJetstreamConn { + if m != nil { + return m.NatsJetstream + } + return nil +} + +func (m *CreateConnectionOptions) GetAwsKinesis() *args.AWSKinesisConn { + if m != nil { + return m.AwsKinesis + } + return nil +} + +type DeleteConnectionOptions struct { + // @gotags: kong:"help='ID of the connection to delete',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the connection to delete',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteConnectionOptions) Reset() { *m = DeleteConnectionOptions{} } +func (m *DeleteConnectionOptions) String() string { return proto.CompactTextString(m) } +func (*DeleteConnectionOptions) ProtoMessage() {} +func (*DeleteConnectionOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_135d08c7ffd8961f, []int{2} +} + +func (m *DeleteConnectionOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteConnectionOptions.Unmarshal(m, b) +} +func (m *DeleteConnectionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteConnectionOptions.Marshal(b, m, deterministic) +} +func (m *DeleteConnectionOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteConnectionOptions.Merge(m, src) +} +func (m *DeleteConnectionOptions) XXX_Size() int { + return xxx_messageInfo_DeleteConnectionOptions.Size(m) +} +func (m *DeleteConnectionOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteConnectionOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteConnectionOptions proto.InternalMessageInfo + +func (m *DeleteConnectionOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func init() { + proto.RegisterType((*GetConnectionOptions)(nil), "protos.opts.GetConnectionOptions") + proto.RegisterType((*CreateConnectionOptions)(nil), "protos.opts.CreateConnectionOptions") + proto.RegisterType((*DeleteConnectionOptions)(nil), "protos.opts.DeleteConnectionOptions") +} + +func init() { + proto.RegisterFile("opts/ps_opts_manage_connection.proto", fileDescriptor_135d08c7ffd8961f) +} + +var fileDescriptor_135d08c7ffd8961f = []byte{ + // 795 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x96, 0xdf, 0x4f, 0xdb, 0x3a, + 0x14, 0xc7, 0x05, 0xf7, 0xc2, 0xa5, 0xee, 0x2d, 0x57, 0xd7, 0x62, 0xd4, 0x94, 0xc1, 0xba, 0x0a, + 0x21, 0x90, 0xb6, 0x66, 0xda, 0xb4, 0x49, 0x68, 0x93, 0x26, 0x60, 0x8c, 0x69, 0xac, 0xac, 0x25, + 0x48, 0x93, 0xf6, 0x12, 0x39, 0xa9, 0x49, 0x43, 0x1b, 0xe7, 0x87, 0xed, 0x76, 0xda, 0xdf, 0xbe, + 0x87, 0xc9, 0x76, 0x52, 0x62, 0x6a, 0xf6, 0x42, 0x88, 0xbf, 0x9f, 0xef, 0xc9, 0xf1, 0xc9, 0x39, + 0x4e, 0xc1, 0x5e, 0x92, 0x72, 0xe6, 0xa4, 0xcc, 0x93, 0x57, 0x2f, 0xc6, 0x14, 0x87, 0xc4, 0x0b, + 0x12, 0x4a, 0x49, 0xc0, 0xa3, 0x84, 0x76, 0xd3, 0x3c, 0xe1, 0x09, 0xac, 0xab, 0x0b, 0xeb, 0x4a, + 0xa8, 0xb5, 0x8d, 0xf3, 0x50, 0x59, 0xe4, 0xd5, 0xc3, 0x01, 0x8f, 0xa6, 0x24, 0xce, 0x34, 0xd9, + 0xda, 0x35, 0xc5, 0x19, 0xf3, 0xc6, 0x11, 0x25, 0x2c, 0x62, 0x85, 0xde, 0x5a, 0xd0, 0x19, 0xfd, + 0x83, 0x96, 0x95, 0x5a, 0xc7, 0xd4, 0x7e, 0x8a, 0x9c, 0x78, 0x64, 0x4a, 0x28, 0xf7, 0x46, 0xc2, + 0x2f, 0x98, 0x3d, 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, 0xf6, 0xd2, 0x41, 0xfd, 0xe5, 0x66, 0xb7, + 0x18, 0x03, 0x99, 0x5e, 0xf7, 0x42, 0x2a, 0x32, 0xfa, 0x95, 0x86, 0xe0, 0x1b, 0x50, 0xd3, 0xc3, + 0xe0, 0xc5, 0x19, 0x22, 0xca, 0xb1, 0x65, 0x38, 0x8e, 0x95, 0xda, 0x1b, 0x28, 0xd3, 0x9a, 0x66, + 0x7b, 0x19, 0x7c, 0x01, 0xfe, 0x29, 0x7a, 0x1d, 0xdd, 0x28, 0x57, 0xd3, 0x74, 0x7d, 0x73, 0xdd, + 0x81, 0xab, 0x3c, 0xab, 0x78, 0xc6, 0xdc, 0x8c, 0xcd, 0x1d, 0x94, 0xa1, 0xf0, 0x01, 0xc7, 0x65, + 0xc5, 0x41, 0xd5, 0x4e, 0x54, 0x3f, 0xa2, 0x91, 0x65, 0x27, 0x3d, 0xa9, 0xe8, 0x9d, 0x28, 0x08, + 0x1e, 0xca, 0x0a, 0x71, 0x86, 0x22, 0x05, 0x3f, 0x32, 0xe0, 0x4b, 0xcc, 0x99, 0x62, 0x15, 0x02, + 0xcf, 0xc0, 0xba, 0xd9, 0x79, 0xe8, 0x56, 0x99, 0x76, 0x17, 0x4c, 0x6e, 0x49, 0x28, 0x77, 0x83, + 0x56, 0x97, 0xe0, 0x3e, 0xf8, 0x8b, 0xb2, 0x0c, 0x8d, 0x95, 0x77, 0xc3, 0xf4, 0xba, 0xba, 0x60, + 0x12, 0x80, 0xaf, 0xc1, 0x5a, 0xd9, 0xad, 0x68, 0x62, 0x29, 0x71, 0xbf, 0x10, 0x75, 0x89, 0x4b, + 0x14, 0x3a, 0x60, 0x55, 0xf7, 0x31, 0x8a, 0x2d, 0xf5, 0xea, 0x2b, 0x49, 0xd7, 0x4b, 0x63, 0xd2, + 0xa0, 0x5b, 0x18, 0x51, 0x8b, 0xe1, 0x4a, 0x49, 0xda, 0xa0, 0x31, 0x59, 0x07, 0xb3, 0xe7, 0x51, + 0x62,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x17, 0x5a, 0x56, 0x01, 0x00, 0x9e, 0xb1, 0xe2, + 0xbe, 0x73, 0x08, 0x9a, 0x1f, 0xc8, 0x84, 0xd8, 0x4e, 0xbf, 0x7b, 0x27, 0xe5, 0xc9, 0xdb, 0xef, + 0x47, 0x61, 0xc4, 0xe5, 0x47, 0x34, 0x48, 0x62, 0xc7, 0xc7, 0x3c, 0x18, 0x05, 0x49, 0x9e, 0x3a, + 0xe9, 0x44, 0xc4, 0x3e, 0xc9, 0x9f, 0xb3, 0x60, 0x44, 0x62, 0xcc, 0x1c, 0x5f, 0x44, 0x93, 0xa1, + 0x13, 0x26, 0x8e, 0x4e, 0xc1, 0x91, 0x3f, 0x05, 0xfc, 0x55, 0x75, 0xf3, 0xea, 0x77, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x14, 0xce, 0x90, 0x3b, 0x46, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go new file mode 100644 index 00000000..50d8b265 --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go @@ -0,0 +1,454 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: opts/ps_opts_manage_relay.proto + +package opts + +import ( + fmt "fmt" + args "github.com/batchcorp/plumber-schemas/build/go/protos/args" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetRelayOptions struct { + // @gotags: kong:"help='ID of the relay to get (leave empty to get all)'" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to get (leave empty to get all)'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRelayOptions) Reset() { *m = GetRelayOptions{} } +func (m *GetRelayOptions) String() string { return proto.CompactTextString(m) } +func (*GetRelayOptions) ProtoMessage() {} +func (*GetRelayOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_86dbec1f9d2837a2, []int{0} +} + +func (m *GetRelayOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetRelayOptions.Unmarshal(m, b) +} +func (m *GetRelayOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetRelayOptions.Marshal(b, m, deterministic) +} +func (m *GetRelayOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRelayOptions.Merge(m, src) +} +func (m *GetRelayOptions) XXX_Size() int { + return xxx_messageInfo_GetRelayOptions.Size(m) +} +func (m *GetRelayOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GetRelayOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRelayOptions proto.InternalMessageInfo + +func (m *GetRelayOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type CreateRelayOptions struct { + // @gotags: kong:"help='ID of the connection to use',required" + ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"help='ID of the connection to use',required"` + // @gotags: kong:"help='Secret collection token',required" + CollectionToken string `protobuf:"bytes,2,opt,name=collection_token,json=collectionToken,proto3" json:"collection_token,omitempty" kong:"help='Secret collection token',required"` + // @gotags: kong:"help='How many messages to send in a single batch',default=1000" + BatchSize int32 `protobuf:"varint,3,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty" kong:"help='How many messages to send in a single batch',default=1000"` + // @gotags: kong:"help='How many times plumber will try re-sending a batch',default=3" + BatchMaxRetry int32 `protobuf:"varint,4,opt,name=batch_max_retry,json=batchMaxRetry,proto3" json:"batch_max_retry,omitempty" kong:"help='How many times plumber will try re-sending a batch',default=3"` + // @gotags: kong:"help='How many workers to launch per relay',default=10" + NumWorkers int32 `protobuf:"varint,5,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty" kong:"help='How many workers to launch per relay',default=10"` + // @gotags: kong:"cmd,help='Apache Kafka'" + Kafka *args.KafkaRelayArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` + // @gotags: kong:"cmd,help='AWS Simple Queue System'" + AwsSqs *args.AWSSQSRelayArgs `protobuf:"bytes,101,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` + // @gotags: kong:"cmd,help='MongoDB (CDC)'" + Mongo *args.MongoReadArgs `protobuf:"bytes,102,opt,name=mongo,proto3" json:"mongo,omitempty" kong:"cmd,help='MongoDB (CDC)'"` + // @gotags: kong:"cmd,help='NSQ'" + Nsq *args.NSQReadArgs `protobuf:"bytes,103,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` + // @gotags: kong:"cmd,help='MQTT'" + Rabbit *args.RabbitReadArgs `protobuf:"bytes,104,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='MQTT'"` + // @gotags: kong:"cmd,help='MQTT'" + Mqtt *args.MQTTReadArgs `protobuf:"bytes,105,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` + // @gotags: kong:"cmd,help='Azure Service Bus'" + AzureServiceBus *args.AzureServiceBusReadArgs `protobuf:"bytes,106,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` + // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" + GcpPubsub *args.GCPPubSubReadArgs `protobuf:"bytes,107,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` + // @gotags: kong:"cmd,help='KubeMQ Queue'" + KubemqQueue *args.KubeMQQueueReadArgs `protobuf:"bytes,108,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` + // @gotags: kong:"cmd,help='Redis PubSub'" + RedisPubsub *args.RedisPubSubReadArgs `protobuf:"bytes,109,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` + // @gotags: kong:"cmd,help='Redis Streams'" + RedisStreams *args.RedisStreamsReadArgs `protobuf:"bytes,111,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` + // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" + Postgres *args.PostgresReadArgs `protobuf:"bytes,112,opt,name=postgres,proto3" json:"postgres,omitempty" kong:"cmd,help='PostgreSQL (CDC)'"` + // @gotags: kong:"cmd,help='NATS'" + Nats *args.NatsReadArgs `protobuf:"bytes,113,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` + // @gotags: kong:"cmd,help='NATS Streaming'" + NatsStreaming *args.NatsStreamingReadArgs `protobuf:"bytes,114,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` + // @gotags: kong:"cmd,help='NATS JetStream'" + NatsJetstream *args.NatsJetstreamReadArgs `protobuf:"bytes,115,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateRelayOptions) Reset() { *m = CreateRelayOptions{} } +func (m *CreateRelayOptions) String() string { return proto.CompactTextString(m) } +func (*CreateRelayOptions) ProtoMessage() {} +func (*CreateRelayOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_86dbec1f9d2837a2, []int{1} +} + +func (m *CreateRelayOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateRelayOptions.Unmarshal(m, b) +} +func (m *CreateRelayOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateRelayOptions.Marshal(b, m, deterministic) +} +func (m *CreateRelayOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRelayOptions.Merge(m, src) +} +func (m *CreateRelayOptions) XXX_Size() int { + return xxx_messageInfo_CreateRelayOptions.Size(m) +} +func (m *CreateRelayOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRelayOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRelayOptions proto.InternalMessageInfo + +func (m *CreateRelayOptions) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +func (m *CreateRelayOptions) GetCollectionToken() string { + if m != nil { + return m.CollectionToken + } + return "" +} + +func (m *CreateRelayOptions) GetBatchSize() int32 { + if m != nil { + return m.BatchSize + } + return 0 +} + +func (m *CreateRelayOptions) GetBatchMaxRetry() int32 { + if m != nil { + return m.BatchMaxRetry + } + return 0 +} + +func (m *CreateRelayOptions) GetNumWorkers() int32 { + if m != nil { + return m.NumWorkers + } + return 0 +} + +func (m *CreateRelayOptions) GetKafka() *args.KafkaRelayArgs { + if m != nil { + return m.Kafka + } + return nil +} + +func (m *CreateRelayOptions) GetAwsSqs() *args.AWSSQSRelayArgs { + if m != nil { + return m.AwsSqs + } + return nil +} + +func (m *CreateRelayOptions) GetMongo() *args.MongoReadArgs { + if m != nil { + return m.Mongo + } + return nil +} + +func (m *CreateRelayOptions) GetNsq() *args.NSQReadArgs { + if m != nil { + return m.Nsq + } + return nil +} + +func (m *CreateRelayOptions) GetRabbit() *args.RabbitReadArgs { + if m != nil { + return m.Rabbit + } + return nil +} + +func (m *CreateRelayOptions) GetMqtt() *args.MQTTReadArgs { + if m != nil { + return m.Mqtt + } + return nil +} + +func (m *CreateRelayOptions) GetAzureServiceBus() *args.AzureServiceBusReadArgs { + if m != nil { + return m.AzureServiceBus + } + return nil +} + +func (m *CreateRelayOptions) GetGcpPubsub() *args.GCPPubSubReadArgs { + if m != nil { + return m.GcpPubsub + } + return nil +} + +func (m *CreateRelayOptions) GetKubemqQueue() *args.KubeMQQueueReadArgs { + if m != nil { + return m.KubemqQueue + } + return nil +} + +func (m *CreateRelayOptions) GetRedisPubsub() *args.RedisPubSubReadArgs { + if m != nil { + return m.RedisPubsub + } + return nil +} + +func (m *CreateRelayOptions) GetRedisStreams() *args.RedisStreamsReadArgs { + if m != nil { + return m.RedisStreams + } + return nil +} + +func (m *CreateRelayOptions) GetPostgres() *args.PostgresReadArgs { + if m != nil { + return m.Postgres + } + return nil +} + +func (m *CreateRelayOptions) GetNats() *args.NatsReadArgs { + if m != nil { + return m.Nats + } + return nil +} + +func (m *CreateRelayOptions) GetNatsStreaming() *args.NatsStreamingReadArgs { + if m != nil { + return m.NatsStreaming + } + return nil +} + +func (m *CreateRelayOptions) GetNatsJetstream() *args.NatsJetstreamReadArgs { + if m != nil { + return m.NatsJetstream + } + return nil +} + +type DeleteRelayOptions struct { + // @gotags: kong:"help='ID of the relay to delete',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to delete',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteRelayOptions) Reset() { *m = DeleteRelayOptions{} } +func (m *DeleteRelayOptions) String() string { return proto.CompactTextString(m) } +func (*DeleteRelayOptions) ProtoMessage() {} +func (*DeleteRelayOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_86dbec1f9d2837a2, []int{2} +} + +func (m *DeleteRelayOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteRelayOptions.Unmarshal(m, b) +} +func (m *DeleteRelayOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteRelayOptions.Marshal(b, m, deterministic) +} +func (m *DeleteRelayOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteRelayOptions.Merge(m, src) +} +func (m *DeleteRelayOptions) XXX_Size() int { + return xxx_messageInfo_DeleteRelayOptions.Size(m) +} +func (m *DeleteRelayOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteRelayOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteRelayOptions proto.InternalMessageInfo + +func (m *DeleteRelayOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type StopRelayOptions struct { + // @gotags: kong:"help='ID of the relay to stop',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to stop',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopRelayOptions) Reset() { *m = StopRelayOptions{} } +func (m *StopRelayOptions) String() string { return proto.CompactTextString(m) } +func (*StopRelayOptions) ProtoMessage() {} +func (*StopRelayOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_86dbec1f9d2837a2, []int{3} +} + +func (m *StopRelayOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopRelayOptions.Unmarshal(m, b) +} +func (m *StopRelayOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopRelayOptions.Marshal(b, m, deterministic) +} +func (m *StopRelayOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopRelayOptions.Merge(m, src) +} +func (m *StopRelayOptions) XXX_Size() int { + return xxx_messageInfo_StopRelayOptions.Size(m) +} +func (m *StopRelayOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StopRelayOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StopRelayOptions proto.InternalMessageInfo + +func (m *StopRelayOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ResumeRelayOptions struct { + // @gotags: kong:"help='ID of the relay to resume',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to resume',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResumeRelayOptions) Reset() { *m = ResumeRelayOptions{} } +func (m *ResumeRelayOptions) String() string { return proto.CompactTextString(m) } +func (*ResumeRelayOptions) ProtoMessage() {} +func (*ResumeRelayOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_86dbec1f9d2837a2, []int{4} +} + +func (m *ResumeRelayOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeRelayOptions.Unmarshal(m, b) +} +func (m *ResumeRelayOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeRelayOptions.Marshal(b, m, deterministic) +} +func (m *ResumeRelayOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeRelayOptions.Merge(m, src) +} +func (m *ResumeRelayOptions) XXX_Size() int { + return xxx_messageInfo_ResumeRelayOptions.Size(m) +} +func (m *ResumeRelayOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeRelayOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeRelayOptions proto.InternalMessageInfo + +func (m *ResumeRelayOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func init() { + proto.RegisterType((*GetRelayOptions)(nil), "protos.opts.GetRelayOptions") + proto.RegisterType((*CreateRelayOptions)(nil), "protos.opts.CreateRelayOptions") + proto.RegisterType((*DeleteRelayOptions)(nil), "protos.opts.DeleteRelayOptions") + proto.RegisterType((*StopRelayOptions)(nil), "protos.opts.StopRelayOptions") + proto.RegisterType((*ResumeRelayOptions)(nil), "protos.opts.ResumeRelayOptions") +} + +func init() { proto.RegisterFile("opts/ps_opts_manage_relay.proto", fileDescriptor_86dbec1f9d2837a2) } + +var fileDescriptor_86dbec1f9d2837a2 = []byte{ + // 751 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0x5b, 0x4f, 0xe3, 0x46, + 0x1c, 0xc5, 0x15, 0x20, 0x14, 0x26, 0x84, 0xd0, 0x79, 0x68, 0x87, 0x50, 0x4a, 0x48, 0xa3, 0x8a, + 0x56, 0x22, 0x69, 0x8b, 0xfa, 0x80, 0x56, 0xfb, 0x00, 0xac, 0x16, 0xb1, 0x2b, 0xd8, 0xc4, 0x46, + 0x42, 0xda, 0x17, 0x6b, 0xec, 0xfc, 0x71, 0x4c, 0x62, 0x8f, 0x3d, 0x97, 0xe5, 0xf2, 0x55, 0xf7, + 0xcb, 0xac, 0x66, 0xec, 0x38, 0x0c, 0x09, 0x3c, 0x59, 0x39, 0xe7, 0x77, 0x8e, 0xc7, 0x73, 0x0b, + 0xda, 0x63, 0xa9, 0x14, 0xbd, 0x54, 0x78, 0xfa, 0xe9, 0xc5, 0x34, 0xa1, 0x21, 0x78, 0x1c, 0x26, + 0xf4, 0xb1, 0x9b, 0x72, 0x26, 0x19, 0xae, 0x99, 0x87, 0xe8, 0x6a, 0xbf, 0xd9, 0xa4, 0x3c, 0x34, + 0xb4, 0x7e, 0x7a, 0xf4, 0x5e, 0x78, 0x22, 0x13, 0x39, 0xd8, 0xec, 0xd8, 0xde, 0x93, 0xe2, 0xe0, + 0x09, 0xe0, 0xdf, 0xa2, 0x00, 0x3c, 0x5f, 0x4d, 0xa9, 0x5d, 0x8b, 0x0a, 0x83, 0xd4, 0x4b, 0x95, + 0x2f, 0x94, 0x5f, 0xd8, 0xc4, 0xb2, 0xc7, 0xf4, 0x76, 0x4c, 0x0b, 0x67, 0xcf, 0x76, 0x94, 0x0f, + 0x71, 0xe6, 0x65, 0x0a, 0x14, 0x2c, 0x8c, 0xc6, 0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, 0x2a, 0x7a, + 0xbe, 0x8a, 0x26, 0xc3, 0x5e, 0xc8, 0x7a, 0xf9, 0x17, 0xf5, 0xf4, 0xdf, 0x9d, 0xbf, 0x6a, 0x7e, + 0x1c, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff, 0x66, 0xd0, 0x57, 0x09, 0x25, 0x07, 0x00, 0x00, +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go new file mode 100644 index 00000000..53a52472 --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: opts/ps_opts_manage_tunnel.proto + +package opts + +import ( + fmt "fmt" + args "github.com/batchcorp/plumber-schemas/build/go/protos/args" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type GetTunnelOptions struct { + // @gotags: kong:"help='ID of the tunnel to get (leave empty to get all)'" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to get (leave empty to get all)'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTunnelOptions) Reset() { *m = GetTunnelOptions{} } +func (m *GetTunnelOptions) String() string { return proto.CompactTextString(m) } +func (*GetTunnelOptions) ProtoMessage() {} +func (*GetTunnelOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_b9d5e823fc1e6249, []int{0} +} + +func (m *GetTunnelOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTunnelOptions.Unmarshal(m, b) +} +func (m *GetTunnelOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTunnelOptions.Marshal(b, m, deterministic) +} +func (m *GetTunnelOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTunnelOptions.Merge(m, src) +} +func (m *GetTunnelOptions) XXX_Size() int { + return xxx_messageInfo_GetTunnelOptions.Size(m) +} +func (m *GetTunnelOptions) XXX_DiscardUnknown() { + xxx_messageInfo_GetTunnelOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTunnelOptions proto.InternalMessageInfo + +func (m *GetTunnelOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type CreateTunnelOptions struct { + // @gotags: kong:"help='Connection ID for the tunnel to use',required=true" + ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"help='Connection ID for the tunnel to use',required=true"` + // @gotags: kong:"help='Optional name for the tunnel (auto-generated if left empty)'" + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" kong:"help='Optional name for the tunnel (auto-generated if left empty)'"` + // @gotags: kong:"help='Optional notes associated with the tunnel'" + Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Optional notes associated with the tunnel'"` + // @gotags: kong:"help='Tunnel API address',default='dproxy.batch.sh:443'" + XTunnelAddress string `protobuf:"bytes,4,opt,name=_tunnel_address,json=TunnelAddress,proto3" json:"_tunnel_address,omitempty" kong:"help='Tunnel API address',default='dproxy.batch.sh:443'"` + // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" + XTunnelTimeoutSeconds uint32 `protobuf:"varint,5,opt,name=_tunnel_timeout_seconds,json=TunnelTimeoutSeconds,proto3" json:"_tunnel_timeout_seconds,omitempty" kong:"help='Tunnel API initial connection timeout',default=5"` + // @gotags: kong:"help='Use gRPC insecure mode when talking to Batch Tunnel API'" + XTunnelInsecure bool `protobuf:"varint,6,opt,name=_tunnel_insecure,json=TunnelInsecure,proto3" json:"_tunnel_insecure,omitempty" kong:"help='Use gRPC insecure mode when talking to Batch Tunnel API'"` + // @gotags: kong:"cmd,help='Apache Kafka'" + Kafka *args.KafkaWriteArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` + // @gotags: kong:"cmd,help='Apache ActiveMQ'" + Activemq *args.ActiveMQWriteArgs `protobuf:"bytes,101,opt,name=activemq,proto3" json:"activemq,omitempty" kong:"cmd,help='Apache ActiveMQ'"` + // @gotags: kong:"cmd,help='AWS Simple Queue System'" + AwsSqs *args.AWSSQSWriteArgs `protobuf:"bytes,102,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` + // @gotags: kong:"cmd,help='AWS Simple Notification System'" + AwsSns *args.AWSSNSWriteArgs `protobuf:"bytes,103,opt,name=aws_sns,json=awsSns,proto3" json:"aws_sns,omitempty" kong:"cmd,help='AWS Simple Notification System'"` + // @gotags: kong:"cmd,help='NATS'" + Nats *args.NatsWriteArgs `protobuf:"bytes,104,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` + // @gotags: kong:"cmd,help='NATS Streaming'" + NatsStreaming *args.NatsStreamingWriteArgs `protobuf:"bytes,105,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` + // @gotags: kong:"cmd,help='NSQ'" + Nsq *args.NSQWriteArgs `protobuf:"bytes,106,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` + // @gotags: kong:"cmd,help='RabbitMQ'" + Rabbit *args.RabbitWriteArgs `protobuf:"bytes,107,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='RabbitMQ'"` + // @gotags: kong:"cmd,help='MQTT'" + Mqtt *args.MQTTWriteArgs `protobuf:"bytes,108,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` + // @gotags: kong:"cmd,help='Azure Service Bus'" + AzureServiceBus *args.AzureServiceBusWriteArgs `protobuf:"bytes,109,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` + // @gotags: kong:"cmd,help='Azure Event Hub'" + AzureEventHub *args.AzureEventHubWriteArgs `protobuf:"bytes,110,opt,name=azure_event_hub,json=azureEventHub,proto3" json:"azure_event_hub,omitempty" kong:"cmd,help='Azure Event Hub'"` + // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" + GcpPubsub *args.GCPPubSubWriteArgs `protobuf:"bytes,111,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` + // @gotags: kong:"cmd,help='KubeMQ Queue'" + KubemqQueue *args.KubeMQQueueWriteArgs `protobuf:"bytes,112,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` + // @gotags: kong:"cmd,help='Redis PubSub'" + RedisPubsub *args.RedisPubSubWriteArgs `protobuf:"bytes,113,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` + // @gotags: kong:"cmd,help='Redis Streams'" + RedisStreams *args.RedisStreamsWriteArgs `protobuf:"bytes,114,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` + // @gotags: kong:"cmd,help='Apache Pulsar'" + Pulsar *args.PulsarWriteArgs `protobuf:"bytes,115,opt,name=pulsar,proto3" json:"pulsar,omitempty" kong:"cmd,help='Apache Pulsar'"` + // @gotags: kong:"cmd,help='RabbitMQ Streams'" + RabbitStreams *args.RabbitStreamsWriteArgs `protobuf:"bytes,116,opt,name=rabbit_streams,json=rabbitStreams,proto3" json:"rabbit_streams,omitempty" kong:"cmd,help='RabbitMQ Streams'"` + // @gotags: kong:"cmd,help='NATS JetStream'" + NatsJetstream *args.NatsJetstreamWriteArgs `protobuf:"bytes,117,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` + // @gotags: kong:"cmd,help='AWS Kinesis Streams'" + AwsKinesis *args.AWSKinesisWriteArgs `protobuf:"bytes,118,opt,name=aws_kinesis,json=awsKinesis,proto3" json:"aws_kinesis,omitempty" kong:"cmd,help='AWS Kinesis Streams'"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateTunnelOptions) Reset() { *m = CreateTunnelOptions{} } +func (m *CreateTunnelOptions) String() string { return proto.CompactTextString(m) } +func (*CreateTunnelOptions) ProtoMessage() {} +func (*CreateTunnelOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_b9d5e823fc1e6249, []int{1} +} + +func (m *CreateTunnelOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateTunnelOptions.Unmarshal(m, b) +} +func (m *CreateTunnelOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateTunnelOptions.Marshal(b, m, deterministic) +} +func (m *CreateTunnelOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateTunnelOptions.Merge(m, src) +} +func (m *CreateTunnelOptions) XXX_Size() int { + return xxx_messageInfo_CreateTunnelOptions.Size(m) +} +func (m *CreateTunnelOptions) XXX_DiscardUnknown() { + xxx_messageInfo_CreateTunnelOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateTunnelOptions proto.InternalMessageInfo + +func (m *CreateTunnelOptions) GetConnectionId() string { + if m != nil { + return m.ConnectionId + } + return "" +} + +func (m *CreateTunnelOptions) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *CreateTunnelOptions) GetNotes() string { + if m != nil { + return m.Notes + } + return "" +} + +func (m *CreateTunnelOptions) GetXTunnelAddress() string { + if m != nil { + return m.XTunnelAddress + } + return "" +} + +func (m *CreateTunnelOptions) GetXTunnelTimeoutSeconds() uint32 { + if m != nil { + return m.XTunnelTimeoutSeconds + } + return 0 +} + +func (m *CreateTunnelOptions) GetXTunnelInsecure() bool { + if m != nil { + return m.XTunnelInsecure + } + return false +} + +func (m *CreateTunnelOptions) GetKafka() *args.KafkaWriteArgs { + if m != nil { + return m.Kafka + } + return nil +} + +func (m *CreateTunnelOptions) GetActivemq() *args.ActiveMQWriteArgs { + if m != nil { + return m.Activemq + } + return nil +} + +func (m *CreateTunnelOptions) GetAwsSqs() *args.AWSSQSWriteArgs { + if m != nil { + return m.AwsSqs + } + return nil +} + +func (m *CreateTunnelOptions) GetAwsSns() *args.AWSSNSWriteArgs { + if m != nil { + return m.AwsSns + } + return nil +} + +func (m *CreateTunnelOptions) GetNats() *args.NatsWriteArgs { + if m != nil { + return m.Nats + } + return nil +} + +func (m *CreateTunnelOptions) GetNatsStreaming() *args.NatsStreamingWriteArgs { + if m != nil { + return m.NatsStreaming + } + return nil +} + +func (m *CreateTunnelOptions) GetNsq() *args.NSQWriteArgs { + if m != nil { + return m.Nsq + } + return nil +} + +func (m *CreateTunnelOptions) GetRabbit() *args.RabbitWriteArgs { + if m != nil { + return m.Rabbit + } + return nil +} + +func (m *CreateTunnelOptions) GetMqtt() *args.MQTTWriteArgs { + if m != nil { + return m.Mqtt + } + return nil +} + +func (m *CreateTunnelOptions) GetAzureServiceBus() *args.AzureServiceBusWriteArgs { + if m != nil { + return m.AzureServiceBus + } + return nil +} + +func (m *CreateTunnelOptions) GetAzureEventHub() *args.AzureEventHubWriteArgs { + if m != nil { + return m.AzureEventHub + } + return nil +} + +func (m *CreateTunnelOptions) GetGcpPubsub() *args.GCPPubSubWriteArgs { + if m != nil { + return m.GcpPubsub + } + return nil +} + +func (m *CreateTunnelOptions) GetKubemqQueue() *args.KubeMQQueueWriteArgs { + if m != nil { + return m.KubemqQueue + } + return nil +} + +func (m *CreateTunnelOptions) GetRedisPubsub() *args.RedisPubSubWriteArgs { + if m != nil { + return m.RedisPubsub + } + return nil +} + +func (m *CreateTunnelOptions) GetRedisStreams() *args.RedisStreamsWriteArgs { + if m != nil { + return m.RedisStreams + } + return nil +} + +func (m *CreateTunnelOptions) GetPulsar() *args.PulsarWriteArgs { + if m != nil { + return m.Pulsar + } + return nil +} + +func (m *CreateTunnelOptions) GetRabbitStreams() *args.RabbitStreamsWriteArgs { + if m != nil { + return m.RabbitStreams + } + return nil +} + +func (m *CreateTunnelOptions) GetNatsJetstream() *args.NatsJetstreamWriteArgs { + if m != nil { + return m.NatsJetstream + } + return nil +} + +func (m *CreateTunnelOptions) GetAwsKinesis() *args.AWSKinesisWriteArgs { + if m != nil { + return m.AwsKinesis + } + return nil +} + +type DeleteTunnelOptions struct { + // @gotags: kong:"help='ID of the tunnel to delete',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to delete',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteTunnelOptions) Reset() { *m = DeleteTunnelOptions{} } +func (m *DeleteTunnelOptions) String() string { return proto.CompactTextString(m) } +func (*DeleteTunnelOptions) ProtoMessage() {} +func (*DeleteTunnelOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_b9d5e823fc1e6249, []int{2} +} + +func (m *DeleteTunnelOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteTunnelOptions.Unmarshal(m, b) +} +func (m *DeleteTunnelOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteTunnelOptions.Marshal(b, m, deterministic) +} +func (m *DeleteTunnelOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteTunnelOptions.Merge(m, src) +} +func (m *DeleteTunnelOptions) XXX_Size() int { + return xxx_messageInfo_DeleteTunnelOptions.Size(m) +} +func (m *DeleteTunnelOptions) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteTunnelOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteTunnelOptions proto.InternalMessageInfo + +func (m *DeleteTunnelOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type StopTunnelOptions struct { + // @gotags: kong:"help='ID of the tunnel to stop',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to stop',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StopTunnelOptions) Reset() { *m = StopTunnelOptions{} } +func (m *StopTunnelOptions) String() string { return proto.CompactTextString(m) } +func (*StopTunnelOptions) ProtoMessage() {} +func (*StopTunnelOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_b9d5e823fc1e6249, []int{3} +} + +func (m *StopTunnelOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopTunnelOptions.Unmarshal(m, b) +} +func (m *StopTunnelOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopTunnelOptions.Marshal(b, m, deterministic) +} +func (m *StopTunnelOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopTunnelOptions.Merge(m, src) +} +func (m *StopTunnelOptions) XXX_Size() int { + return xxx_messageInfo_StopTunnelOptions.Size(m) +} +func (m *StopTunnelOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StopTunnelOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StopTunnelOptions proto.InternalMessageInfo + +func (m *StopTunnelOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type ResumeTunnelOptions struct { + // @gotags: kong:"help='ID of the tunnel to resume',required=true" + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to resume',required=true"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResumeTunnelOptions) Reset() { *m = ResumeTunnelOptions{} } +func (m *ResumeTunnelOptions) String() string { return proto.CompactTextString(m) } +func (*ResumeTunnelOptions) ProtoMessage() {} +func (*ResumeTunnelOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_b9d5e823fc1e6249, []int{4} +} + +func (m *ResumeTunnelOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResumeTunnelOptions.Unmarshal(m, b) +} +func (m *ResumeTunnelOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResumeTunnelOptions.Marshal(b, m, deterministic) +} +func (m *ResumeTunnelOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResumeTunnelOptions.Merge(m, src) +} +func (m *ResumeTunnelOptions) XXX_Size() int { + return xxx_messageInfo_ResumeTunnelOptions.Size(m) +} +func (m *ResumeTunnelOptions) XXX_DiscardUnknown() { + xxx_messageInfo_ResumeTunnelOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_ResumeTunnelOptions proto.InternalMessageInfo + +func (m *ResumeTunnelOptions) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func init() { + proto.RegisterType((*GetTunnelOptions)(nil), "protos.opts.GetTunnelOptions") + proto.RegisterType((*CreateTunnelOptions)(nil), "protos.opts.CreateTunnelOptions") + proto.RegisterType((*DeleteTunnelOptions)(nil), "protos.opts.DeleteTunnelOptions") + proto.RegisterType((*StopTunnelOptions)(nil), "protos.opts.StopTunnelOptions") + proto.RegisterType((*ResumeTunnelOptions)(nil), "protos.opts.ResumeTunnelOptions") +} + +func init() { proto.RegisterFile("opts/ps_opts_manage_tunnel.proto", fileDescriptor_b9d5e823fc1e6249) } + +var fileDescriptor_b9d5e823fc1e6249 = []byte{ + // 861 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x56, 0x5f, 0x6f, 0xdb, 0x36, + 0x10, 0x87, 0xd3, 0x26, 0x6b, 0xe9, 0x3a, 0x69, 0x99, 0x62, 0x65, 0xd3, 0xad, 0x75, 0x9d, 0x65, + 0x30, 0x30, 0xcc, 0xc6, 0xfe, 0xf4, 0x61, 0x1b, 0x30, 0x20, 0x6d, 0x87, 0xac, 0x0d, 0xd2, 0xc5, + 0x56, 0x80, 0x02, 0x7b, 0x11, 0x28, 0xe9, 0xaa, 0xa8, 0xb1, 0x28, 0x99, 0x47, 0x3a, 0xc0, 0xbe, + 0xcc, 0xbe, 0x6a, 0x41, 0x52, 0xb2, 0x45, 0x5b, 0xc9, 0x93, 0xac, 0xfb, 0xfd, 0x21, 0x79, 0xba, + 0x3b, 0x9a, 0xf4, 0x8b, 0x52, 0xe1, 0xb8, 0xc4, 0xd0, 0x3c, 0xc3, 0x9c, 0x0b, 0x9e, 0x42, 0xa8, + 0xb4, 0x10, 0x30, 0x1b, 0x95, 0xb2, 0x50, 0x05, 0xed, 0xda, 0x07, 0x8e, 0x0c, 0xe1, 0xe0, 0x19, + 0x97, 0xa9, 0xa5, 0x9b, 0x67, 0xc8, 0x63, 0x95, 0x2d, 0x20, 0x9f, 0x3b, 0xe6, 0xc1, 0x73, 0x1f, + 0xbc, 0xc6, 0xf0, 0x2a, 0x13, 0x80, 0x19, 0x56, 0xf8, 0xc1, 0x06, 0x8e, 0xe2, 0x16, 0x6c, 0x5e, + 0x63, 0x03, 0x1f, 0xfb, 0x4f, 0x4b, 0x08, 0x61, 0x01, 0x42, 0x85, 0x97, 0x3a, 0xaa, 0x38, 0xdf, + 0xb5, 0x70, 0x10, 0xe4, 0x22, 0x8b, 0x21, 0x8c, 0x74, 0xed, 0xf4, 0xad, 0xc7, 0x4a, 0xe3, 0x32, + 0x2c, 0x75, 0x84, 0x4b, 0x13, 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, 0x71, 0x85, 0xb5, 0xb1, 0x81, 0x9e, 0x6c, 0xc6, 0x97, 0x5d, + 0xb1, 0xbc, 0x25, 0x98, 0xbe, 0xa1, 0x2b, 0xde, 0xd7, 0x8c, 0xb5, 0xae, 0x58, 0xc6, 0xe9, 0x31, + 0xe9, 0x36, 0xee, 0x67, 0xb6, 0xb0, 0x46, 0xfd, 0xf5, 0x66, 0x3e, 0x75, 0xf0, 0xca, 0x85, 0xf0, + 0x6b, 0xac, 0x82, 0x83, 0x23, 0xb2, 0xff, 0x16, 0x66, 0xb0, 0x3e, 0xa0, 0xd7, 0x07, 0xf9, 0x21, + 0x79, 0x14, 0xa8, 0xa2, 0xbc, 0x9d, 0x74, 0x44, 0xf6, 0xa7, 0x80, 0x3a, 0xbf, 0xdd, 0xeb, 0xf5, + 0x1f, 0xff, 0xfe, 0x96, 0x66, 0xca, 0x5c, 0xfa, 0x71, 0x91, 0x8f, 0x23, 0xae, 0xe2, 0xcb, 0xb8, + 0x90, 0xe5, 0xb8, 0x9c, 0xe9, 0x3c, 0x02, 0xf9, 0x23, 0xc6, 0x97, 0x90, 0x73, 0x1c, 0x47, 0x3a, + 0x9b, 0x25, 0xe3, 0xb4, 0x18, 0xbb, 0xf3, 0x8c, 0xcd, 0x5f, 0x97, 0x68, 0xc7, 0xbe, 0xfc, 0xf2, + 0x25, 0x00, 0x00, 0xff, 0xff, 0x27, 0xed, 0x18, 0x41, 0xf2, 0x08, 0x00, 0x00, +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go index 8ec165e5..869c96c6 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go @@ -54,9 +54,7 @@ type ServerOptions struct { // @gotags: kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'" StatsFlushIntervalSeconds int32 `protobuf:"varint,15,opt,name=stats_flush_interval_seconds,json=statsFlushIntervalSeconds,proto3" json:"stats_flush_interval_seconds,omitempty" kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'"` // @gotags: kong:"help='What address to bind the built-in HTTP server to',default='127.0.0.1:9191'" - HttpListenAddress string `protobuf:"bytes,16,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',default='127.0.0.1:9191'"` - // @gotags: kong:"default='./.plumber',help='Location to store etcd and time series files.',env='PLUMBER_SERVER_STORAGE_PATH'" - StoragePath string `protobuf:"bytes,17,opt,name=storage_path,json=storagePath,proto3" json:"storage_path,omitempty" kong:"default='./.plumber',help='Location to store etcd and time series files.',env='PLUMBER_SERVER_STORAGE_PATH'"` + HttpListenAddress string `protobuf:"bytes,16,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',default='127.0.0.1:9191'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -206,13 +204,6 @@ func (m *ServerOptions) GetHttpListenAddress() string { return "" } -func (m *ServerOptions) GetStoragePath() string { - if m != nil { - return m.StoragePath - } - return "" -} - func init() { proto.RegisterType((*ServerOptions)(nil), "protos.opts.ServerOptions") } @@ -220,38 +211,37 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_server.proto", fileDescriptor_72fba0b7ae2941aa) } var fileDescriptor_72fba0b7ae2941aa = []byte{ - // 527 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x93, 0xd1, 0x6b, 0x53, 0x3f, - 0x14, 0xc7, 0xe9, 0x6f, 0xbf, 0xb5, 0x6b, 0xba, 0x6e, 0x2e, 0x53, 0x97, 0xa1, 0x8e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d, 0x3c, 0xeb, 0x84, - 0x3e, 0x77, 0xe4, 0x87, 0xa2, 0x9a, 0x7f, 0x60, 0x4f, 0xb3, 0xfe, 0xca, 0xb6, 0x58, 0x4b, 0xd3, - 0x10, 0x84, 0x8d, 0xb2, 0xb7, 0x51, 0xf7, 0x27, 0xbd, 0xe9, 0xf6, 0xe2, 0x38, 0x69, 0xce, 0xa3, - 0x64, 0xde, 0x29, 0x6e, 0x82, 0xce, 0xd8, 0x61, 0x4d, 0xe4, 0xef, 0x3f, 0xae, 0x07, 0xf9, 0xc2, - 0x88, 0xee, 0x3e, 0xae, 0xe7, 0x6c, 0x17, 0xc9, 0x05, 0xb5, 0xec, 0x92, 0x1d, 0xe4, 0x77, 0xd0, - 0xd5, 0x62, 0xa6, 0x4f, 0xef, 0x7f, 0xbf, 0x5b, 0x1a, 0xaa, 0xdb, 0x72, 0xa6, 0xdd, 0xba, 0x28, - 0x15, 0xe9, 0x5a, 0xbb, 0xe0, 0x0b, 0x6f, 0xdb, 0x75, 0x09, 0xe1, 0x15, 0xea, 0x1a, 0xd6, 0x0a, - 0x8b, 0xb2, 0x35, 0xb6, 0x2a, 0x96, 0xae, 0xc8, 0xdf, 0xa6, 0x88, 0xdf, 0xa6, 0xec, 0xa7, 0xcd, - 0xeb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x86, 0xff, 0x47, 0x67, 0x03, 0x00, 0x00, + // 512 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x93, 0x51, 0x8b, 0x13, 0x3f, + 0x10, 0xc0, 0xe9, 0xff, 0xfe, 0xd7, 0x5e, 0xd3, 0xeb, 0x9d, 0xe6, 0xd4, 0xcb, 0xa1, 0x1e, 0xe5, + 0x40, 0xe9, 0x8b, 0xdd, 0x07, 0x45, 0x10, 0x1f, 0x44, 0x4f, 0x4e, 0x8a, 0x82, 0xd2, 0x56, 0x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x29, 0x4d, + 0x45, 0xe0, 0xd7, 0xca, 0xde, 0x97, 0x7a, 0x3e, 0x68, 0x0d, 0x8f, 0x27, 0x57, 0xd1, 0xb9, 0x0b, + 0xca, 0x78, 0x6b, 0xec, 0x0a, 0x1d, 0xb1, 0x8b, 0x92, 0xc8, 0x1d, 0x3e, 0xae, 0x07, 0xe9, 0xc2, + 0x80, 0xf6, 0x1e, 0xd7, 0xa7, 0xf7, 0xbf, 0xdf, 0x2d, 0x0c, 0x95, 0x4d, 0x3e, 0xd2, 0xf5, 0x2a, + 0xcb, 0x15, 0xe9, 0x52, 0xd7, 0xde, 0x65, 0xce, 0x36, 0xab, 0x1c, 0xfc, 0x2b, 0xd4, 0x25, 0xac, + 0x14, 0x66, 0x79, 0x63, 0x6c, 0x91, 0x2d, 0xea, 0x2c, 0xfd, 0x89, 0x2c, 0xfc, 0x89, 0xbc, 0x1d, + 0x37, 0xaf, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x53, 0x53, 0xec, 0x44, 0x03, 0x00, 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/ps_base.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/ps_base.pb.go index 9d8c4cce..ce0904bf 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/ps_base.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/ps_base.pb.go @@ -27,38 +27,39 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("ps_base.proto", fileDescriptor_ef931efdbd582aee) } var fileDescriptor_ef931efdbd582aee = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0xdf, 0x8a, 0xd3, 0x40, - 0x14, 0xc6, 0xef, 0x44, 0xc7, 0xed, 0xba, 0xce, 0x8d, 0x9a, 0xad, 0xee,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 0x2d, 0x30, 0xec, 0xe3, 0xa6, 0x51, 0x1f, 0x1f, - 0x5a, 0x15, 0x9d, 0xa9, 0x50, 0xe5, 0xa6, 0x91, 0xca, 0x87, 0x56, 0x45, 0xcb, 0x0c, 0x55, 0x6e, - 0x1a, 0xa9, 0x7c, 0x68, 0xef, 0x90, 0x0c, 0x34, 0xdd, 0xfb, 0xb7, 0x8a, 0x6e, 0xfa, 0x2b, 0x67, - 0x47, 0x1e, 0x89, 0xee, 0x90, 0x78, 0x80, 0xb4, 0x9f, 0x3f, 0xfc, 0x7a, 0xbf, 0x3b, 0xe8, 0x7d, - 0x57, 0x2e, 0x2a, 0x59, 0xa7, 0x65, 0xa1, 0xab, 0x7d, 0x25, 0x5b, 0x95, 0x2a, 0xfa, 0xce, 0xbc, - 0xc1, 0x6a, 0x0f, 0x75, 0x81, 0x69, 0xd9, 0x1d, 0xc4, 0x36, 0xdd, 0xc9, 0x94, 0x84, 0x25, 0x7d, - 0xd7, 0xde, 0xfd, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x3c, 0xc4, 0x54, 0xef, 0x06, 0x00, 0x00, + // 497 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0x5f, 0x8b, 0xd3, 0x40, + 0x14, 0xc5, 0xdf, 0x44, 0xc7, 0xed, 0xba, 0xce, 0x8b, 0x9a, 0xad, 0xee, 0xfa, 0x01, 0x6c, 0x40, + 0xc5, 0x37, 0xc1, 0xb5, 0x62, 0x10, 0x84, 0x95, 0x6e, 0x0b, 0xe2, 0x4b, 0x48, 0xd2, 0x4b, 0x5b, + 0x98, 0x64, 0xc6, 0xdc, 0x89, 0xe0, 0xc7, 0xf4, 0x1b, 0x49, 0x73, 0x27, 0x9d, 0x7f, 0xc9, 0x3e, + 0x95, 0x9e, 0x73, 0xe7, 0xc7, 0xc9, 0x9c, 0xc9, 0x84, 0xcd, 0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0xf9, 0xc3, 0xaf, 0xf7, 0xbb, 0x83, 0xde, + 0x77, 0xe5, 0xa2, 0x92, 0x75, 0x5a, 0x16, 0xba, 0xda, 0x57, 0xb2, 0x55, 0xa9, 0xa2, 0xef, 0xcc, + 0x1b, 0xac, 0xf6, 0x50, 0x17, 0x98, 0x96, 0xdd, 0x41, 0x6c, 0xd3, 0x9d, 0x4c, 0x09, 0x58, 0xd2, + 0x77, 0xed, 0xdd, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4b, 0x41, 0x19, 0x8b, 0xef, 0x06, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/vendor/modules.txt b/vendor/modules.txt index 5333b9e4..440850ca 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -144,7 +144,7 @@ github.com/batchcorp/natty # github.com/batchcorp/pgoutput v0.3.2 ## explicit github.com/batchcorp/pgoutput -# github.com/batchcorp/plumber-schemas v0.0.142 +# github.com/batchcorp/plumber-schemas v0.0.145 ## explicit github.com/batchcorp/plumber-schemas/build/go/protos github.com/batchcorp/plumber-schemas/build/go/protos/args From 5c13b07b4303dca45f865a71105207028a4b78bf Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Sun, 20 Feb 2022 18:35:19 -0800 Subject: [PATCH 2/6] right before grpc client implementation --- plumber/cli_manage.go | 195 ++++++++++++++++++++++++++++++++++++++++++ plumber/plumber.go | 2 + 2 files changed, 197 insertions(+) create mode 100644 plumber/cli_manage.go diff --git a/plumber/cli_manage.go b/plumber/cli_manage.go new file mode 100644 index 00000000..67117474 --- /dev/null +++ b/plumber/cli_manage.go @@ -0,0 +1,195 @@ +package plumber + +import ( + "fmt" + + "github.com/batchcorp/plumber-schemas/build/go/protos" + "github.com/pkg/errors" + "google.golang.org/grpc" +) + +func (p *Plumber) HandleManageCmd() error { + if len(p.KongCtx.Args) < 3 { + return fmt.Errorf("unexpected number of CLI args: %d", len(p.KongCtx.Args)) + } + + // Setup gRPC conn + client + var opts []grpc.DialOption + + if p.CLIOptions.Manage.GlobalOptions.ServerUseTls { + if p.CLIOptions.Manage.GlobalOptions.ServerInsecureTls { + opts = append(opts, grpc.WithInsecure()) + } + } + + conn, err := grpc.Dial(p.CLIOptions.Manage.GlobalOptions.ServerAddress, opts...) + if err != nil { + return errors.Wrap(err, "failed to dial gRPC server") + } + + client := protos.NewPlumberServerClient(conn) + + cmd := p.KongCtx.Args[1] + " " + p.KongCtx.Args[2] + + switch cmd { + // Get + case "get connection": + if p.CLIOptions.Manage.Get.Connection.Id == "" { + err = p.HandleGetAllConnectionsCmd(client) + } else { + err = p.HandleGetConnectionCmd(client) + } + case "get relay": + if p.CLIOptions.Manage.Get.Relay.Id == "" { + err = p.HandleGetAllRelaysCmd(client) + } else { + err = p.HandleGetRelayCmd(client) + } + case "get tunnel": + if p.CLIOptions.Manage.Get.Tunnel.Id == "" { + err = p.HandleGetAllTunnelsCmd(client) + } else { + err = p.HandleGetTunnelCmd(client) + } + + // Create + case "create connection": + err = p.HandleCreateConnectionCmd(client) + case "create relay": + err = p.HandleCreateRelayCmd(client) + case "create tunnel": + err = p.HandleCreateTunnelCmd(client) + + // Delete + case "delete connection": + err = p.HandleDeleteConnectionCmd(client) + case "delete relay": + err = p.HandleDeleteRelayCmd(client) + case "delete tunnel": + err = p.HandleDeleteTunnelCmd(client) + + // Stop + case "stop relay": + err = p.HandleStopRelayCmd(client) + case "stop tunnel": + err = p.HandleStopTunnelCmd(client) + + // Resume + case "resume relay": + err = p.HandleResumeRelayCmd(client) + case "resume tunnel": + err = p.HandleResumeTunnelCmd(client) + default: + return fmt.Errorf("unrecognized comand: %s", p.KongCtx.Args[2]) + } + + if err != nil { + return errors.Wrapf(err, "error handling command '%s'", cmd) + } + + return nil +} + +////////////////// GET ////////////////// + +func (p *Plumber) HandleGetConnectionCmd(client protos.PlumberServerClient) error { + fmt.Println("get connection") + return nil +} + +func (p *Plumber) HandleGetRelayCmd(client protos.PlumberServerClient) error { + fmt.Println("get relay") + + return nil +} + +func (p *Plumber) HandleGetTunnelCmd(client protos.PlumberServerClient) error { + fmt.Println("get tunnel") + + return nil +} + +func (p *Plumber) HandleGetAllConnectionsCmd(client protos.PlumberServerClient) error { + fmt.Println("get all connections") + return nil +} + +func (p *Plumber) HandleGetAllRelaysCmd(client protos.PlumberServerClient) error { + fmt.Println("get all relays") + + return nil +} + +func (p *Plumber) HandleGetAllTunnelsCmd(client protos.PlumberServerClient) error { + fmt.Println("get all tunnels") + + return nil +} + +////////////////// CREATE ////////////////// + +func (p *Plumber) HandleCreateConnectionCmd(client protos.PlumberServerClient) error { + fmt.Println("create connection") + + return nil +} + +func (p *Plumber) HandleCreateRelayCmd(client protos.PlumberServerClient) error { + fmt.Println("create relay") + + return nil +} + +func (p *Plumber) HandleCreateTunnelCmd(client protos.PlumberServerClient) error { + fmt.Println("create tunnel") + + return nil +} + +/////////////////// DELETE ////////////////// + +func (p *Plumber) HandleDeleteConnectionCmd(client protos.PlumberServerClient) error { + fmt.Println("delete connection") + + return nil +} + +func (p *Plumber) HandleDeleteRelayCmd(client protos.PlumberServerClient) error { + fmt.Println("delete relay") + + return nil +} + +func (p *Plumber) HandleDeleteTunnelCmd(client protos.PlumberServerClient) error { + fmt.Println("delete tunnel") + + return nil +} + +////////////////// STOP ////////////////// + +func (p *Plumber) HandleStopRelayCmd(client protos.PlumberServerClient) error { + fmt.Println("stop relay") + + return nil +} + +func (p *Plumber) HandleStopTunnelCmd(client protos.PlumberServerClient) error { + fmt.Println("stop tunnel") + + return nil +} + +//////////////////// RESUME ////////////////// + +func (p *Plumber) HandleResumeRelayCmd(client protos.PlumberServerClient) error { + fmt.Println("resume relay") + + return nil +} + +func (p *Plumber) HandleResumeTunnelCmd(client protos.PlumberServerClient) error { + fmt.Println("resume tunnel") + + return nil +} diff --git a/plumber/plumber.go b/plumber/plumber.go index 38fd6e47..59f9925d 100644 --- a/plumber/plumber.go +++ b/plumber/plumber.go @@ -145,6 +145,8 @@ func (p *Plumber) Run() { case "tunnel": logrus.Fatal("tunnel mode not implemented") //err = p.HandleTunnelCmd() + case "manage": + err = p.HandleManageCmd() default: logrus.Fatalf("unrecognized command: %s", p.CLIOptions.Global.XAction) } From c5b82dfda98cd975f21a928268f3593b4fe7b282 Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Mon, 21 Feb 2022 21:42:19 -0800 Subject: [PATCH 3/6] everything except "manage create" is done --- options/options.go | 9 +- plumber/cli_manage.go | 172 ++++++++++++------------------- plumber/cli_manage_connection.go | 91 ++++++++++++++++ plumber/cli_manage_relay.go | 112 ++++++++++++++++++++ plumber/cli_manage_tunnel.go | 109 ++++++++++++++++++++ plumber/plumber.go | 1 + 6 files changed, 385 insertions(+), 109 deletions(-) create mode 100644 plumber/cli_manage_connection.go create mode 100644 plumber/cli_manage_relay.go create mode 100644 plumber/cli_manage_tunnel.go diff --git a/options/options.go b/options/options.go index a9f6f85a..96fcab3b 100644 --- a/options/options.go +++ b/options/options.go @@ -59,8 +59,13 @@ func New(args []string) (*kong.Context, *opts.CLIOptions, error) { cliOpts.Global.XFullCommand = strings.Join(args, " ") if ActionUsesBackend(cliOpts.Global.XAction) { - if len(args) >= 2 { + if len(args) >= 2 && cliOpts.Global.XAction != "manage" { cliOpts.Global.XBackend = args[1] + } else { + // Go through the kong ctx path and find which backend was selected + if len(kongCtx.Path) >= 5 { + cliOpts.Global.XBackend = kongCtx.Path[len(kongCtx.Path)-1].Command.Name + } } } @@ -155,6 +160,8 @@ func ActionUsesBackend(action string) bool { return true case "tunnel": return true + case "manage": + return true } return false diff --git a/plumber/cli_manage.go b/plumber/cli_manage.go index 67117474..9c3790a8 100644 --- a/plumber/cli_manage.go +++ b/plumber/cli_manage.go @@ -1,9 +1,16 @@ package plumber import ( + "bytes" + "context" + "encoding/json" "fmt" + "time" "github.com/batchcorp/plumber-schemas/build/go/protos" + "github.com/golang/protobuf/jsonpb" + "github.com/golang/protobuf/proto" + "github.com/hokaccha/go-prettyjson" "github.com/pkg/errors" "google.golang.org/grpc" ) @@ -17,9 +24,10 @@ func (p *Plumber) HandleManageCmd() error { var opts []grpc.DialOption if p.CLIOptions.Manage.GlobalOptions.ServerUseTls { - if p.CLIOptions.Manage.GlobalOptions.ServerInsecureTls { - opts = append(opts, grpc.WithInsecure()) - } + // TODO: Need to be able to set certs + double check insecure skip verify + } else { + // grpc.WithInsecure() is a required opt to disable use of TLS + opts = append(opts, grpc.WithInsecure()) } conn, err := grpc.Dial(p.CLIOptions.Manage.GlobalOptions.ServerAddress, opts...) @@ -27,6 +35,9 @@ func (p *Plumber) HandleManageCmd() error { return errors.Wrap(err, "failed to dial gRPC server") } + // TODO: Should allow timeout to be specified via CLI + ctx, _ := context.WithTimeout(context.Background(), time.Second*5) + client := protos.NewPlumberServerClient(conn) cmd := p.KongCtx.Args[1] + " " + p.KongCtx.Args[2] @@ -35,50 +46,50 @@ func (p *Plumber) HandleManageCmd() error { // Get case "get connection": if p.CLIOptions.Manage.Get.Connection.Id == "" { - err = p.HandleGetAllConnectionsCmd(client) + err = p.HandleGetAllConnectionsCmd(ctx, client) } else { - err = p.HandleGetConnectionCmd(client) + err = p.HandleGetConnectionCmd(ctx, client) } case "get relay": if p.CLIOptions.Manage.Get.Relay.Id == "" { - err = p.HandleGetAllRelaysCmd(client) + err = p.HandleGetAllRelaysCmd(ctx, client) } else { - err = p.HandleGetRelayCmd(client) + err = p.HandleGetRelayCmd(ctx, client) } case "get tunnel": if p.CLIOptions.Manage.Get.Tunnel.Id == "" { - err = p.HandleGetAllTunnelsCmd(client) + err = p.HandleGetAllTunnelsCmd(ctx, client) } else { - err = p.HandleGetTunnelCmd(client) + err = p.HandleGetTunnelCmd(ctx, client) } // Create case "create connection": - err = p.HandleCreateConnectionCmd(client) + err = p.HandleCreateConnectionCmd(ctx, client) case "create relay": - err = p.HandleCreateRelayCmd(client) + err = p.HandleCreateRelayCmd(ctx, client) case "create tunnel": - err = p.HandleCreateTunnelCmd(client) + err = p.HandleCreateTunnelCmd(ctx, client) // Delete case "delete connection": - err = p.HandleDeleteConnectionCmd(client) + err = p.HandleDeleteConnectionCmd(ctx, client) case "delete relay": - err = p.HandleDeleteRelayCmd(client) + err = p.HandleDeleteRelayCmd(ctx, client) case "delete tunnel": - err = p.HandleDeleteTunnelCmd(client) + err = p.HandleDeleteTunnelCmd(ctx, client) // Stop case "stop relay": - err = p.HandleStopRelayCmd(client) + err = p.HandleStopRelayCmd(ctx, client) case "stop tunnel": - err = p.HandleStopTunnelCmd(client) + err = p.HandleStopTunnelCmd(ctx, client) // Resume case "resume relay": - err = p.HandleResumeRelayCmd(client) + err = p.HandleResumeRelayCmd(ctx, client) case "resume tunnel": - err = p.HandleResumeTunnelCmd(client) + err = p.HandleResumeTunnelCmd(ctx, client) default: return fmt.Errorf("unrecognized comand: %s", p.KongCtx.Args[2]) } @@ -90,106 +101,51 @@ func (p *Plumber) HandleManageCmd() error { return nil } -////////////////// GET ////////////////// - -func (p *Plumber) HandleGetConnectionCmd(client protos.PlumberServerClient) error { - fmt.Println("get connection") - return nil -} - -func (p *Plumber) HandleGetRelayCmd(client protos.PlumberServerClient) error { - fmt.Println("get relay") - - return nil -} - -func (p *Plumber) HandleGetTunnelCmd(client protos.PlumberServerClient) error { - fmt.Println("get tunnel") - - return nil -} - -func (p *Plumber) HandleGetAllConnectionsCmd(client protos.PlumberServerClient) error { - fmt.Println("get all connections") - return nil -} - -func (p *Plumber) HandleGetAllRelaysCmd(client protos.PlumberServerClient) error { - fmt.Println("get all relays") - - return nil -} - -func (p *Plumber) HandleGetAllTunnelsCmd(client protos.PlumberServerClient) error { - fmt.Println("get all tunnels") - - return nil -} - -////////////////// CREATE ////////////////// - -func (p *Plumber) HandleCreateConnectionCmd(client protos.PlumberServerClient) error { - fmt.Println("create connection") - - return nil -} - -func (p *Plumber) HandleCreateRelayCmd(client protos.PlumberServerClient) error { - fmt.Println("create relay") - - return nil -} - -func (p *Plumber) HandleCreateTunnelCmd(client protos.PlumberServerClient) error { - fmt.Println("create tunnel") - - return nil -} - -/////////////////// DELETE ////////////////// - -func (p *Plumber) HandleDeleteConnectionCmd(client protos.PlumberServerClient) error { - fmt.Println("delete connection") - - return nil -} - -func (p *Plumber) HandleDeleteRelayCmd(client protos.PlumberServerClient) error { - fmt.Println("delete relay") +func (p *Plumber) displayJSON(input map[string]string) { + data, err := json.Marshal(input) + if err != nil { + p.log.Errorf("failed to marshal JSON: %s", err) + return + } - return nil -} + // TODO: Add --pretty to CLI protos + if true { + colorized, err := prettyjson.Format(data) + if err != nil { + p.log.Errorf("failed to colorize JSON: %s", err) + return + } -func (p *Plumber) HandleDeleteTunnelCmd(client protos.PlumberServerClient) error { - fmt.Println("delete tunnel") + data = colorized + } - return nil + fmt.Println(string(data)) } -////////////////// STOP ////////////////// - -func (p *Plumber) HandleStopRelayCmd(client protos.PlumberServerClient) error { - fmt.Println("stop relay") - - return nil -} +func (p *Plumber) displayProtobuf(msg proto.Message) error { + marshaller := jsonpb.Marshaler{ + Indent: " ", + } -func (p *Plumber) HandleStopTunnelCmd(client protos.PlumberServerClient) error { - fmt.Println("stop tunnel") + var buf bytes.Buffer - return nil -} + if err := marshaller.Marshal(&buf, msg); err != nil { + return errors.Wrap(err, "failed to marshal response") + } -//////////////////// RESUME ////////////////// + output := buf.Bytes() -func (p *Plumber) HandleResumeRelayCmd(client protos.PlumberServerClient) error { - fmt.Println("resume relay") + // TODO: Add pretty to CLI opts + if true { + colorized, err := prettyjson.Format(buf.Bytes()) + if err != nil { + return errors.Wrap(err, "unable to colorize response") + } - return nil -} + output = colorized + } -func (p *Plumber) HandleResumeTunnelCmd(client protos.PlumberServerClient) error { - fmt.Println("resume tunnel") + fmt.Println(string(output)) return nil } diff --git a/plumber/cli_manage_connection.go b/plumber/cli_manage_connection.go new file mode 100644 index 00000000..a3a18ec1 --- /dev/null +++ b/plumber/cli_manage_connection.go @@ -0,0 +1,91 @@ +package plumber + +import ( + "context" + + "github.com/batchcorp/plumber-schemas/build/go/protos" + "github.com/batchcorp/plumber-schemas/build/go/protos/common" + "github.com/batchcorp/plumber-schemas/build/go/protos/opts" + "github.com/pkg/errors" +) + +func (p *Plumber) HandleGetConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetConnection(ctx, &protos.GetConnectionRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + ConnectionId: p.CLIOptions.Manage.Get.Connection.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + return nil + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleGetAllConnectionsCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetAllConnections(ctx, &protos.GetAllConnectionsRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + return nil + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleDeleteConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.DeleteConnection(ctx, &protos.DeleteConnectionRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + ConnectionId: p.CLIOptions.Manage.Delete.Connection.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +// TODO: Implement +func (p *Plumber) HandleCreateConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.CreateConnection(ctx, &protos.CreateConnectionRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + Options: &opts.ConnectionOptions{ + Name: p.CLIOptions.Manage.Create.Connection.Name, + Notes: p.CLIOptions.Manage.Create.Connection.Notes, + Conn: nil, // TODO: How to create this object dynamically? We do this elsewhere... + }, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + return nil + } + + p.displayProtobuf(resp) + + return nil +} diff --git a/plumber/cli_manage_relay.go b/plumber/cli_manage_relay.go new file mode 100644 index 00000000..8bb40d66 --- /dev/null +++ b/plumber/cli_manage_relay.go @@ -0,0 +1,112 @@ +package plumber + +import ( + "context" + "fmt" + + "github.com/batchcorp/plumber-schemas/build/go/protos" + "github.com/batchcorp/plumber-schemas/build/go/protos/common" + "github.com/pkg/errors" +) + +func (p *Plumber) HandleGetRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetRelay(ctx, &protos.GetRelayRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + RelayId: p.CLIOptions.Manage.Get.Relay.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": "no such relay id"}) + return nil + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleGetAllRelaysCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetAllRelays(ctx, &protos.GetAllRelaysRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + }) + + if err != nil { + return errors.Wrap(err, "failed to get all relays") + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleResumeRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.ResumeRelay(ctx, &protos.ResumeRelayRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + RelayId: p.CLIOptions.Manage.Resume.Relay.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleStopRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.StopRelay(ctx, &protos.StopRelayRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + RelayId: p.CLIOptions.Manage.Resume.Relay.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleDeleteRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.DeleteRelay(ctx, &protos.DeleteRelayRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + RelayId: p.CLIOptions.Manage.Resume.Relay.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +// TODO: Implement +func (p *Plumber) HandleCreateRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { + fmt.Println("create relay") + + return nil +} diff --git a/plumber/cli_manage_tunnel.go b/plumber/cli_manage_tunnel.go new file mode 100644 index 00000000..9b7d3359 --- /dev/null +++ b/plumber/cli_manage_tunnel.go @@ -0,0 +1,109 @@ +package plumber + +import ( + "context" + + "github.com/batchcorp/plumber-schemas/build/go/protos" + "github.com/batchcorp/plumber-schemas/build/go/protos/common" + "github.com/pkg/errors" +) + +func (p *Plumber) HandleGetTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetTunnel(ctx, &protos.GetTunnelRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + TunnelId: p.CLIOptions.Manage.Get.Tunnel.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": "no such tunnel id"}) + return nil + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleGetAllTunnelsCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.GetAllTunnels(ctx, &protos.GetAllTunnelsRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + }) + + if err != nil { + return errors.Wrap(err, "failed to get all tunnels") + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +// TODO: Implement +func (p *Plumber) HandleCreateTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + return nil +} + +func (p *Plumber) HandleDeleteTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.DeleteTunnel(ctx, &protos.DeleteTunnelRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleStopTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.StopTunnel(ctx, &protos.StopTunnelRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} + +func (p *Plumber) HandleResumeTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + resp, err := client.ResumeTunnel(ctx, &protos.ResumeTunnelRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + }, + TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + } + + if err := p.displayProtobuf(resp); err != nil { + return errors.Wrap(err, "failed to display response") + } + + return nil +} diff --git a/plumber/plumber.go b/plumber/plumber.go index 59f9925d..7e723e1b 100644 --- a/plumber/plumber.go +++ b/plumber/plumber.go @@ -89,6 +89,7 @@ func New(cfg *Config) (*Plumber, error) { // generateConnectionOptions generates a connection config from passed in CLI // options. This function is used by plumber in CLI mode. +// TODO: This needs to be updated to support "manage create" func generateConnectionOptions(cfg *opts.CLIOptions) (*opts.ConnectionOptions, error) { if cfg == nil { return nil, errors.New("cli options config cannot be nil") From 2ad596a8e75d3a2d6ba9a15300bd000e058b17dc Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Tue, 22 Feb 2022 15:15:43 -0800 Subject: [PATCH 4/6] need to make pretty the default and allow disabling pretty output --- go.mod | 2 +- go.sum | 4 + options/options.go | 17 +- plumber/cli_manage.go | 34 ++-- plumber/cli_manage_connection.go | 59 ++++-- plumber/cli_manage_relay.go | 10 +- plumber/cli_manage_tunnel.go | 10 +- plumber/plumber.go | 12 +- .../opts/batch_connection_options.pb.go | 168 +++++++++--------- .../build/go/protos/opts/ps_opts_cli.pb.go | 67 ++++--- .../build/go/protos/opts/ps_opts_manage.pb.go | 148 ++++++++++----- .../build/go/protos/opts/ps_opts_server.pb.go | 8 +- vendor/modules.txt | 2 +- 13 files changed, 337 insertions(+), 204 deletions(-) diff --git a/go.mod b/go.mod index 4cda2cd9..f0e4c15b 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/batchcorp/kong v0.2.17-batch-fix github.com/batchcorp/natty v0.0.16 github.com/batchcorp/pgoutput v0.3.2 - github.com/batchcorp/plumber-schemas v0.0.145 + github.com/batchcorp/plumber-schemas v0.0.147 github.com/batchcorp/rabbit v0.1.17 github.com/dustin/go-humanize v1.0.0 // indirect github.com/eclipse/paho.mqtt.golang v1.2.0 diff --git a/go.sum b/go.sum index e8157adc..3fea00b3 100644 --- a/go.sum +++ b/go.sum @@ -145,6 +145,10 @@ github.com/batchcorp/plumber-schemas v0.0.144 h1:MrUefrzGQoUqxZcdW1ZRD3JqkS/2qmS github.com/batchcorp/plumber-schemas v0.0.144/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/plumber-schemas v0.0.145 h1:+zRyQ3EKiGwt9GbxZMKc4KC/A2A01AwzwDhyWpNRHT8= github.com/batchcorp/plumber-schemas v0.0.145/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.146 h1:lDeLMIi9be0Jk4fgCuV4rdiL1CLFppFNG8mm+RQr9rQ= +github.com/batchcorp/plumber-schemas v0.0.146/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.147 h1:xNwKH/UijDE1av61M6phT1hULa78RFAvnHIDrGgOXxY= +github.com/batchcorp/plumber-schemas v0.0.147/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/rabbit v0.1.17 h1:dui1W7FLTrNxyVlDN+G+6d8LXz8HBhVAcUethXql9vQ= github.com/batchcorp/rabbit v0.1.17/go.mod h1:2nplLhzjXrddaHWxrnduZS6tFwpF9QSpJ0a2A3erNYw= github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6/go.mod h1:6YNgTHLutezwnBvyneBbwvB8C82y3dcoOj5EQJIdGXA= diff --git a/options/options.go b/options/options.go index 96fcab3b..da3ed745 100644 --- a/options/options.go +++ b/options/options.go @@ -58,13 +58,20 @@ func New(args []string) (*kong.Context, *opts.CLIOptions, error) { cliOpts.Global.XAction = kongCtx.Args[0] cliOpts.Global.XFullCommand = strings.Join(args, " ") + // Set the subcommand (if any) + for _, v := range kongCtx.Path { + if v.Command != nil { + cliOpts.Global.XCommands = append(cliOpts.Global.XCommands, v.Command.Name) + } + } + if ActionUsesBackend(cliOpts.Global.XAction) { if len(args) >= 2 && cliOpts.Global.XAction != "manage" { cliOpts.Global.XBackend = args[1] } else { - // Go through the kong ctx path and find which backend was selected - if len(kongCtx.Path) >= 5 { - cliOpts.Global.XBackend = kongCtx.Path[len(kongCtx.Path)-1].Command.Name + // The backend is the last command in the path + if len(cliOpts.Global.XCommands) >= 4 { + cliOpts.Global.XBackend = cliOpts.Global.XCommands[len(cliOpts.Global.XCommands)-1] } } } @@ -181,7 +188,9 @@ func maybeDisplayVersion(args []string) { // options to. func NewCLIOptions() *opts.CLIOptions { return &opts.CLIOptions{ - Global: &opts.GlobalCLIOptions{}, + Global: &opts.GlobalCLIOptions{ + XCommands: make([]string, 0), + }, Server: &opts.ServerOptions{}, Read: newReadOptions(), Write: newWriteOptions(), diff --git a/plumber/cli_manage.go b/plumber/cli_manage.go index 9c3790a8..90f6c24e 100644 --- a/plumber/cli_manage.go +++ b/plumber/cli_manage.go @@ -7,12 +7,14 @@ import ( "fmt" "time" + "github.com/batchcorp/natty" "github.com/batchcorp/plumber-schemas/build/go/protos" "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "github.com/hokaccha/go-prettyjson" "github.com/pkg/errors" "google.golang.org/grpc" + "google.golang.org/grpc/credentials" ) func (p *Plumber) HandleManageCmd() error { @@ -23,24 +25,36 @@ func (p *Plumber) HandleManageCmd() error { // Setup gRPC conn + client var opts []grpc.DialOption - if p.CLIOptions.Manage.GlobalOptions.ServerUseTls { - // TODO: Need to be able to set certs + double check insecure skip verify + if p.CLIOptions.Manage.GlobalOptions.ManageUseTls { + tlsConfig, err := natty.GenerateTLSConfig( + p.CLIOptions.Manage.GlobalOptions.ManageTlsCaFile, + p.CLIOptions.Manage.GlobalOptions.ManageTlsCertFile, + p.CLIOptions.Manage.GlobalOptions.ManageTlsKeyFile, + p.CLIOptions.Manage.GlobalOptions.ManageInsecureTls, // TODO: Protos should be renamed to skip verify + ) + + if err != nil { + return errors.Wrap(err, "failed to generate TLS config") + } + + grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)) } else { // grpc.WithInsecure() is a required opt to disable use of TLS opts = append(opts, grpc.WithInsecure()) } - conn, err := grpc.Dial(p.CLIOptions.Manage.GlobalOptions.ServerAddress, opts...) + conn, err := grpc.Dial(p.CLIOptions.Manage.GlobalOptions.ManageAddress, opts...) if err != nil { return errors.Wrap(err, "failed to dial gRPC server") } - // TODO: Should allow timeout to be specified via CLI - ctx, _ := context.WithTimeout(context.Background(), time.Second*5) + timeout := time.Second * time.Duration(p.CLIOptions.Manage.GlobalOptions.ManageTimeoutSeconds) + + ctx, _ := context.WithTimeout(context.Background(), timeout) client := protos.NewPlumberServerClient(conn) - cmd := p.KongCtx.Args[1] + " " + p.KongCtx.Args[2] + cmd := p.CLIOptions.Global.XCommands[1] + " " + p.CLIOptions.Global.XCommands[2] switch cmd { // Get @@ -91,7 +105,7 @@ func (p *Plumber) HandleManageCmd() error { case "resume tunnel": err = p.HandleResumeTunnelCmd(ctx, client) default: - return fmt.Errorf("unrecognized comand: %s", p.KongCtx.Args[2]) + return fmt.Errorf("unrecognized command: '%s'", cmd) } if err != nil { @@ -108,8 +122,7 @@ func (p *Plumber) displayJSON(input map[string]string) { return } - // TODO: Add --pretty to CLI protos - if true { + if p.CLIOptions.Manage.GlobalOptions.ManagePretty { colorized, err := prettyjson.Format(data) if err != nil { p.log.Errorf("failed to colorize JSON: %s", err) @@ -135,8 +148,7 @@ func (p *Plumber) displayProtobuf(msg proto.Message) error { output := buf.Bytes() - // TODO: Add pretty to CLI opts - if true { + if p.CLIOptions.Manage.GlobalOptions.ManagePretty { colorized, err := prettyjson.Format(buf.Bytes()) if err != nil { return errors.Wrap(err, "unable to colorize response") diff --git a/plumber/cli_manage_connection.go b/plumber/cli_manage_connection.go index a3a18ec1..251991b1 100644 --- a/plumber/cli_manage_connection.go +++ b/plumber/cli_manage_connection.go @@ -2,17 +2,20 @@ package plumber import ( "context" + "fmt" + "strings" "github.com/batchcorp/plumber-schemas/build/go/protos" "github.com/batchcorp/plumber-schemas/build/go/protos/common" "github.com/batchcorp/plumber-schemas/build/go/protos/opts" + "github.com/mcuadros/go-lookup" "github.com/pkg/errors" ) func (p *Plumber) HandleGetConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetConnection(ctx, &protos.GetConnectionRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, ConnectionId: p.CLIOptions.Manage.Get.Connection.Id, }) @@ -32,7 +35,7 @@ func (p *Plumber) HandleGetConnectionCmd(ctx context.Context, client protos.Plum func (p *Plumber) HandleGetAllConnectionsCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetAllConnections(ctx, &protos.GetAllConnectionsRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, }) @@ -51,7 +54,7 @@ func (p *Plumber) HandleGetAllConnectionsCmd(ctx context.Context, client protos. func (p *Plumber) HandleDeleteConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.DeleteConnection(ctx, &protos.DeleteConnectionRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, ConnectionId: p.CLIOptions.Manage.Delete.Connection.Id, }) @@ -67,17 +70,18 @@ func (p *Plumber) HandleDeleteConnectionCmd(ctx context.Context, client protos.P return nil } -// TODO: Implement func (p *Plumber) HandleCreateConnectionCmd(ctx context.Context, client protos.PlumberServerClient) error { + // Create conn from CLI options + connOpts, err := generateConnOptionsForManageCreate(p.CLIOptions) + if err != nil { + return errors.Wrap(err, "failed to generate connection options") + } + resp, err := client.CreateConnection(ctx, &protos.CreateConnectionRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, - }, - Options: &opts.ConnectionOptions{ - Name: p.CLIOptions.Manage.Create.Connection.Name, - Notes: p.CLIOptions.Manage.Create.Connection.Notes, - Conn: nil, // TODO: How to create this object dynamically? We do this elsewhere... + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, + Options: connOpts, }) if err != nil { @@ -89,3 +93,38 @@ func (p *Plumber) HandleCreateConnectionCmd(ctx context.Context, client protos.P return nil } + +func generateConnOptionsForManageCreate(cliOpts *opts.CLIOptions) (*opts.ConnectionOptions, error) { + connOpts := &opts.ConnectionOptions{} + + if cliOpts.Manage.Create.Connection.Name != "" { + connOpts.Name = cliOpts.Manage.Create.Connection.Name + } + + if cliOpts.Manage.Create.Connection.Notes != "" { + connOpts.Notes = cliOpts.Manage.Create.Connection.Notes + } + + // We know that the backend we are interested in was selected via .XBackend + // Some backends have a dash, remove it + backendName := strings.Replace(cliOpts.Global.XBackend, "-", "", -1) + + // We are looking for the individual conn located at: cfg.$action.$backendName.XConn + lookupStrings := []string{"manage", "create", "connection", backendName} + + backendInterface, err := lookup.LookupI(cliOpts, lookupStrings...) + if err != nil { + return nil, fmt.Errorf("unable to lookup connection info for backendName '%s': %s", + cliOpts.Global.XBackend, err) + } + + conn, ok := opts.GenerateConnOpts(backendName, backendInterface.Interface()) + if !ok { + return nil, errors.New("unable to generate connection options via proto func") + } + + connOpts.Conn = conn + + return connOpts, nil + +} diff --git a/plumber/cli_manage_relay.go b/plumber/cli_manage_relay.go index 8bb40d66..a4f06018 100644 --- a/plumber/cli_manage_relay.go +++ b/plumber/cli_manage_relay.go @@ -12,7 +12,7 @@ import ( func (p *Plumber) HandleGetRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetRelay(ctx, &protos.GetRelayRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, RelayId: p.CLIOptions.Manage.Get.Relay.Id, }) @@ -32,7 +32,7 @@ func (p *Plumber) HandleGetRelayCmd(ctx context.Context, client protos.PlumberSe func (p *Plumber) HandleGetAllRelaysCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetAllRelays(ctx, &protos.GetAllRelaysRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, }) @@ -50,7 +50,7 @@ func (p *Plumber) HandleGetAllRelaysCmd(ctx context.Context, client protos.Plumb func (p *Plumber) HandleResumeRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.ResumeRelay(ctx, &protos.ResumeRelayRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, RelayId: p.CLIOptions.Manage.Resume.Relay.Id, }) @@ -69,7 +69,7 @@ func (p *Plumber) HandleResumeRelayCmd(ctx context.Context, client protos.Plumbe func (p *Plumber) HandleStopRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.StopRelay(ctx, &protos.StopRelayRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, RelayId: p.CLIOptions.Manage.Resume.Relay.Id, }) @@ -88,7 +88,7 @@ func (p *Plumber) HandleStopRelayCmd(ctx context.Context, client protos.PlumberS func (p *Plumber) HandleDeleteRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.DeleteRelay(ctx, &protos.DeleteRelayRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, RelayId: p.CLIOptions.Manage.Resume.Relay.Id, }) diff --git a/plumber/cli_manage_tunnel.go b/plumber/cli_manage_tunnel.go index 9b7d3359..940c2a28 100644 --- a/plumber/cli_manage_tunnel.go +++ b/plumber/cli_manage_tunnel.go @@ -11,7 +11,7 @@ import ( func (p *Plumber) HandleGetTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetTunnel(ctx, &protos.GetTunnelRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, TunnelId: p.CLIOptions.Manage.Get.Tunnel.Id, }) @@ -31,7 +31,7 @@ func (p *Plumber) HandleGetTunnelCmd(ctx context.Context, client protos.PlumberS func (p *Plumber) HandleGetAllTunnelsCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.GetAllTunnels(ctx, &protos.GetAllTunnelsRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, }) @@ -54,7 +54,7 @@ func (p *Plumber) HandleCreateTunnelCmd(ctx context.Context, client protos.Plumb func (p *Plumber) HandleDeleteTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.DeleteTunnel(ctx, &protos.DeleteTunnelRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, }) @@ -73,7 +73,7 @@ func (p *Plumber) HandleDeleteTunnelCmd(ctx context.Context, client protos.Plumb func (p *Plumber) HandleStopTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.StopTunnel(ctx, &protos.StopTunnelRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, }) @@ -92,7 +92,7 @@ func (p *Plumber) HandleStopTunnelCmd(ctx context.Context, client protos.Plumber func (p *Plumber) HandleResumeTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { resp, err := client.ResumeTunnel(ctx, &protos.ResumeTunnelRequest{ Auth: &common.Auth{ - Token: p.CLIOptions.Manage.GlobalOptions.ServerToken, + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, }, TunnelId: p.CLIOptions.Manage.Delete.Tunnel.Id, }) diff --git a/plumber/plumber.go b/plumber/plumber.go index 7e723e1b..3ad04318 100644 --- a/plumber/plumber.go +++ b/plumber/plumber.go @@ -75,9 +75,16 @@ func New(cfg *Config) (*Plumber, error) { return nil, errors.Wrap(err, "unable to populate protobuf message descriptors") } - connCfg, err := generateConnectionOptions(cfg.CLIOptions) + var connCfg *opts.ConnectionOptions + + // TODO: Improve this comment + // "manage" requires us to fill out "create" options differently + if cfg.CLIOptions.Global.XAction != "manage" { + connCfg, err = generateConnectionOptions(cfg.CLIOptions) + } + if err != nil { - return nil, errors.Wrap(err, "unable to generate connection config") + return nil, errors.Wrap(err, "unable to dynamic options config") } p.cliMD = mds @@ -89,7 +96,6 @@ func New(cfg *Config) (*Plumber, error) { // generateConnectionOptions generates a connection config from passed in CLI // options. This function is used by plumber in CLI mode. -// TODO: This needs to be updated to support "manage create" func generateConnectionOptions(cfg *opts.CLIOptions) (*opts.ConnectionOptions, error) { if cfg == nil { return nil, errors.New("cli options config cannot be nil") diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go index 226eaf9d..5251898c 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go @@ -8,194 +8,194 @@ import ( func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions_Conn, bool) { switch backend { - case "natsstreaming": - asserted, ok := connArgs.(args.NatsStreamingConn) + case "awssqs": + asserted, ok := connArgs.(args.AWSSQSConn) if !ok { return nil, false } - return &ConnectionOptions_NatsStreaming{ - NatsStreaming: &asserted, + return &ConnectionOptions_AwsSqs{ + AwsSqs: &asserted, }, true - case "postgres": - asserted, ok := connArgs.(args.PostgresConn) + case "nats": + asserted, ok := connArgs.(args.NatsConn) if !ok { return nil, false } - return &ConnectionOptions_Postgres{ - Postgres: &asserted, + return &ConnectionOptions_Nats{ + Nats: &asserted, }, true - case "pulsar": - asserted, ok := connArgs.(args.PulsarConn) + case "gcppubsub": + asserted, ok := connArgs.(args.GCPPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_Pulsar{ - Pulsar: &asserted, + return &ConnectionOptions_GcpPubsub{ + GcpPubsub: &asserted, }, true - case "rabbit": - asserted, ok := connArgs.(args.RabbitConn) + case "kafka": + asserted, ok := connArgs.(args.KafkaConn) if !ok { return nil, false } - return &ConnectionOptions_Rabbit{ - Rabbit: &asserted, + return &ConnectionOptions_Kafka{ + Kafka: &asserted, }, true - case "rabbitstreams": - asserted, ok := connArgs.(args.RabbitStreamsConn) + case "postgres": + asserted, ok := connArgs.(args.PostgresConn) if !ok { return nil, false } - return &ConnectionOptions_RabbitStreams{ - RabbitStreams: &asserted, + return &ConnectionOptions_Postgres{ + Postgres: &asserted, }, true - case "redispubsub": - asserted, ok := connArgs.(args.RedisPubSubConn) + case "azureeventhub": + asserted, ok := connArgs.(args.AzureEventHubConn) if !ok { return nil, false } - return &ConnectionOptions_RedisPubsub{ - RedisPubsub: &asserted, + return &ConnectionOptions_AzureEventHub{ + AzureEventHub: &asserted, }, true - case "activemq": - asserted, ok := connArgs.(args.ActiveMQConn) + case "kubemqqueue": + asserted, ok := connArgs.(args.KubeMQQueueConn) if !ok { return nil, false } - return &ConnectionOptions_ActiveMq{ - ActiveMq: &asserted, + return &ConnectionOptions_KubemqQueue{ + KubemqQueue: &asserted, }, true - case "awssns": - asserted, ok := connArgs.(args.AWSSNSConn) + case "redisstreams": + asserted, ok := connArgs.(args.RedisStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSns{ - AwsSns: &asserted, + return &ConnectionOptions_RedisStreams{ + RedisStreams: &asserted, }, true - case "azureeventhub": - asserted, ok := connArgs.(args.AzureEventHubConn) + case "azureservicebus": + asserted, ok := connArgs.(args.AzureServiceBusConn) if !ok { return nil, false } - return &ConnectionOptions_AzureEventHub{ - AzureEventHub: &asserted, + return &ConnectionOptions_AzureServiceBus{ + AzureServiceBus: &asserted, }, true - case "gcppubsub": - asserted, ok := connArgs.(args.GCPPubSubConn) + case "awssns": + asserted, ok := connArgs.(args.AWSSNSConn) if !ok { return nil, false } - return &ConnectionOptions_GcpPubsub{ - GcpPubsub: &asserted, + return &ConnectionOptions_AwsSns{ + AwsSns: &asserted, }, true - case "mongo": - asserted, ok := connArgs.(args.MongoConn) + case "natsstreaming": + asserted, ok := connArgs.(args.NatsStreamingConn) if !ok { return nil, false } - return &ConnectionOptions_Mongo{ - Mongo: &asserted, + return &ConnectionOptions_NatsStreaming{ + NatsStreaming: &asserted, }, true - case "redisstreams": - asserted, ok := connArgs.(args.RedisStreamsConn) + case "nsq": + asserted, ok := connArgs.(args.NSQConn) if !ok { return nil, false } - return &ConnectionOptions_RedisStreams{ - RedisStreams: &asserted, + return &ConnectionOptions_Nsq{ + Nsq: &asserted, }, true - case "azureservicebus": - asserted, ok := connArgs.(args.AzureServiceBusConn) + case "pulsar": + asserted, ok := connArgs.(args.PulsarConn) if !ok { return nil, false } - return &ConnectionOptions_AzureServiceBus{ - AzureServiceBus: &asserted, + return &ConnectionOptions_Pulsar{ + Pulsar: &asserted, }, true - case "awskinesis": - asserted, ok := connArgs.(args.AWSKinesisConn) + case "rabbitstreams": + asserted, ok := connArgs.(args.RabbitStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_AwsKinesis{ - AwsKinesis: &asserted, + return &ConnectionOptions_RabbitStreams{ + RabbitStreams: &asserted, }, true - case "kafka": - asserted, ok := connArgs.(args.KafkaConn) + case "redispubsub": + asserted, ok := connArgs.(args.RedisPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_Kafka{ - Kafka: &asserted, + return &ConnectionOptions_RedisPubsub{ + RedisPubsub: &asserted, }, true - case "awssqs": - asserted, ok := connArgs.(args.AWSSQSConn) + case "mqtt": + asserted, ok := connArgs.(args.MQTTConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSqs{ - AwsSqs: &asserted, + return &ConnectionOptions_Mqtt{ + Mqtt: &asserted, }, true - case "natsjetstream": - asserted, ok := connArgs.(args.NatsJetstreamConn) + case "awskinesis": + asserted, ok := connArgs.(args.AWSKinesisConn) if !ok { return nil, false } - return &ConnectionOptions_NatsJetstream{ - NatsJetstream: &asserted, + return &ConnectionOptions_AwsKinesis{ + AwsKinesis: &asserted, }, true - case "nats": - asserted, ok := connArgs.(args.NatsConn) + case "activemq": + asserted, ok := connArgs.(args.ActiveMQConn) if !ok { return nil, false } - return &ConnectionOptions_Nats{ - Nats: &asserted, + return &ConnectionOptions_ActiveMq{ + ActiveMq: &asserted, }, true - case "kubemqqueue": - asserted, ok := connArgs.(args.KubeMQQueueConn) + case "mongo": + asserted, ok := connArgs.(args.MongoConn) if !ok { return nil, false } - return &ConnectionOptions_KubemqQueue{ - KubemqQueue: &asserted, + return &ConnectionOptions_Mongo{ + Mongo: &asserted, }, true - case "nsq": - asserted, ok := connArgs.(args.NSQConn) + case "rabbit": + asserted, ok := connArgs.(args.RabbitConn) if !ok { return nil, false } - return &ConnectionOptions_Nsq{ - Nsq: &asserted, + return &ConnectionOptions_Rabbit{ + Rabbit: &asserted, }, true - case "mqtt": - asserted, ok := connArgs.(args.MQTTConn) + case "natsjetstream": + asserted, ok := connArgs.(args.NatsJetstreamConn) if !ok { return nil, false } - return &ConnectionOptions_Mqtt{ - Mqtt: &asserted, + return &ConnectionOptions_NatsJetstream{ + NatsJetstream: &asserted, }, true default: return nil, false diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go index 6708edd0..e0f6f280 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_cli.pb.go @@ -32,7 +32,9 @@ type GlobalCLIOptions struct { // @gotags: kong:"-" XAction string `protobuf:"bytes,1001,opt,name=_action,json=Action,proto3" json:"_action,omitempty" kong:"-"` // @gotags: kong:"-" - XBackend string `protobuf:"bytes,1002,opt,name=_backend,json=Backend,proto3" json:"_backend,omitempty" kong:"-"` + XBackend string `protobuf:"bytes,1002,opt,name=_backend,json=Backend,proto3" json:"_backend,omitempty" kong:"-"` + // @gotags: kong:"-" + XCommands []string `protobuf:"bytes,1003,rep,name=_commands,json=Commands,proto3" json:"_commands,omitempty" kong:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -105,6 +107,13 @@ func (m *GlobalCLIOptions) GetXBackend() string { return "" } +func (m *GlobalCLIOptions) GetXCommands() []string { + if m != nil { + return m.XCommands + } + return nil +} + // CLI options in plumber are derived 100% from the protobuf schemas. // The CLIOptions type is used for populating base CLI options. Introducing // a top-level CLI option should begin here (and trickle all the way down to @@ -222,32 +231,34 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_cli.proto", fileDescriptor_e6a10a7c41f3437b) } var fileDescriptor_e6a10a7c41f3437b = []byte{ - // 432 bytes of a gzipped FileDescriptorProto + // 449 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x8a, 0xd4, 0x30, - 0x14, 0xc6, 0x19, 0x77, 0xa7, 0x33, 0xa6, 0x08, 0x12, 0x44, 0xb3, 0x05, 0x61, 0x59, 0x6f, 0xf6, - 0x42, 0x1b, 0xa8, 0x78, 0x21, 0x5e, 0x39, 0x0b, 0x8a, 0xa0, 0x08, 0x55, 0x10, 0xbc, 0x29, 0x49, - 0x1a, 0x3b, 0xc5, 0xb4, 0xa9, 0xf9, 0xb3, 0xe2, 0xdb, 0xf8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 0x9d, 0x0b, + 0xf1, 0x6f, 0x0a, 0xc2, 0x99, 0x90, 0x0f, 0x88, 0xc6, 0x10, 0xaf, 0x74, 0x1e, 0xff, 0xaa, 0x61, + 0x3d, 0xe3, 0x79, 0x87, 0x68, 0xf4, 0x78, 0xe5, 0xf1, 0xc5, 0xe7, 0xe7, 0x55, 0x6d, 0x4e, 0x36, + 0x8f, 0x0b, 0xd9, 0x24, 0x98, 0x5d, 0x48, 0xd5, 0x25, 0x9d, 0xb0, 0x4d, 0xce, 0xd5, 0x13, 0x5d, + 0x9c, 0x78, 0xc3, 0x74, 0x92, 0xdb, 0x5a, 0x94, 0x49, 0x25, 0x13, 0x3f, 0x32, 0x71, 0x23, 0xf3, + 0x00, 0x8b, 0xa7, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xef, 0xe4, 0x0c, 0x3e, 0x99, 0x03, 0x00, + 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go index ad0dde4e..1c490690 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go @@ -107,13 +107,23 @@ func (m *ManageOptions) GetResume() *ResumeOptions { type GlobalManageOptions struct { // @gotags: kong:"help='Plumber server gRPC API address',default='localhost:9090'" - ServerAddress string `protobuf:"bytes,1,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty" kong:"help='Plumber server gRPC API address',default='localhost:9090'"` + ManageAddress string `protobuf:"bytes,1,opt,name=manage_address,json=manageAddress,proto3" json:"manage_address,omitempty" kong:"help='Plumber server gRPC API address',default='localhost:9090'"` // @gotags: kong:"help='Plumber server auth token',default='batchcorp'" - ServerToken string `protobuf:"bytes,2,opt,name=server_token,json=serverToken,proto3" json:"server_token,omitempty" kong:"help='Plumber server auth token',default='batchcorp'"` + ManageToken string `protobuf:"bytes,2,opt,name=manage_token,json=manageToken,proto3" json:"manage_token,omitempty" kong:"help='Plumber server auth token',default='batchcorp'"` + // @gotags: kong:"help='gRPC call timeout seconds',default=5" + ManageTimeoutSeconds int64 `protobuf:"varint,3,opt,name=manage_timeout_seconds,json=manageTimeoutSeconds,proto3" json:"manage_timeout_seconds,omitempty" kong:"help='gRPC call timeout seconds',default=5"` // @gotags: kong:"help='Use TLS when talking to plumber server',default='false'" - ServerUseTls bool `protobuf:"varint,3,opt,name=server_use_tls,json=serverUseTls,proto3" json:"server_use_tls,omitempty" kong:"help='Use TLS when talking to plumber server',default='false'"` + ManageUseTls bool `protobuf:"varint,4,opt,name=manage_use_tls,json=manageUseTls,proto3" json:"manage_use_tls,omitempty" kong:"help='Use TLS when talking to plumber server',default='false'"` // @gotags: kong:"help='Skip TLS server certificate verification',default='false'" - ServerInsecureTls bool `protobuf:"varint,4,opt,name=server_insecure_tls,json=serverInsecureTls,proto3" json:"server_insecure_tls,omitempty" kong:"help='Skip TLS server certificate verification',default='false'"` + ManageInsecureTls bool `protobuf:"varint,5,opt,name=manage_insecure_tls,json=manageInsecureTls,proto3" json:"manage_insecure_tls,omitempty" kong:"help='Skip TLS server certificate verification',default='false'"` + // @gotags: kong:"help='TLS CA file'" + ManageTlsCaFile string `protobuf:"bytes,6,opt,name=manage_tls_ca_file,json=manageTlsCaFile,proto3" json:"manage_tls_ca_file,omitempty" kong:"help='TLS CA file'"` + // @gotags: kong:"help='TLS client cert file'" + ManageTlsCertFile string `protobuf:"bytes,7,opt,name=manage_tls_cert_file,json=manageTlsCertFile,proto3" json:"manage_tls_cert_file,omitempty" kong:"help='TLS client cert file'"` + // @gotags: kong:"help='TLS client key file'" + ManageTlsKeyFile string `protobuf:"bytes,8,opt,name=manage_tls_key_file,json=manageTlsKeyFile,proto3" json:"manage_tls_key_file,omitempty" kong:"help='TLS client key file'"` + // @gotags: kong:"help='Make output pretty (colorized)',default='false'" + ManagePretty bool `protobuf:"varint,9,opt,name=manage_pretty,json=managePretty,proto3" json:"manage_pretty,omitempty" kong:"help='Make output pretty (colorized)',default='false'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -144,30 +154,65 @@ func (m *GlobalManageOptions) XXX_DiscardUnknown() { var xxx_messageInfo_GlobalManageOptions proto.InternalMessageInfo -func (m *GlobalManageOptions) GetServerAddress() string { +func (m *GlobalManageOptions) GetManageAddress() string { if m != nil { - return m.ServerAddress + return m.ManageAddress } return "" } -func (m *GlobalManageOptions) GetServerToken() string { +func (m *GlobalManageOptions) GetManageToken() string { if m != nil { - return m.ServerToken + return m.ManageToken } return "" } -func (m *GlobalManageOptions) GetServerUseTls() bool { +func (m *GlobalManageOptions) GetManageTimeoutSeconds() int64 { if m != nil { - return m.ServerUseTls + return m.ManageTimeoutSeconds + } + return 0 +} + +func (m *GlobalManageOptions) GetManageUseTls() bool { + if m != nil { + return m.ManageUseTls + } + return false +} + +func (m *GlobalManageOptions) GetManageInsecureTls() bool { + if m != nil { + return m.ManageInsecureTls } return false } -func (m *GlobalManageOptions) GetServerInsecureTls() bool { +func (m *GlobalManageOptions) GetManageTlsCaFile() string { + if m != nil { + return m.ManageTlsCaFile + } + return "" +} + +func (m *GlobalManageOptions) GetManageTlsCertFile() string { + if m != nil { + return m.ManageTlsCertFile + } + return "" +} + +func (m *GlobalManageOptions) GetManageTlsKeyFile() string { + if m != nil { + return m.ManageTlsKeyFile + } + return "" +} + +func (m *GlobalManageOptions) GetManagePretty() bool { if m != nil { - return m.ServerInsecureTls + return m.ManagePretty } return false } @@ -457,40 +502,47 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_manage.proto", fileDescriptor_1d5f0e150eafe5f0) } var fileDescriptor_1d5f0e150eafe5f0 = []byte{ - // 557 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 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5b, 0x5d, 0x35, 0xa8, 0x46, - 0xa4, 0x19, 0x3a, 0x27, 0xc3, 0x54, 0x40, 0xac, 0xc0, 0xdb, 0x33, 0xf4, 0xb8, 0x43, 0x5f, 0x98, - 0x54, 0x23, 0xa8, 0x49, 0xad, 0x59, 0x02, 0x03, 0x05, 0xde, 0xc0, 0xa2, 0xb9, 0x34, 0xa9, 0x56, - 0x83, 0x24, 0x7d, 0x44, 0xfa, 0x52, 0xf1, 0xd2, 0x1b, 0x1a, 0x85, 0xd7, 0x51, 0xbc, 0x55, 0xbc, - 0x6c, 0x78, 0x43, 0xe9, 0x0e, 0x02, 0x64, 0x95, 0x83, 0xf7, 0x9f, 0xa5, 0x43, 0x68, 0x52, 0x6d, - 0x07, 0x24, 0x5f, 0xf5, 0xf7, 0xfb, 0x37, 0x06, 0xd3, 0xaf, 0x0e, 0x39, 0xb2, 0x4c, 0x88, 0xde, - 0x27, 0x87, 0x12, 0xc4, 0x47, 0x10, 0x51, 0xbc, 0x5c, 0x0a, 0x90, 0x38, 0xdb, 0x83, 0xd0, 0xc5, - 0xe8, 0x39, 0x06, 0xe9, 0x09, 0xf9, 0xbf, 0xc6, 0x14, 0xff, 0x00, 0x85, 0x19, 0xe1, 0x41, 0x38, - 0xc2, 0xd8, 0x42, 0x87, 0xe8, 0xac, 0xad, 0x54, 0x49, 0x88, 0x14, 0x93, 0x66, 0x72, 0xfb, 0x61, - 0x2d, 0x7c, 0x27, 0x61, 0xc1, 0x24, 0xf5, 0xc9, 0x51, 0x4d, 0xad, 0x0b, 0x09, 0x69, 0x25, 0x10, - 0xed, 0x1b, 0xf4, 0x26, 0xa6, 0x5e, 0xd6, 0x99, 0x05, 0x93, 0xd3, 0x6f, 0x0e, 0x21, 0x9b, 0xbb, - 0xa1, 0xe7, 0x84, 0x6c, 0x76, 0xae, 0x5e, 0x83, 0x93, 0xdd, 0x8b, 0xbc, 0x68, 0x89, 0x66, 0x16, - 0x5b, 0x22, 0x3a, 0x27, 0x03, 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, 0x00, + // 659 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xc7, 0xe5, 0xe6, 0x4f, 0x9b, 0xcd, 0x2f, 0xfd, 0xb5, 0xdb, 0x0a, 0x4c, 0x05, 0x34, 0x0d, + 0x45, 0x2a, 0x82, 0xc6, 0x52, 0x4b, 0x11, 0x88, 0x53, 0x69, 0x45, 0x05, 0x08, 0x81, 0xdc, 0x72, + 0xe1, 0x62, 0x39, 0xce, 0x90, 0x5a, 0x5d, 0x7b, 0x2d, 0xef, 0xfa, 0x10, 0x4e, 0xbc, 0x08, 0x2f, + 0xc2, 0x03, 0xf0, 0x02, 0xbc, 0x10, 0xda, 0x9d, 0xb5, 0x13, 0x87, 0xa5, 0x02, 0x71, 0x8a, 0x32, + 0xf3, 0xf9, 0xee, 0xcc, 0x77, 0x77, 0xc6, 0xe4, 0x16, 0xcf, 0xa4, 0xf0, 0x32, 0x11, 0xa8, 0xdf, + 0x20, 0x09, 0xd3, 0x70, 0x02, 0xc3, 0x2c, 0xe7, 0x92, 0xd3, 0xae, 0xfe, 0x11, 0x43, 0x95, 0xd9, + 0xda, 0xb5, 0x70, 0x41, 0xc4, 0xd3, 0x14, 0x22, 0x19, 0xf3, 0x14, 0x25, 0x5b, 0xdb, 0x36, 0x2a, + 0x07, 0x16, 0x4e, 0x0d, 0xd0, 0xb7, 0x01, 0xb2, 0x48, 0x53, 0x60, 0x48, 0x0c, 0x7e, 0x2c, 0x91, + 0xde, 0x5b, 0x1d, 0x7f, 0x97, 0xa9, 0x93, 0x05, 0x3d, 0x23, 0xab, 0x13, 0xc6, 0x47, 0x21, 0x53, + 0x22, 0x15, 0x71, 0x9d, 0xbe, 0xb3, 0xd7, 0x3d, 0xe8, 0x0f, 0xe7, 0x1a, 0x1c, 0x9e, 0x69, 0xa4, + 0xa6, 0xf4, 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x23, 0x78, + 0xc0, 0xdf, 0x1b, 0x41, 0x9d, 0xdd, 0xc8, 0x67, 0xd2, 0x9d, 0xfb, 0x7a, 0xd0, 0xc3, 0xb2, 0xbe, + 0x63, 0x79, 0x56, 0x05, 0xda, 0xaa, 0x3f, 0xa9, 0xaa, 0x63, 0xd7, 0x77, 0x7f, 0x51, 0xd9, 0x6b, + 0x7f, 0x71, 0x48, 0xaf, 0xf6, 0x29, 0x9a, 0xd9, 0x77, 0x2c, 0xf6, 0x11, 0xbd, 0xde, 0xfe, 0x92, + 0xc5, 0x3e, 0xea, 0xac, 0x2d, 0xbc, 0x78, 0xfe, 0xf1, 0xd9, 0x24, 0x96, 0x97, 0xc5, 0x68, 0x18, + 0xf1, 0xc4, 0x1b, 0x85, 0x32, 0xba, 0x8c, 0x78, 0x9e, 0x79, 0x19, 0x2b, 0x92, 0x11, 0xe4, 0xfb, + 0x22, 0xba, 0x84, 0x24, 0x14, 0xde, 0xa8, 0x88, 0xd9, 0xd8, 0x9b, 0x70, 0x0f, 0x0f, 0xf6, 0xd4, + 0xc1, 0xa3, 0xb6, 0xfe, 0x73, 0xf8, 0x33, 0x00, 0x00, 0xff, 0xff, 0x18, 0x7f, 0x00, 0x07, 0x1a, + 0x07, 0x00, 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go index 869c96c6..630ef6ee 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_server.pb.go @@ -25,8 +25,8 @@ type ServerOptions struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" kong:"default=plumber1,help='Unique ID that identifies this plumber node',env='PLUMBER_SERVER_NODE_ID',required"` // @gotags: kong:"default=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa,help='ID of the plumber cluster (has to be the same across all nodes)',env='PLUMBER_SERVER_CLUSTER_ID',required" ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty" kong:"default=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa,help='ID of the plumber cluster (has to be the same across all nodes)',env='PLUMBER_SERVER_CLUSTER_ID',required"` - // @gotags: kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=127.0.0.1:9090" - GrpcListenAddress string `protobuf:"bytes,3,opt,name=grpc_listen_address,json=grpcListenAddress,proto3" json:"grpc_listen_address,omitempty" kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=127.0.0.1:9090"` + // @gotags: kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=0.0.0.0:9090" + GrpcListenAddress string `protobuf:"bytes,3,opt,name=grpc_listen_address,json=grpcListenAddress,proto3" json:"grpc_listen_address,omitempty" kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=0.0.0.0:9090"` // @gotags: kong:"default=batchcorp,help='All gRPC requests require this auth token to be set',env='PLUMBER_SERVER_AUTH_TOKEN',required" AuthToken string `protobuf:"bytes,4,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty" kong:"default=batchcorp,help='All gRPC requests require this auth token to be set',env='PLUMBER_SERVER_AUTH_TOKEN',required"` // @gotags: kong:"help='Comma separated list of NATS server URLs (can contain user:password if using auth; only used if --enable-cluster is true)',env='PLUMBER_SERVER_NATS_URL',default='nats://localhost:4222'" @@ -53,8 +53,8 @@ type ServerOptions struct { StatsDatabasePath string `protobuf:"bytes,14,opt,name=stats_database_path,json=statsDatabasePath,proto3" json:"stats_database_path,omitempty" kong:"help='Location to store time-series data for counters',default='./.tsdata'"` // @gotags: kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'" StatsFlushIntervalSeconds int32 `protobuf:"varint,15,opt,name=stats_flush_interval_seconds,json=statsFlushIntervalSeconds,proto3" json:"stats_flush_interval_seconds,omitempty" kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'"` - // @gotags: kong:"help='What address to bind the built-in HTTP server to',default='127.0.0.1:9191'" - HttpListenAddress string `protobuf:"bytes,16,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',default='127.0.0.1:9191'"` + // @gotags: kong:"help='What address to bind the built-in HTTP server to',default='0.0.0.0:9191'" + HttpListenAddress string `protobuf:"bytes,16,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',default='0.0.0.0:9191'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` diff --git a/vendor/modules.txt b/vendor/modules.txt index 440850ca..e08e0f56 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -144,7 +144,7 @@ github.com/batchcorp/natty # github.com/batchcorp/pgoutput v0.3.2 ## explicit github.com/batchcorp/pgoutput -# github.com/batchcorp/plumber-schemas v0.0.145 +# github.com/batchcorp/plumber-schemas v0.0.147 ## explicit github.com/batchcorp/plumber-schemas/build/go/protos github.com/batchcorp/plumber-schemas/build/go/protos/args From 310d3884cd9348353446e451467a15f927e7adda Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Tue, 22 Feb 2022 22:17:03 -0800 Subject: [PATCH 5/6] create relay is done --- go.mod | 2 +- go.sum | 2 + plumber/cli_manage.go | 4 +- plumber/cli_manage_connection.go | 8 +- plumber/cli_manage_relay.go | 51 ++++++- .../opts/batch_connection_options.pb.go | 144 +++++++++--------- .../protos/opts/batch_merge_relay_opts.pb.go | 46 ++++++ .../build/go/protos/opts/ps_opts_manage.pb.go | 92 +++++------ vendor/modules.txt | 2 +- 9 files changed, 225 insertions(+), 126 deletions(-) create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_relay_opts.pb.go diff --git a/go.mod b/go.mod index f0e4c15b..3d469831 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/batchcorp/kong v0.2.17-batch-fix github.com/batchcorp/natty v0.0.16 github.com/batchcorp/pgoutput v0.3.2 - github.com/batchcorp/plumber-schemas v0.0.147 + github.com/batchcorp/plumber-schemas v0.0.149 github.com/batchcorp/rabbit v0.1.17 github.com/dustin/go-humanize v1.0.0 // indirect github.com/eclipse/paho.mqtt.golang v1.2.0 diff --git a/go.sum b/go.sum index 3fea00b3..493f73c5 100644 --- a/go.sum +++ b/go.sum @@ -149,6 +149,8 @@ github.com/batchcorp/plumber-schemas v0.0.146 h1:lDeLMIi9be0Jk4fgCuV4rdiL1CLFppF github.com/batchcorp/plumber-schemas v0.0.146/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/plumber-schemas v0.0.147 h1:xNwKH/UijDE1av61M6phT1hULa78RFAvnHIDrGgOXxY= github.com/batchcorp/plumber-schemas v0.0.147/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.149 h1:1mJkLS+LW6azzXI15svMys4CW30IlCkT4H73rjIi/3o= +github.com/batchcorp/plumber-schemas v0.0.149/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/rabbit v0.1.17 h1:dui1W7FLTrNxyVlDN+G+6d8LXz8HBhVAcUethXql9vQ= github.com/batchcorp/rabbit v0.1.17/go.mod h1:2nplLhzjXrddaHWxrnduZS6tFwpF9QSpJ0a2A3erNYw= github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6/go.mod h1:6YNgTHLutezwnBvyneBbwvB8C82y3dcoOj5EQJIdGXA= diff --git a/plumber/cli_manage.go b/plumber/cli_manage.go index 90f6c24e..a2468d67 100644 --- a/plumber/cli_manage.go +++ b/plumber/cli_manage.go @@ -122,7 +122,7 @@ func (p *Plumber) displayJSON(input map[string]string) { return } - if p.CLIOptions.Manage.GlobalOptions.ManagePretty { + if !p.CLIOptions.Manage.GlobalOptions.DisablePretty { colorized, err := prettyjson.Format(data) if err != nil { p.log.Errorf("failed to colorize JSON: %s", err) @@ -148,7 +148,7 @@ func (p *Plumber) displayProtobuf(msg proto.Message) error { output := buf.Bytes() - if p.CLIOptions.Manage.GlobalOptions.ManagePretty { + if !p.CLIOptions.Manage.GlobalOptions.DisablePretty { colorized, err := prettyjson.Format(buf.Bytes()) if err != nil { return errors.Wrap(err, "unable to colorize response") diff --git a/plumber/cli_manage_connection.go b/plumber/cli_manage_connection.go index 251991b1..8eeac1d7 100644 --- a/plumber/cli_manage_connection.go +++ b/plumber/cli_manage_connection.go @@ -105,7 +105,13 @@ func generateConnOptionsForManageCreate(cliOpts *opts.CLIOptions) (*opts.Connect connOpts.Notes = cliOpts.Manage.Create.Connection.Notes } - // We know that the backend we are interested in was selected via .XBackend + // We need to be able to generate a ConnectionOptions from the CLI options. + // We have backend-specific arguments in options, but we do not have them + // in the form of *ConnectionOptions. + // + // The following "cleverness" is done to dynamically generate such options + // from the CLI args. + // Some backends have a dash, remove it backendName := strings.Replace(cliOpts.Global.XBackend, "-", "", -1) diff --git a/plumber/cli_manage_relay.go b/plumber/cli_manage_relay.go index a4f06018..b370a4e7 100644 --- a/plumber/cli_manage_relay.go +++ b/plumber/cli_manage_relay.go @@ -2,10 +2,11 @@ package plumber import ( "context" - "fmt" + "strings" "github.com/batchcorp/plumber-schemas/build/go/protos" "github.com/batchcorp/plumber-schemas/build/go/protos/common" + "github.com/batchcorp/plumber-schemas/build/go/protos/opts" "github.com/pkg/errors" ) @@ -104,9 +105,53 @@ func (p *Plumber) HandleDeleteRelayCmd(ctx context.Context, client protos.Plumbe return nil } -// TODO: Implement func (p *Plumber) HandleCreateRelayCmd(ctx context.Context, client protos.PlumberServerClient) error { - fmt.Println("create relay") + // Create relay options from CLI opts + relayOpts, err := generateRelayOptionsForManageCreate(p.CLIOptions) + if err != nil { + return errors.Wrap(err, "failed to generate connection options") + } + + resp, err := client.CreateRelay(ctx, &protos.CreateRelayRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, + }, + Opts: relayOpts, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + return nil + } + + p.displayProtobuf(resp) return nil } + +func generateRelayOptionsForManageCreate(cliOpts *opts.CLIOptions) (*opts.RelayOptions, error) { + relayOpts := &opts.RelayOptions{ + CollectionToken: cliOpts.Manage.Create.Relay.CollectionToken, + BatchSize: cliOpts.Manage.Create.Relay.BatchSize, + BatchMaxRetry: cliOpts.Manage.Create.Relay.BatchMaxRetry, + ConnectionId: cliOpts.Manage.Create.Relay.ConnectionId, + NumWorkers: cliOpts.Manage.Create.Relay.NumWorkers, + } + + // We need to assign the CLI opts to the correct backend field in the request. + // As in, cliOpts.Manage.Create.Relay.Kafka needs to be assigned to relayOpts.Kafka + // (if kafka was specified). To do this, we will rely on a helper func that + // is generated via code-gen in plumber-schemas. + + // Some backends have a dash, remove it; all further normalization will be + // taken care of by the Merge function. + backendName := strings.Replace(cliOpts.Global.XBackend, "-", "", -1) + + relayOpts.Kafka = &opts.RelayGroupKafkaOptions{Args: cliOpts.Manage.Create.Relay.Kafka} + + if err := opts.MergeRelayOptions(backendName, relayOpts, cliOpts.Manage.Create.Relay); err != nil { + return nil, errors.Wrap(err, "unable to merge relay options") + } + + return relayOpts, nil +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go index 5251898c..bfe12ba7 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go @@ -8,23 +8,23 @@ import ( func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions_Conn, bool) { switch backend { - case "awssqs": - asserted, ok := connArgs.(args.AWSSQSConn) + case "activemq": + asserted, ok := connArgs.(args.ActiveMQConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSqs{ - AwsSqs: &asserted, + return &ConnectionOptions_ActiveMq{ + ActiveMq: &asserted, }, true - case "nats": - asserted, ok := connArgs.(args.NatsConn) + case "nsq": + asserted, ok := connArgs.(args.NSQConn) if !ok { return nil, false } - return &ConnectionOptions_Nats{ - Nats: &asserted, + return &ConnectionOptions_Nsq{ + Nsq: &asserted, }, true case "gcppubsub": asserted, ok := connArgs.(args.GCPPubSubConn) @@ -35,59 +35,59 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_GcpPubsub{ GcpPubsub: &asserted, }, true - case "kafka": - asserted, ok := connArgs.(args.KafkaConn) + case "awskinesis": + asserted, ok := connArgs.(args.AWSKinesisConn) if !ok { return nil, false } - return &ConnectionOptions_Kafka{ - Kafka: &asserted, + return &ConnectionOptions_AwsKinesis{ + AwsKinesis: &asserted, }, true - case "postgres": - asserted, ok := connArgs.(args.PostgresConn) + case "natsstreaming": + asserted, ok := connArgs.(args.NatsStreamingConn) if !ok { return nil, false } - return &ConnectionOptions_Postgres{ - Postgres: &asserted, + return &ConnectionOptions_NatsStreaming{ + NatsStreaming: &asserted, }, true - case "azureeventhub": - asserted, ok := connArgs.(args.AzureEventHubConn) + case "rabbit": + asserted, ok := connArgs.(args.RabbitConn) if !ok { return nil, false } - return &ConnectionOptions_AzureEventHub{ - AzureEventHub: &asserted, + return &ConnectionOptions_Rabbit{ + Rabbit: &asserted, }, true - case "kubemqqueue": - asserted, ok := connArgs.(args.KubeMQQueueConn) + case "rabbitstreams": + asserted, ok := connArgs.(args.RabbitStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_KubemqQueue{ - KubemqQueue: &asserted, + return &ConnectionOptions_RabbitStreams{ + RabbitStreams: &asserted, }, true - case "redisstreams": - asserted, ok := connArgs.(args.RedisStreamsConn) + case "redispubsub": + asserted, ok := connArgs.(args.RedisPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_RedisStreams{ - RedisStreams: &asserted, + return &ConnectionOptions_RedisPubsub{ + RedisPubsub: &asserted, }, true - case "azureservicebus": - asserted, ok := connArgs.(args.AzureServiceBusConn) + case "azureeventhub": + asserted, ok := connArgs.(args.AzureEventHubConn) if !ok { return nil, false } - return &ConnectionOptions_AzureServiceBus{ - AzureServiceBus: &asserted, + return &ConnectionOptions_AzureEventHub{ + AzureEventHub: &asserted, }, true case "awssns": asserted, ok := connArgs.(args.AWSSNSConn) @@ -98,23 +98,23 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_AwsSns{ AwsSns: &asserted, }, true - case "natsstreaming": - asserted, ok := connArgs.(args.NatsStreamingConn) + case "mongo": + asserted, ok := connArgs.(args.MongoConn) if !ok { return nil, false } - return &ConnectionOptions_NatsStreaming{ - NatsStreaming: &asserted, + return &ConnectionOptions_Mongo{ + Mongo: &asserted, }, true - case "nsq": - asserted, ok := connArgs.(args.NSQConn) + case "nats": + asserted, ok := connArgs.(args.NatsConn) if !ok { return nil, false } - return &ConnectionOptions_Nsq{ - Nsq: &asserted, + return &ConnectionOptions_Nats{ + Nats: &asserted, }, true case "pulsar": asserted, ok := connArgs.(args.PulsarConn) @@ -125,77 +125,77 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_Pulsar{ Pulsar: &asserted, }, true - case "rabbitstreams": - asserted, ok := connArgs.(args.RabbitStreamsConn) + case "natsjetstream": + asserted, ok := connArgs.(args.NatsJetstreamConn) if !ok { return nil, false } - return &ConnectionOptions_RabbitStreams{ - RabbitStreams: &asserted, + return &ConnectionOptions_NatsJetstream{ + NatsJetstream: &asserted, }, true - case "redispubsub": - asserted, ok := connArgs.(args.RedisPubSubConn) + case "mqtt": + asserted, ok := connArgs.(args.MQTTConn) if !ok { return nil, false } - return &ConnectionOptions_RedisPubsub{ - RedisPubsub: &asserted, + return &ConnectionOptions_Mqtt{ + Mqtt: &asserted, }, true - case "mqtt": - asserted, ok := connArgs.(args.MQTTConn) + case "kubemqqueue": + asserted, ok := connArgs.(args.KubeMQQueueConn) if !ok { return nil, false } - return &ConnectionOptions_Mqtt{ - Mqtt: &asserted, + return &ConnectionOptions_KubemqQueue{ + KubemqQueue: &asserted, }, true - case "awskinesis": - asserted, ok := connArgs.(args.AWSKinesisConn) + case "kafka": + asserted, ok := connArgs.(args.KafkaConn) if !ok { return nil, false } - return &ConnectionOptions_AwsKinesis{ - AwsKinesis: &asserted, + return &ConnectionOptions_Kafka{ + Kafka: &asserted, }, true - case "activemq": - asserted, ok := connArgs.(args.ActiveMQConn) + case "awssqs": + asserted, ok := connArgs.(args.AWSSQSConn) if !ok { return nil, false } - return &ConnectionOptions_ActiveMq{ - ActiveMq: &asserted, + return &ConnectionOptions_AwsSqs{ + AwsSqs: &asserted, }, true - case "mongo": - asserted, ok := connArgs.(args.MongoConn) + case "postgres": + asserted, ok := connArgs.(args.PostgresConn) if !ok { return nil, false } - return &ConnectionOptions_Mongo{ - Mongo: &asserted, + return &ConnectionOptions_Postgres{ + Postgres: &asserted, }, true - case "rabbit": - asserted, ok := connArgs.(args.RabbitConn) + case "redisstreams": + asserted, ok := connArgs.(args.RedisStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_Rabbit{ - Rabbit: &asserted, + return &ConnectionOptions_RedisStreams{ + RedisStreams: &asserted, }, true - case "natsjetstream": - asserted, ok := connArgs.(args.NatsJetstreamConn) + case "azureservicebus": + asserted, ok := connArgs.(args.AzureServiceBusConn) if !ok { return nil, false } - return &ConnectionOptions_NatsJetstream{ - NatsJetstream: &asserted, + return &ConnectionOptions_AzureServiceBus{ + AzureServiceBus: &asserted, }, true default: return nil, false diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_relay_opts.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_relay_opts.pb.go new file mode 100644 index 00000000..84efad8d --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_relay_opts.pb.go @@ -0,0 +1,46 @@ +// Code generated by generate-merge-relay-opts.go. DO NOT EDIT. + +package opts + +import ( + "errors" +) + +func MergeRelayOptions(backend string, relayOpts *RelayOptions, createRelayOpts *CreateRelayOptions) error { + switch backend { + case "awssqs": + relayOpts.AwsSqs = &RelayGroupAWSSQSOptions{Args: createRelayOpts.AwsSqs} + case "azureservicebus": + relayOpts.AzureServiceBus = &RelayGroupAzureServiceBusOptions{Args: createRelayOpts.AzureServiceBus} + case "gcppubsub": + relayOpts.GcpPubsub = &RelayGroupGCPPubSubOptions{Args: createRelayOpts.GcpPubsub} + case "kafka": + relayOpts.Kafka = &RelayGroupKafkaOptions{Args: createRelayOpts.Kafka} + case "kubemqqueue": + relayOpts.KubemqQueue = &RelayGroupKubeMQQueueOptions{Args: createRelayOpts.KubemqQueue} + case "mongo": + relayOpts.Mongo = &RelayGroupMongoOptions{Args: createRelayOpts.Mongo} + case "mqtt": + relayOpts.Mqtt = &RelayGroupMQTTOptions{Args: createRelayOpts.Mqtt} + case "nats": + relayOpts.Nats = &RelayGroupNatsOptions{Args: createRelayOpts.Nats} + case "natsjetstream": + relayOpts.NatsJetstream = &RelayGroupNatsJetStreamOptions{Args: createRelayOpts.NatsJetstream} + case "natsstreaming": + relayOpts.NatsStreaming = &RelayGroupNatsStreamingOptions{Args: createRelayOpts.NatsStreaming} + case "nsq": + relayOpts.Nsq = &RelayGroupNSQOptions{Args: createRelayOpts.Nsq} + case "postgres": + relayOpts.Postgres = &RelayGroupPostgresOptions{Args: createRelayOpts.Postgres} + case "rabbit": + relayOpts.Rabbit = &RelayGroupRabbitOptions{Args: createRelayOpts.Rabbit} + case "redispubsub": + relayOpts.RedisPubsub = &RelayGroupRedisPubSubOptions{Args: createRelayOpts.RedisPubsub} + case "redisstreams": + relayOpts.RedisStreams = &RelayGroupRedisStreamsOptions{Args: createRelayOpts.RedisStreams} + default: + return errors.New("unknown backend") + } + + return nil +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go index 1c490690..f5267f7a 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage.pb.go @@ -122,8 +122,8 @@ type GlobalManageOptions struct { ManageTlsCertFile string `protobuf:"bytes,7,opt,name=manage_tls_cert_file,json=manageTlsCertFile,proto3" json:"manage_tls_cert_file,omitempty" kong:"help='TLS client cert file'"` // @gotags: kong:"help='TLS client key file'" ManageTlsKeyFile string `protobuf:"bytes,8,opt,name=manage_tls_key_file,json=manageTlsKeyFile,proto3" json:"manage_tls_key_file,omitempty" kong:"help='TLS client key file'"` - // @gotags: kong:"help='Make output pretty (colorized)',default='false'" - ManagePretty bool `protobuf:"varint,9,opt,name=manage_pretty,json=managePretty,proto3" json:"manage_pretty,omitempty" kong:"help='Make output pretty (colorized)',default='false'"` + // @gotags: kong:"help='Disable pretty/colorized output',default='false'" + DisablePretty bool `protobuf:"varint,9,opt,name=disable_pretty,json=disablePretty,proto3" json:"disable_pretty,omitempty" kong:"help='Disable pretty/colorized output',default='false'"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -210,9 +210,9 @@ func (m *GlobalManageOptions) GetManageTlsKeyFile() string { return "" } -func (m *GlobalManageOptions) GetManagePretty() bool { +func (m *GlobalManageOptions) GetDisablePretty() bool { if m != nil { - return m.ManagePretty + return m.DisablePretty } return false } @@ -502,47 +502,47 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_manage.proto", fileDescriptor_1d5f0e150eafe5f0) } var fileDescriptor_1d5f0e150eafe5f0 = []byte{ - // 659 bytes of a gzipped FileDescriptorProto + // 665 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xc7, 0xe5, 0xe6, 0x4f, 0x9b, 0xcd, 0x2f, 0xfd, 0xb5, 0xdb, 0x0a, 0x4c, 0x05, 0x34, 0x0d, - 0x45, 0x2a, 0x82, 0xc6, 0x52, 0x4b, 0x11, 0x88, 0x53, 0x69, 0x45, 0x05, 0x08, 0x81, 0xdc, 0x72, - 0xe1, 0x62, 0x39, 0xce, 0x90, 0x5a, 0x5d, 0x7b, 0x2d, 0xef, 0xfa, 0x10, 0x4e, 0xbc, 0x08, 0x2f, - 0xc2, 0x03, 0xf0, 0x02, 0xbc, 0x10, 0xda, 0x9d, 0xb5, 0x13, 0x87, 0xa5, 0x02, 0x71, 0x8a, 0x32, - 0xf3, 0xf9, 0xee, 0xcc, 0x77, 0x77, 0xc6, 0xe4, 0x16, 0xcf, 0xa4, 0xf0, 0x32, 0x11, 0xa8, 0xdf, - 0x20, 0x09, 0xd3, 0x70, 0x02, 0xc3, 0x2c, 0xe7, 0x92, 0xd3, 0xae, 0xfe, 0x11, 0x43, 0x95, 0xd9, - 0xda, 0xb5, 0x70, 0x41, 0xc4, 0xd3, 0x14, 0x22, 0x19, 0xf3, 0x14, 0x25, 0x5b, 0xdb, 0x36, 0x2a, - 0x07, 0x16, 0x4e, 0x0d, 0xd0, 0xb7, 0x01, 0xb2, 0x48, 0x53, 0x60, 0x48, 0x0c, 0x7e, 0x2c, 0x91, - 0xde, 0x5b, 0x1d, 0x7f, 0x97, 0xa9, 0x93, 0x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75, 0xe3, 0xb5, 0xbc, 0xeb, 0x43, 0x38, 0xf1, 0x26, 0xbc, + 0x07, 0x0f, 0xc0, 0x0b, 0xf0, 0x42, 0x68, 0x77, 0xd6, 0x4e, 0x1c, 0x96, 0x0a, 0xc4, 0x29, 0xca, + 0xcc, 0xe7, 0xbb, 0x33, 0xdf, 0xdd, 0x19, 0x93, 0x3b, 0x3c, 0x93, 0xc2, 0xcb, 0x44, 0xa0, 0x7e, + 0x83, 0x49, 0x98, 0x86, 0x63, 0x18, 0x66, 0x39, 0x97, 0x9c, 0x76, 0xf5, 0x8f, 0x18, 0xaa, 0xcc, + 0xd6, 0xae, 0x85, 0x0b, 0x62, 0x9e, 0xa6, 0x10, 0xcb, 0x84, 0xa7, 0x28, 0xd9, 0xda, 0xb6, 0x51, + 0x39, 0xb0, 0x70, 0x6a, 0x80, 0xbe, 0x0d, 0x90, 0x45, 0x9a, 0x02, 0x43, 0x62, 0xf0, 0x63, 0x89, + 0xf4, 0xde, 0xea, 0xf8, 0xbb, 0x4c, 0x9d, 0x2c, 0xe8, 0x39, 0x59, 0x1d, 0x33, 0x1e, 0x85, 0x4c, + 0x89, 0x54, 0xc4, 0x75, 0xfa, 0xce, 0x7e, 0xf7, 0xb0, 0x3f, 0x9c, 0x6b, 0x70, 0x78, 0xae, 0x91, + 0x9a, 0xd2, 0xef, 0xa1, 0xae, 0x3c, 0xe8, 0x01, 0x69, 0x8c, 0x41, 0xba, 0x4b, 0x5a, 0x7d, 0xbb, + 0xae, 0x06, 0x59, 0x8a, 0x14, 0x43, 0x0f, 0x49, 0x3b, 0xce, 0x21, 0x94, 0xe0, 0x36, 0x34, 0xbd, + 0x55, 0xa3, 0x4f, 0x75, 0xaa, 0x14, 0x18, 0x52, 0x69, 0x46, 0xc0, 0x40, 0x82, 0xdb, 0xb2, 0x68, + 0xce, 0x74, 0xaa, 0xd2, 0x20, 0x49, 0x1f, 0x91, 0xa6, 0x90, 0x3c, 0x73, 0xdb, 0x5a, 0xe1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 0xf1, 0xfc, 0xe3, 0xb3, + 0x71, 0x22, 0xaf, 0x8a, 0x68, 0x18, 0xf3, 0x89, 0x17, 0x85, 0x32, 0xbe, 0x8a, 0x79, 0x9e, 0x79, + 0x19, 0x2b, 0x26, 0x11, 0xe4, 0x07, 0x22, 0xbe, 0x82, 0x49, 0x28, 0xbc, 0xa8, 0x48, 0xd8, 0xc8, + 0x1b, 0x73, 0x0f, 0x0f, 0xf6, 0xd4, 0xc1, 0x51, 0x5b, 0xff, 0x39, 0xfa, 0x19, 0x00, 0x00, 0xff, + 0xff, 0x1f, 0x96, 0x81, 0xae, 0x1c, 0x07, 0x00, 0x00, } diff --git a/vendor/modules.txt b/vendor/modules.txt index e08e0f56..957f4baf 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -144,7 +144,7 @@ github.com/batchcorp/natty # github.com/batchcorp/pgoutput v0.3.2 ## explicit github.com/batchcorp/pgoutput -# github.com/batchcorp/plumber-schemas v0.0.147 +# github.com/batchcorp/plumber-schemas v0.0.149 ## explicit github.com/batchcorp/plumber-schemas/build/go/protos github.com/batchcorp/plumber-schemas/build/go/protos/args From 78d1ac7a5fa9c2656b5a7bbc449b67e9ce1eb3b0 Mon Sep 17 00:00:00 2001 From: Daniel Selans Date: Wed, 23 Feb 2022 13:51:47 -0800 Subject: [PATCH 6/6] adding docs, updating readme --- README.md | 38 ++--- go.mod | 2 +- go.sum | 4 + plumber/cli_manage_relay.go | 4 +- plumber/cli_manage_tunnel.go | 51 +++++- .../opts/batch_connection_options.pb.go | 156 +++++++++--------- .../protos/opts/batch_merge_tunnel_opts.pb.go | 54 ++++++ .../go/protos/opts/ps_opts_manage_relay.pb.go | 129 +++++++++------ .../protos/opts/ps_opts_manage_tunnel.pb.go | 130 ++++++++------- vendor/modules.txt | 2 +- 10 files changed, 358 insertions(+), 212 deletions(-) create mode 100644 vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_tunnel_opts.pb.go diff --git a/README.md b/README.md index 65345abe..d54bc9c2 100644 --- a/README.md +++ b/README.md @@ -199,26 +199,6 @@ We consider ourselves "internet plumbers" of sort - so the name seemed to fit :) NOTE: If your messaging tech is not supported - submit an issue and we'll do our best to make it happen! -## Dynamic Replay Destination - -Plumber can now act as a replay destination. Dynamic replay mode allows you to -run an instance of plumber, on your local network, which will then be available -in the Batch platform as a _replay destination_. - -This mitigates the need make firewall changes to replay messages from a Batch -collection back to your message bus. - -See https://docs.batch.sh/what-are/what-are-destinations/plumber-as-a-destination -for full documentation - -## High Availability -When running `plumber` in relay mode in production, you will want to run at -least 2 instances of `plumber` - that way updates, maintenances or unexpected -problems will not interfere with data collection. - -You can achieve H/A by launching 2+ instances of plumber with identical -configurations. - ### Kafka You need to ensure that you are using the same consumer group on all plumber instances. @@ -231,6 +211,24 @@ In order to flip a boolean flag to `false`, prepend `--no` to the flag. ie. `--queue-declare` is `true` by default. To make it false, use `--no-queue-declare`. +## Tunnels + +`plumber` can now act as a replay destination (tunnel). Tunnel mode allows you to +run an instance of plumber, on your local network, which will then be available +in the Batch platform as a _replay destination_. + +This mitigates the need make firewall changes to replay messages from a Batch +collection back to your message bus. + +See https://docs.batch.sh/what-are/what-are-destinations/plumber-as-a-destination +for full documentation. + +## High Performance & High Availability +`plumber` comes with a "server" mode which will cause plumber to operate as a +highly available cluster. + +You can read more about "server mode" [here](https://docs.batch.sh/plumber/server-mode). + ## Acknowledgments **Huge** shoutout to [jhump](https://github.com/jhump) and for his excellent diff --git a/go.mod b/go.mod index 3d469831..0f31b2a1 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/batchcorp/kong v0.2.17-batch-fix github.com/batchcorp/natty v0.0.16 github.com/batchcorp/pgoutput v0.3.2 - github.com/batchcorp/plumber-schemas v0.0.149 + github.com/batchcorp/plumber-schemas v0.0.153 github.com/batchcorp/rabbit v0.1.17 github.com/dustin/go-humanize v1.0.0 // indirect github.com/eclipse/paho.mqtt.golang v1.2.0 diff --git a/go.sum b/go.sum index 493f73c5..40f1ddf7 100644 --- a/go.sum +++ b/go.sum @@ -151,6 +151,10 @@ github.com/batchcorp/plumber-schemas v0.0.147 h1:xNwKH/UijDE1av61M6phT1hULa78RFA github.com/batchcorp/plumber-schemas v0.0.147/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/plumber-schemas v0.0.149 h1:1mJkLS+LW6azzXI15svMys4CW30IlCkT4H73rjIi/3o= github.com/batchcorp/plumber-schemas v0.0.149/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.151 h1:NoZdrJJkNns7QgAHoum5Q4ooPEz52lvxUO5/J3IuiLE= +github.com/batchcorp/plumber-schemas v0.0.151/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= +github.com/batchcorp/plumber-schemas v0.0.153 h1:CoSNwiy8l6sNOOfWzRyr3APag+A/7BLL5PmZcv2ZKxo= +github.com/batchcorp/plumber-schemas v0.0.153/go.mod h1:YULMKnfZ8X7tglTfUzKXhWc1Bfq6dy5ysIQbvsbCOkY= github.com/batchcorp/rabbit v0.1.17 h1:dui1W7FLTrNxyVlDN+G+6d8LXz8HBhVAcUethXql9vQ= github.com/batchcorp/rabbit v0.1.17/go.mod h1:2nplLhzjXrddaHWxrnduZS6tFwpF9QSpJ0a2A3erNYw= github.com/beefsack/go-rate v0.0.0-20180408011153-efa7637bb9b6/go.mod h1:6YNgTHLutezwnBvyneBbwvB8C82y3dcoOj5EQJIdGXA= diff --git a/plumber/cli_manage_relay.go b/plumber/cli_manage_relay.go index b370a4e7..78a25abe 100644 --- a/plumber/cli_manage_relay.go +++ b/plumber/cli_manage_relay.go @@ -109,7 +109,7 @@ func (p *Plumber) HandleCreateRelayCmd(ctx context.Context, client protos.Plumbe // Create relay options from CLI opts relayOpts, err := generateRelayOptionsForManageCreate(p.CLIOptions) if err != nil { - return errors.Wrap(err, "failed to generate connection options") + return errors.Wrap(err, "failed to generate relay options") } resp, err := client.CreateRelay(ctx, &protos.CreateRelayRequest{ @@ -147,8 +147,6 @@ func generateRelayOptionsForManageCreate(cliOpts *opts.CLIOptions) (*opts.RelayO // taken care of by the Merge function. backendName := strings.Replace(cliOpts.Global.XBackend, "-", "", -1) - relayOpts.Kafka = &opts.RelayGroupKafkaOptions{Args: cliOpts.Manage.Create.Relay.Kafka} - if err := opts.MergeRelayOptions(backendName, relayOpts, cliOpts.Manage.Create.Relay); err != nil { return nil, errors.Wrap(err, "unable to merge relay options") } diff --git a/plumber/cli_manage_tunnel.go b/plumber/cli_manage_tunnel.go index 940c2a28..fc92e978 100644 --- a/plumber/cli_manage_tunnel.go +++ b/plumber/cli_manage_tunnel.go @@ -2,9 +2,11 @@ package plumber import ( "context" + "strings" "github.com/batchcorp/plumber-schemas/build/go/protos" "github.com/batchcorp/plumber-schemas/build/go/protos/common" + "github.com/batchcorp/plumber-schemas/build/go/protos/opts" "github.com/pkg/errors" ) @@ -46,8 +48,27 @@ func (p *Plumber) HandleGetAllTunnelsCmd(ctx context.Context, client protos.Plum return nil } -// TODO: Implement func (p *Plumber) HandleCreateTunnelCmd(ctx context.Context, client protos.PlumberServerClient) error { + // Create tunnel options from CLI opts + tunnelOpts, err := generateTunnelOptionsForManageCreate(p.CLIOptions) + if err != nil { + return errors.Wrap(err, "failed to generate tunnel options") + } + + resp, err := client.CreateTunnel(ctx, &protos.CreateTunnelRequest{ + Auth: &common.Auth{ + Token: p.CLIOptions.Manage.GlobalOptions.ManageToken, + }, + Opts: tunnelOpts, + }) + + if err != nil { + p.displayJSON(map[string]string{"error": err.Error()}) + return nil + } + + p.displayProtobuf(resp) + return nil } @@ -107,3 +128,31 @@ func (p *Plumber) HandleResumeTunnelCmd(ctx context.Context, client protos.Plumb return nil } + +func generateTunnelOptionsForManageCreate(cliOpts *opts.CLIOptions) (*opts.TunnelOptions, error) { + tunnelOpts := &opts.TunnelOptions{ + ApiToken: cliOpts.Manage.Create.Tunnel.TunnelToken, + ConnectionId: cliOpts.Manage.Create.Tunnel.ConnectionId, + XGrpcAddress: cliOpts.Manage.Create.Tunnel.XTunnelAddress, + XGrpcTimeoutSeconds: cliOpts.Manage.Create.Tunnel.XTunnelTimeoutSeconds, + XGrpcInsecure: cliOpts.Manage.Create.Tunnel.XTunnelInsecure, + Name: cliOpts.Manage.Create.Tunnel.Name, + } + + // We need to assign the CLI opts to the correct backend field in the request. + // As in, cliOpts.Manage.Create.Tunnel.Kafka needs to be assigned to tunnelOpts.Kafka + // (if kafka was specified). To do this, we will rely on a helper func that + // is generated via code-gen in plumber-schemas. + + // Some backends have a dash, remove it; all further normalization will be + // taken care of by the Merge function. + backendName := strings.Replace(cliOpts.Global.XBackend, "-", "", -1) + + tunnelOpts.Kafka = &opts.TunnelGroupKafkaOptions{Args: cliOpts.Manage.Create.Tunnel.Kafka} + + if err := opts.MergeTunnelOptions(backendName, tunnelOpts, cliOpts.Manage.Create.Tunnel); err != nil { + return nil, errors.Wrap(err, "unable to merge relay options") + } + + return tunnelOpts, nil +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go index bfe12ba7..88cf5a33 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_connection_options.pb.go @@ -8,32 +8,14 @@ import ( func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions_Conn, bool) { switch backend { - case "activemq": - asserted, ok := connArgs.(args.ActiveMQConn) - if !ok { - return nil, false - } - - return &ConnectionOptions_ActiveMq{ - ActiveMq: &asserted, - }, true - case "nsq": - asserted, ok := connArgs.(args.NSQConn) - if !ok { - return nil, false - } - - return &ConnectionOptions_Nsq{ - Nsq: &asserted, - }, true - case "gcppubsub": - asserted, ok := connArgs.(args.GCPPubSubConn) + case "pulsar": + asserted, ok := connArgs.(args.PulsarConn) if !ok { return nil, false } - return &ConnectionOptions_GcpPubsub{ - GcpPubsub: &asserted, + return &ConnectionOptions_Pulsar{ + Pulsar: &asserted, }, true case "awskinesis": asserted, ok := connArgs.(args.AWSKinesisConn) @@ -44,113 +26,113 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_AwsKinesis{ AwsKinesis: &asserted, }, true - case "natsstreaming": - asserted, ok := connArgs.(args.NatsStreamingConn) + case "mongo": + asserted, ok := connArgs.(args.MongoConn) if !ok { return nil, false } - return &ConnectionOptions_NatsStreaming{ - NatsStreaming: &asserted, + return &ConnectionOptions_Mongo{ + Mongo: &asserted, }, true - case "rabbit": - asserted, ok := connArgs.(args.RabbitConn) + case "nsq": + asserted, ok := connArgs.(args.NSQConn) if !ok { return nil, false } - return &ConnectionOptions_Rabbit{ - Rabbit: &asserted, + return &ConnectionOptions_Nsq{ + Nsq: &asserted, }, true - case "rabbitstreams": - asserted, ok := connArgs.(args.RabbitStreamsConn) + case "redisstreams": + asserted, ok := connArgs.(args.RedisStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_RabbitStreams{ - RabbitStreams: &asserted, + return &ConnectionOptions_RedisStreams{ + RedisStreams: &asserted, }, true - case "redispubsub": - asserted, ok := connArgs.(args.RedisPubSubConn) + case "azureeventhub": + asserted, ok := connArgs.(args.AzureEventHubConn) if !ok { return nil, false } - return &ConnectionOptions_RedisPubsub{ - RedisPubsub: &asserted, + return &ConnectionOptions_AzureEventHub{ + AzureEventHub: &asserted, }, true - case "azureeventhub": - asserted, ok := connArgs.(args.AzureEventHubConn) + case "azureservicebus": + asserted, ok := connArgs.(args.AzureServiceBusConn) if !ok { return nil, false } - return &ConnectionOptions_AzureEventHub{ - AzureEventHub: &asserted, + return &ConnectionOptions_AzureServiceBus{ + AzureServiceBus: &asserted, }, true - case "awssns": - asserted, ok := connArgs.(args.AWSSNSConn) + case "kubemqqueue": + asserted, ok := connArgs.(args.KubeMQQueueConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSns{ - AwsSns: &asserted, + return &ConnectionOptions_KubemqQueue{ + KubemqQueue: &asserted, }, true - case "mongo": - asserted, ok := connArgs.(args.MongoConn) + case "activemq": + asserted, ok := connArgs.(args.ActiveMQConn) if !ok { return nil, false } - return &ConnectionOptions_Mongo{ - Mongo: &asserted, + return &ConnectionOptions_ActiveMq{ + ActiveMq: &asserted, }, true - case "nats": - asserted, ok := connArgs.(args.NatsConn) + case "natsstreaming": + asserted, ok := connArgs.(args.NatsStreamingConn) if !ok { return nil, false } - return &ConnectionOptions_Nats{ - Nats: &asserted, + return &ConnectionOptions_NatsStreaming{ + NatsStreaming: &asserted, }, true - case "pulsar": - asserted, ok := connArgs.(args.PulsarConn) + case "mqtt": + asserted, ok := connArgs.(args.MQTTConn) if !ok { return nil, false } - return &ConnectionOptions_Pulsar{ - Pulsar: &asserted, + return &ConnectionOptions_Mqtt{ + Mqtt: &asserted, }, true - case "natsjetstream": - asserted, ok := connArgs.(args.NatsJetstreamConn) + case "gcppubsub": + asserted, ok := connArgs.(args.GCPPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_NatsJetstream{ - NatsJetstream: &asserted, + return &ConnectionOptions_GcpPubsub{ + GcpPubsub: &asserted, }, true - case "mqtt": - asserted, ok := connArgs.(args.MQTTConn) + case "rabbitstreams": + asserted, ok := connArgs.(args.RabbitStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_Mqtt{ - Mqtt: &asserted, + return &ConnectionOptions_RabbitStreams{ + RabbitStreams: &asserted, }, true - case "kubemqqueue": - asserted, ok := connArgs.(args.KubeMQQueueConn) + case "redispubsub": + asserted, ok := connArgs.(args.RedisPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_KubemqQueue{ - KubemqQueue: &asserted, + return &ConnectionOptions_RedisPubsub{ + RedisPubsub: &asserted, }, true case "kafka": asserted, ok := connArgs.(args.KafkaConn) @@ -170,6 +152,24 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_AwsSqs{ AwsSqs: &asserted, }, true + case "awssns": + asserted, ok := connArgs.(args.AWSSNSConn) + if !ok { + return nil, false + } + + return &ConnectionOptions_AwsSns{ + AwsSns: &asserted, + }, true + case "nats": + asserted, ok := connArgs.(args.NatsConn) + if !ok { + return nil, false + } + + return &ConnectionOptions_Nats{ + Nats: &asserted, + }, true case "postgres": asserted, ok := connArgs.(args.PostgresConn) if !ok { @@ -179,23 +179,23 @@ func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions return &ConnectionOptions_Postgres{ Postgres: &asserted, }, true - case "redisstreams": - asserted, ok := connArgs.(args.RedisStreamsConn) + case "rabbit": + asserted, ok := connArgs.(args.RabbitConn) if !ok { return nil, false } - return &ConnectionOptions_RedisStreams{ - RedisStreams: &asserted, + return &ConnectionOptions_Rabbit{ + Rabbit: &asserted, }, true - case "azureservicebus": - asserted, ok := connArgs.(args.AzureServiceBusConn) + case "natsjetstream": + asserted, ok := connArgs.(args.NatsJetstreamConn) if !ok { return nil, false } - return &ConnectionOptions_AzureServiceBus{ - AzureServiceBus: &asserted, + return &ConnectionOptions_NatsJetstream{ + NatsJetstream: &asserted, }, true default: return nil, false diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_tunnel_opts.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_tunnel_opts.pb.go new file mode 100644 index 00000000..5e5f0cbc --- /dev/null +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/batch_merge_tunnel_opts.pb.go @@ -0,0 +1,54 @@ +// Code generated by generate-merge-relay-opts.go. DO NOT EDIT. + +package opts + +import ( + "errors" +) + +func MergeTunnelOptions(backend string, tunnelOpts *TunnelOptions, createTunnelOpts *CreateTunnelOptions) error { + switch backend { + case "activemq": + tunnelOpts.Activemq = &TunnelGroupActiveMQOptions{Args: createTunnelOpts.Activemq} + case "awskinesis": + tunnelOpts.AwsKinesis = &TunnelGroupAWSKinesisOptions{Args: createTunnelOpts.AwsKinesis} + case "awssns": + tunnelOpts.AwsSns = &TunnelGroupAWSSNSOptions{Args: createTunnelOpts.AwsSns} + case "awssqs": + tunnelOpts.AwsSqs = &TunnelGroupAWSSQSOptions{Args: createTunnelOpts.AwsSqs} + case "azureeventhub": + tunnelOpts.AzureEventHub = &TunnelGroupAzureEventHubOptions{Args: createTunnelOpts.AzureEventHub} + case "azureservicebus": + tunnelOpts.AzureServiceBus = &TunnelGroupAzureServiceBusOptions{Args: createTunnelOpts.AzureServiceBus} + case "gcppubsub": + tunnelOpts.GcpPubsub = &TunnelGroupGCPPubSubOptions{Args: createTunnelOpts.GcpPubsub} + case "kafka": + tunnelOpts.Kafka = &TunnelGroupKafkaOptions{Args: createTunnelOpts.Kafka} + case "kubemqqueue": + tunnelOpts.KubemqQueue = &TunnelGroupKubeMQQueueOptions{Args: createTunnelOpts.KubemqQueue} + case "mqtt": + tunnelOpts.Mqtt = &TunnelGroupMQTTOptions{Args: createTunnelOpts.Mqtt} + case "nats": + tunnelOpts.Nats = &TunnelGroupNatsOptions{Args: createTunnelOpts.Nats} + case "natsjetstream": + tunnelOpts.NatsJetstream = &TunnelGroupNatsJetstreamOptions{Args: createTunnelOpts.NatsJetstream} + case "natsstreaming": + tunnelOpts.NatsStreaming = &TunnelGroupNatsStreamingOptions{Args: createTunnelOpts.NatsStreaming} + case "nsq": + tunnelOpts.Nsq = &TunnelGroupNSQOptions{Args: createTunnelOpts.Nsq} + case "pulsar": + tunnelOpts.Pulsar = &TunnelGroupPulsarOptions{Args: createTunnelOpts.Pulsar} + case "rabbit": + tunnelOpts.Rabbit = &TunnelGroupRabbitOptions{Args: createTunnelOpts.Rabbit} + case "rabbitstreams": + tunnelOpts.RabbitStreams = &TunnelGroupRabbitStreamsOptions{Args: createTunnelOpts.RabbitStreams} + case "redispubsub": + tunnelOpts.RedisPubsub = &TunnelGroupRedisPubSubOptions{Args: createTunnelOpts.RedisPubsub} + case "redisstreams": + tunnelOpts.RedisStreams = &TunnelGroupRedisStreamsOptions{Args: createTunnelOpts.RedisStreams} + default: + return errors.New("unknown backend") + } + + return nil +} diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go index 50d8b265..aa03f46c 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_relay.pb.go @@ -72,6 +72,12 @@ type CreateRelayOptions struct { BatchMaxRetry int32 `protobuf:"varint,4,opt,name=batch_max_retry,json=batchMaxRetry,proto3" json:"batch_max_retry,omitempty" kong:"help='How many times plumber will try re-sending a batch',default=3"` // @gotags: kong:"help='How many workers to launch per relay',default=10" NumWorkers int32 `protobuf:"varint,5,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty" kong:"help='How many workers to launch per relay',default=10"` + // @gotags: kong:"help='Alternative collector to relay events to',default='grpc-collector.batch.sh:9000'" + BatchshGrpcAddress string `protobuf:"bytes,6,opt,name=batchsh_grpc_address,json=batchshGrpcAddress,proto3" json:"batchsh_grpc_address,omitempty" kong:"help='Alternative collector to relay events to',default='grpc-collector.batch.sh:9000'"` + // @gotags: kong:"help='Whether to use TLS with collector'" + BatchshGrpcDisableTls bool `protobuf:"varint,7,opt,name=batchsh_grpc_disable_tls,json=batchshGrpcDisableTls,proto3" json:"batchsh_grpc_disable_tls,omitempty" kong:"help='Whether to use TLS with collector'"` + // @gotags: kong:"help='How long to wait before giving up talking to the gRPC collector',default=5" + BatchshGrpcTimeoutSeconds int32 `protobuf:"varint,8,opt,name=batchsh_grpc_timeout_seconds,json=batchshGrpcTimeoutSeconds,proto3" json:"batchsh_grpc_timeout_seconds,omitempty" kong:"help='How long to wait before giving up talking to the gRPC collector',default=5"` // @gotags: kong:"cmd,help='Apache Kafka'" Kafka *args.KafkaRelayArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` // @gotags: kong:"cmd,help='AWS Simple Queue System'" @@ -167,6 +173,27 @@ func (m *CreateRelayOptions) GetNumWorkers() int32 { return 0 } +func (m *CreateRelayOptions) GetBatchshGrpcAddress() string { + if m != nil { + return m.BatchshGrpcAddress + } + return "" +} + +func (m *CreateRelayOptions) GetBatchshGrpcDisableTls() bool { + if m != nil { + return m.BatchshGrpcDisableTls + } + return false +} + +func (m *CreateRelayOptions) GetBatchshGrpcTimeoutSeconds() int32 { + if m != nil { + return m.BatchshGrpcTimeoutSeconds + } + return 0 +} + func (m *CreateRelayOptions) GetKafka() *args.KafkaRelayArgs { if m != nil { return m.Kafka @@ -403,52 +430,58 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_manage_relay.proto", fileDescriptor_86dbec1f9d2837a2) } var fileDescriptor_86dbec1f9d2837a2 = []byte{ - // 751 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0x5b, 0x4f, 0xe3, 0x46, - 0x1c, 0xc5, 0x15, 0x20, 0x14, 0x26, 0x84, 0xd0, 0x79, 0x68, 0x87, 0x50, 0x4a, 0x48, 0xa3, 0x8a, - 0x56, 0x22, 0x69, 0x8b, 0xfa, 0x80, 0x56, 0xfb, 0x00, 0xac, 0x16, 0xb1, 0x2b, 0xd8, 0xc4, 0x46, - 0x42, 0xda, 0x17, 0x6b, 0xec, 0xfc, 0x71, 0x4c, 0x62, 0x8f, 0x3d, 0x97, 0xe5, 0xf2, 0x55, 0xf7, - 0xcb, 0xac, 0x66, 0xec, 0x38, 0x0c, 0x09, 0x3c, 0x59, 0x39, 0xe7, 0x77, 0x8e, 0xc7, 0x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xbc, 0xa2, 0x72, 0x16, 0x31, 0x18, 0xbe, 0x40, 0x9b, 0xf6, 0xad, 0x44, 0xb8, 0x09, 0xb6, - 0xe7, 0x82, 0xee, 0x94, 0x28, 0x1b, 0xea, 0xc9, 0x73, 0xb9, 0xac, 0x2a, 0xef, 0x40, 0x22, 0x5e, - 0xa9, 0xfa, 0x34, 0x25, 0xec, 0xaa, 0x52, 0x6e, 0x77, 0x10, 0xfe, 0x00, 0x13, 0x78, 0x71, 0xb9, - 0xbc, 0xbc, 0x83, 0xda, 0x68, 0xcb, 0x95, 0x2c, 0x7d, 0x93, 0xe9, 0x20, 0xec, 0x80, 0x50, 0xf1, - 0x9b, 0x4d, 0xa7, 0xef, 0xbe, 0x1e, 0x87, 0x91, 0x1c, 0x29, 0xbf, 0x1b, 0xb0, 0xb8, 0x67, 0xee, - 0x8e, 0x80, 0xf1, 0xb4, 0x97, 0x4e, 0x54, 0xec, 0x03, 0x3f, 0x14, 0xc1, 0x08, 0x62, 0x2a, 0x7a, - 0xbe, 0x8a, 0x26, 0xc3, 0x5e, 0xc8, 0x7a, 0xf9, 0x17, 0xf5, 0xf4, 0xdf, 0x9d, 0xbf, 0x6a, 0x7e, - 0x1c, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff, 0x66, 0xd0, 0x57, 0x09, 0x25, 0x07, 0x00, 0x00, + // 833 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0xed, 0x6e, 0xdb, 0x36, + 0x18, 0x85, 0xe1, 0xb4, 0x49, 0x13, 0xba, 0x69, 0x3a, 0x62, 0x1f, 0x4c, 0xda, 0x2c, 0x8e, 0x17, + 0x0c, 0xde, 0x80, 0xda, 0xdb, 0x8a, 0x61, 0x28, 0x86, 0x61, 0x48, 0x53, 0x2c, 0xe8, 0x86, 0x74, + 0xb6, 0x64, 0xa0, 0xc0, 0xfe, 0x10, 0x94, 0xf4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0x62, + 0x64, 0xc7, 0x44, 0xcc, 0x45, 0x35, 0xaa, 0x72, 0x5d, 0x44, 0x20, 0x9e, 0xc9, 0x78, 0x06, 0x05, + 0x93, 0xa3, 0x48, 0x67, 0x79, 0x32, 0x4a, 0xf9, 0xc8, 0x7d, 0xa3, 0x91, 0xf9, 0x6b, 0x8e, 0x76, + 0xec, 0x87, 0xe7, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x21, 0xd9, 0xc4, 0xe5, 0xd1, 0x07, 0x00, + 0x00, } diff --git a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go index 53a52472..7e7b07b5 100644 --- a/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go +++ b/vendor/github.com/batchcorp/plumber-schemas/build/go/protos/opts/ps_opts_manage_tunnel.pb.go @@ -64,16 +64,18 @@ func (m *GetTunnelOptions) GetId() string { type CreateTunnelOptions struct { // @gotags: kong:"help='Connection ID for the tunnel to use',required=true" ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"help='Connection ID for the tunnel to use',required=true"` - // @gotags: kong:"help='Optional name for the tunnel (auto-generated if left empty)'" - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" kong:"help='Optional name for the tunnel (auto-generated if left empty)'"` - // @gotags: kong:"help='Optional notes associated with the tunnel'" - Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Optional notes associated with the tunnel'"` + // @gotags: kong:"help='Batch API token (create in settings -> security)',required=true" + TunnelToken string `protobuf:"bytes,3,opt,name=tunnel_token,json=tunnelToken,proto3" json:"tunnel_token,omitempty" kong:"help='Batch API token (create in settings -> security)',required=true"` + // @gotags: kong:"help='Name for the tunnel (auto-generated if left empty)'" + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" kong:"help='Name for the tunnel (auto-generated if left empty)'"` + // @gotags: kong:"help='Notes associated with the tunnel'" + Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Notes associated with the tunnel'"` // @gotags: kong:"help='Tunnel API address',default='dproxy.batch.sh:443'" - XTunnelAddress string `protobuf:"bytes,4,opt,name=_tunnel_address,json=TunnelAddress,proto3" json:"_tunnel_address,omitempty" kong:"help='Tunnel API address',default='dproxy.batch.sh:443'"` + XTunnelAddress string `protobuf:"bytes,6,opt,name=_tunnel_address,json=TunnelAddress,proto3" json:"_tunnel_address,omitempty" kong:"help='Tunnel API address',default='dproxy.batch.sh:443'"` // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" - XTunnelTimeoutSeconds uint32 `protobuf:"varint,5,opt,name=_tunnel_timeout_seconds,json=TunnelTimeoutSeconds,proto3" json:"_tunnel_timeout_seconds,omitempty" kong:"help='Tunnel API initial connection timeout',default=5"` + XTunnelTimeoutSeconds uint32 `protobuf:"varint,7,opt,name=_tunnel_timeout_seconds,json=TunnelTimeoutSeconds,proto3" json:"_tunnel_timeout_seconds,omitempty" kong:"help='Tunnel API initial connection timeout',default=5"` // @gotags: kong:"help='Use gRPC insecure mode when talking to Batch Tunnel API'" - XTunnelInsecure bool `protobuf:"varint,6,opt,name=_tunnel_insecure,json=TunnelInsecure,proto3" json:"_tunnel_insecure,omitempty" kong:"help='Use gRPC insecure mode when talking to Batch Tunnel API'"` + XTunnelInsecure bool `protobuf:"varint,8,opt,name=_tunnel_insecure,json=TunnelInsecure,proto3" json:"_tunnel_insecure,omitempty" kong:"help='Use gRPC insecure mode when talking to Batch Tunnel API'"` // @gotags: kong:"cmd,help='Apache Kafka'" Kafka *args.KafkaWriteArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` // @gotags: kong:"cmd,help='Apache ActiveMQ'" @@ -149,6 +151,13 @@ func (m *CreateTunnelOptions) GetConnectionId() string { return "" } +func (m *CreateTunnelOptions) GetTunnelToken() string { + if m != nil { + return m.TunnelToken + } + return "" +} + func (m *CreateTunnelOptions) GetName() string { if m != nil { return m.Name @@ -448,59 +457,60 @@ func init() { func init() { proto.RegisterFile("opts/ps_opts_manage_tunnel.proto", fileDescriptor_b9d5e823fc1e6249) } var fileDescriptor_b9d5e823fc1e6249 = []byte{ - // 861 bytes of a gzipped FileDescriptorProto + // 879 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x56, 0x5f, 0x6f, 0xdb, 0x36, - 0x10, 0x87, 0xd3, 0x26, 0x6b, 0xe9, 0x3a, 0x69, 0x99, 0x62, 0x65, 0xd3, 0xad, 0x75, 0x9d, 0x65, + 0x10, 0x87, 0xdb, 0x26, 0x4d, 0xe9, 0x38, 0x69, 0x99, 0x62, 0x65, 0xd3, 0xad, 0x75, 0x9c, 0x65, 0x30, 0x30, 0xcc, 0xc6, 0xfe, 0xf4, 0x61, 0x1b, 0x30, 0x20, 0x6d, 0x87, 0xac, 0x0d, 0xd2, 0xc5, - 0x56, 0x80, 0x02, 0x7b, 0x11, 0x28, 0xe9, 0xaa, 0xa8, 0xb1, 0x28, 0x99, 0x47, 0x3a, 0xc0, 0xbe, - 0xcc, 0xbe, 0x6a, 0x41, 0x52, 0xb2, 0x45, 0x5b, 0xc9, 0x93, 0xac, 0xfb, 0xfd, 0x21, 0x79, 0xba, - 0x3b, 0x9a, 0xf4, 0x8b, 0x52, 0xe1, 0xb8, 0xc4, 0xd0, 0x3c, 0xc3, 0x9c, 0x0b, 0x9e, 0x42, 0xa8, - 0xb4, 0x10, 0x30, 0x1b, 0x95, 0xb2, 0x50, 0x05, 0xed, 0xda, 0x07, 0x8e, 0x0c, 0xe1, 0xe0, 0x19, - 0x97, 0xa9, 0xa5, 0x9b, 0x67, 0xc8, 0x63, 0x95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fc, 0xf2, - 0x25, 0x00, 0x00, 0xff, 0xff, 0x27, 0xed, 0x18, 0x41, 0xf2, 0x08, 0x00, 0x00, + 0x96, 0x81, 0x02, 0x7b, 0x11, 0x28, 0xf9, 0xaa, 0xa8, 0xb6, 0x28, 0x99, 0x47, 0x26, 0xc0, 0x3e, + 0xde, 0x3e, 0xd9, 0x40, 0x52, 0xb2, 0x45, 0x5b, 0xc9, 0x93, 0xac, 0xdf, 0x3f, 0x91, 0xd4, 0xdd, + 0x59, 0xa4, 0x9b, 0x17, 0x0a, 0x87, 0x05, 0x86, 0xe6, 0x1a, 0x66, 0x5c, 0xf0, 0x04, 0x42, 0xa5, + 0x85, 0x80, 0xf9, 0xa0, 0x90, 0xb9, 0xca, 0x69, 0xdb, 0x5e, 0x70, 0x60, 0x04, 0x87, 0x2f, 0xb8, + 0x4c, 0xac, 0xdc, 0x5c, 0x43, 0x1e, 0xab, 0xf4, 0x1a, 0xb2, 0x85, 0x53, 0x1e, 0xbe, 0xf4, 0xc9, + 0x1b, 0x0c, 0x67, 0xa9, 0x00, 0x4c, 0xb1, 0xe4, 0x0f, 0x37, 0x78, 0x14, 0x77, 0x70, 0x8b, 0x8a, + 0xeb, 0xf9, 0xdc, 0xbf, 0x5a, 0x42, 0x08, 0xd7, 0x20, 0x54, 0x78, 0xa5, 0xa3, 0x52, 0xf3, 0x6d, + 0x83, 0x06, 0x41, 0x5e, 0xa7, 0x31, 0x84, 0x91, 0xae, 0x92, 0xbe, 0xf1, 0x54, 0x49, 0x5c, 0x84, + 0x85, 0x8e, 0x70, 0x19, 0xc2, 0x3c, 0x7a, 0xc6, 0x3f, 0xcf, 0x78, 0xc9, 0xbc, 0xf2, 0x19, 0x1d, + 0x41, 0xb6, 0x08, 0x17, 0x1a, 0x34, 0x94, 0x82, 0x67, 0x9e, 0x20, 0x5b, 0x28, 0xd5, 0x48, 0x08, + 0xae, 0xaa, 0xb5, 0x1c, 0x6d, 0x10, 0xe1, 0x17, 0x50, 0xa8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x54, 0x8a, 0xb5, 0xae, 0x58, 0xe2, 0xf4, + 0x94, 0xb4, 0x6b, 0x7f, 0xe1, 0xec, 0xda, 0x06, 0x75, 0xd7, 0x9b, 0xf9, 0xdc, 0xd1, 0xab, 0x14, + 0xc2, 0x6f, 0xb0, 0x04, 0x7b, 0x27, 0xe4, 0xe0, 0x1d, 0xcc, 0x61, 0x7d, 0x86, 0xaf, 0xcf, 0xfa, + 0x63, 0xf2, 0x24, 0x50, 0x79, 0x71, 0xb7, 0xe8, 0x84, 0x1c, 0x8c, 0x01, 0x75, 0x76, 0x77, 0xd6, + 0x9b, 0xdf, 0xff, 0xf9, 0x35, 0x49, 0x95, 0xf9, 0x2e, 0x88, 0xf3, 0x6c, 0x18, 0x71, 0x15, 0x5f, + 0xc5, 0xb9, 0x2c, 0x86, 0xc5, 0x5c, 0x67, 0x11, 0xc8, 0x1f, 0x30, 0xbe, 0x82, 0x8c, 0xe3, 0x30, + 0xd2, 0xe9, 0x7c, 0x3a, 0x4c, 0xf2, 0xa1, 0xdb, 0xcf, 0xd0, 0x7c, 0xdd, 0x44, 0xdb, 0xf6, 0xe6, + 0xe7, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xec, 0x7c, 0x0d, 0x27, 0x15, 0x09, 0x00, 0x00, } diff --git a/vendor/modules.txt b/vendor/modules.txt index 957f4baf..5dc4e5ba 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -144,7 +144,7 @@ github.com/batchcorp/natty # github.com/batchcorp/pgoutput v0.3.2 ## explicit github.com/batchcorp/pgoutput -# github.com/batchcorp/plumber-schemas v0.0.149 +# github.com/batchcorp/plumber-schemas v0.0.153 ## explicit github.com/batchcorp/plumber-schemas/build/go/protos github.com/batchcorp/plumber-schemas/build/go/protos/args