From 37de468126ec5b33b15680902e93a3d1f809afb3 Mon Sep 17 00:00:00 2001 From: Caleb Doxsey Date: Mon, 11 Nov 2024 19:53:34 -0700 Subject: [PATCH] upgrade to v0.28.0 --- go.mod | 35 +- go.sum | 190 ++-- pb/activity_log.pb.go | 156 +-- pb/activity_log_grpc.pb.go | 169 +++ pb/audit_svc.pb.go | 94 +- pb/audit_svc_grpc.pb.go | 119 +++ pb/changesets.pb.go | 1200 +++++++++++++++++++++ pb/changesets_grpc.pb.go | 272 +++++ pb/console_config.pb.go | 8 +- pb/console_last_error.pb.go | 427 ++++++++ pb/console_last_error_grpc.pb.go | 119 +++ pb/databroker_svc.pb.go | 491 +++++---- pb/databroker_svc_grpc.pb.go | 196 ++++ pb/devices.pb.go | 360 +------ pb/devices_grpc.pb.go | 352 +++++++ pb/external_data_sources.pb.go | 298 +----- pb/external_data_sources_grpc.pb.go | 310 ++++++ pb/key_chain.pb.go | 520 +++------- pb/key_chain_grpc.pb.go | 289 ++++++ pb/namespaces.pb.go | 568 +--------- pb/namespaces_grpc.pb.go | 597 +++++++++++ pb/policy.pb.go | 230 +--- pb/policy_grpc.pb.go | 249 +++++ pb/report.pb.go | 96 +- pb/report_grpc.pb.go | 121 +++ pb/routes.pb.go | 1501 ++++++++++++--------------- pb/routes_grpc.pb.go | 405 ++++++++ pb/settings.pb.go | 595 ++++++----- pb/settings_grpc.pb.go | 245 +++++ pb/tsdb.pb.go | 582 +---------- pb/tsdb_grpc.pb.go | 571 ++++++++++ pb/users.pb.go | 658 +----------- pb/users_grpc.pb.go | 707 +++++++++++++ 33 files changed, 8105 insertions(+), 4625 deletions(-) create mode 100644 pb/activity_log_grpc.pb.go create mode 100644 pb/audit_svc_grpc.pb.go create mode 100644 pb/changesets.pb.go create mode 100644 pb/changesets_grpc.pb.go create mode 100644 pb/console_last_error.pb.go create mode 100644 pb/console_last_error_grpc.pb.go create mode 100644 pb/databroker_svc_grpc.pb.go create mode 100644 pb/devices_grpc.pb.go create mode 100644 pb/external_data_sources_grpc.pb.go create mode 100644 pb/key_chain_grpc.pb.go create mode 100644 pb/namespaces_grpc.pb.go create mode 100644 pb/policy_grpc.pb.go create mode 100644 pb/report_grpc.pb.go create mode 100644 pb/routes_grpc.pb.go create mode 100644 pb/settings_grpc.pb.go create mode 100644 pb/tsdb_grpc.pb.go create mode 100644 pb/users_grpc.pb.go diff --git a/go.mod b/go.mod index 21497bc..80160e8 100644 --- a/go.mod +++ b/go.mod @@ -5,50 +5,49 @@ go 1.23.0 toolchain go1.23.1 require ( - github.com/envoyproxy/go-control-plane v0.13.0 + github.com/envoyproxy/go-control-plane v0.13.1 github.com/envoyproxy/protoc-gen-validate v1.1.0 - github.com/pomerium/pomerium v0.27.1-0.20241003171454-01d375f0bc7f + github.com/pomerium/pomerium v0.28.0 github.com/stretchr/testify v1.9.0 google.golang.org/grpc v1.67.1 - google.golang.org/protobuf v1.34.2 + google.golang.org/protobuf v1.35.1 ) require ( - cel.dev/expr v0.16.0 // indirect - github.com/caddyserver/certmagic v0.21.3 // indirect + cel.dev/expr v0.16.1 // indirect + github.com/caddyserver/certmagic v0.21.4 // indirect github.com/caddyserver/zerossl v0.1.3 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20 // indirect + github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/go-jose/go-jose/v3 v3.0.3 // indirect - github.com/google/btree v1.1.3 // indirect github.com/google/uuid v1.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-set/v3 v3.0.0 // indirect github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/jxskiss/base62 v1.1.0 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect github.com/libdns/libdns v0.2.2 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mholt/acmez/v2 v2.0.2 // indirect - github.com/miekg/dns v1.1.59 // indirect + github.com/mholt/acmez/v2 v2.0.3 // indirect + github.com/miekg/dns v1.1.62 // indirect github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/pomerium/protoutil v0.0.0-20240813175624-47b7ac43ff46 // indirect github.com/rs/zerolog v1.33.0 // indirect - github.com/zeebo/blake3 v0.2.3 // indirect + github.com/zeebo/blake3 v0.2.4 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect - golang.org/x/crypto v0.27.0 // indirect - golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa // indirect + golang.org/x/crypto v0.28.0 // indirect golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.29.0 // indirect + golang.org/x/net v0.30.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/text v0.18.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/text v0.19.0 // indirect golang.org/x/tools v0.24.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 53189b4..c69e48c 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,5 @@ -cel.dev/expr v0.16.0 h1:yloc84fytn4zmJX2GU3TkXGsaieaV7dQ057Qs4sIG2Y= -cel.dev/expr v0.16.0/go.mod h1:TRSuuV7DlVCE/uwv5QbAiW/v8l5O8C4eEPHeu7gf7Sg= -cloud.google.com/go v0.115.1 h1:Jo0SM9cQnSkYfp44+v+NQXHpcHqlnRJk2qxh6yvxxxQ= -cloud.google.com/go v0.115.1/go.mod h1:DuujITeaufu3gL68/lOFIirVNJwQeyf5UXyi+Wbgknc= -cloud.google.com/go/auth v0.9.5 h1:4CTn43Eynw40aFVr3GpPqsQponx2jv0BQpjvajsbbzw= -cloud.google.com/go/auth v0.9.5/go.mod h1:Xo0n7n66eHyOWWCnitop6870Ilwo3PiZyodVkkH1xWM= -cloud.google.com/go/auth/oauth2adapt v0.2.4 h1:0GWE/FUsXhf6C+jAkWgYm7X9tK8cuEIfy19DBn6B6bY= -cloud.google.com/go/auth/oauth2adapt v0.2.4/go.mod h1:jC/jOpwFP6JBxhB3P5Rr0a9HLMC/Pe3eaL4NmdvqPtc= -cloud.google.com/go/compute/metadata v0.5.2 h1:UxK4uu/Tn+I3p2dYWTfiX4wva7aYlKixAHn3fyqngqo= -cloud.google.com/go/compute/metadata v0.5.2/go.mod h1:C66sj2AluDcIqakBq/M8lw8/ybHgOZqin2obFxa/E5k= -cloud.google.com/go/iam v1.2.0 h1:kZKMKVNk/IsSSc/udOb83K0hL/Yh/Gcqpz+oAkoIFN8= -cloud.google.com/go/iam v1.2.0/go.mod h1:zITGuWgsLZxd8OwAlX+eMFgZDXzBm7icj1PVTYG766Q= -cloud.google.com/go/storage v1.43.0 h1:CcxnSohZwizt4LCzQHWvBf1/kvtHUn7gk9QERXPyXFs= -cloud.google.com/go/storage v1.43.0/go.mod h1:ajvxEa7WmZS1PxvKRq4bq0tFT3vMd502JwstCcYv0Q0= +cel.dev/expr v0.16.1 h1:NR0+oFYzR1CqLFhTAqg3ql59G9VfN8fKq1TCHJ6gq1g= +cel.dev/expr v0.16.1/go.mod h1:AsGA5zb3WruAEQeQng1RZdGEXmBj0jvMWh6l5SnNuC8= contrib.go.opencensus.io/exporter/jaeger v0.2.1 h1:yGBYzYMewVL0yO9qqJv3Z5+IRhPdU7e9o/2oKpX4YvI= contrib.go.opencensus.io/exporter/jaeger v0.2.1/go.mod h1:Y8IsLgdxqh1QxYxPC5IgXVmBaeLUeQFfBeBi9PbeZd0= contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= @@ -28,16 +16,14 @@ github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20200406135749-5c268882 github.com/DataDog/opencensus-go-exporter-datadog v0.0.0-20200406135749-5c268882acf0/go.mod h1:/VV3EFO/hTNQZHAqaj+CPGy2+ioFrP4EX3iRwozubhQ= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= -github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= github.com/OneOfOne/xxhash v1.2.8 h1:31czK/TI9sNkxIKfaUfGlU47BAxQ0ztGgd9vPyqimf8= github.com/OneOfOne/xxhash v1.2.8/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= github.com/VictoriaMetrics/fastcache v1.12.2 h1:N0y9ASrJ0F6h0QaC3o6uJb3NIZ9VKLjCM7NQbSmF7WI= github.com/VictoriaMetrics/fastcache v1.12.2/go.mod h1:AmC+Nzz1+3G2eCPapF6UcsnkThDcMsQicp4xDukwJYI= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/caddyserver/certmagic v0.21.3 h1:pqRRry3yuB4CWBVq9+cUqu+Y6E2z8TswbhNx1AZeYm0= -github.com/caddyserver/certmagic v0.21.3/go.mod h1:Zq6pklO9nVRl3DIFUw9gVUfXKdpc/0qwTUAQMBlfgtI= +github.com/caddyserver/certmagic v0.21.4 h1:e7VobB8rffHv8ZZpSiZtEwnLDHUwLVYLWzWSa1FfKI0= +github.com/caddyserver/certmagic v0.21.4/go.mod h1:swUXjQ1T9ZtMv95qj7/InJvWLXURU85r+CfG0T+ZbDE= github.com/caddyserver/zerossl v0.1.3 h1:onS+pxp3M8HnHpN5MMbOMyNjmTheJyWRaZYwn+YTAyA= github.com/caddyserver/zerossl v0.1.3/go.mod h1:CxA0acn7oEGO6//4rtrRjYgEoa4MFw/XofZnrYwGqG4= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= @@ -46,20 +32,24 @@ github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMr github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cloudflare/circl v1.4.0 h1:BV7h5MgrktNzytKmWjpOtdYrf0lkkbF8YMlBGPhJQrY= -github.com/cloudflare/circl v1.4.0/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU= -github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20 h1:N+3sFI5GUjRKBi+i0TxYVST9h4Ie192jJWpHvthBBgg= -github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= -github.com/containerd/continuity v0.4.3 h1:6HVkalIp+2u1ZLH1J/pYX2oBVXlJZvh1X1A7bEZ9Su8= -github.com/containerd/continuity v0.4.3/go.mod h1:F6PTNCKepoxEaXLQp3wDAjygEnImnZ/7o4JzpodfroQ= +github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys= +github.com/cloudflare/circl v1.5.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= +github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 h1:QVw89YDxXxEe+l8gU8ETbOasdwEV+avkR75ZzsVV9WI= +github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= +github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= +github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpSBQv6A= +github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw= github.com/coreos/go-oidc/v3 v3.11.0 h1:Ia3MxdwpSw702YW0xgfmP1GVCMA9aEFWu12XUZ3/OtI= github.com/coreos/go-oidc/v3 v3.11.0/go.mod h1:gE3LgjOgFoHi9a4ce4/tJczr0Ai2/BoDhf0r5lltWI0= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= +github.com/cpuguy83/dockercfg v0.3.2/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/docker/cli v26.1.4+incompatible h1:I8PHdc0MtxEADqYJZvhBrW9bo8gawKwwenxRM7/rLu8= -github.com/docker/cli v26.1.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= +github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= github.com/docker/docker v27.3.1+incompatible h1:KttF0XoteNTicmUtBO0L2tP+J7FGRFTjaEF4k6WdhfI= github.com/docker/docker v27.3.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= @@ -68,8 +58,8 @@ github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4 github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= -github.com/envoyproxy/go-control-plane v0.13.0 h1:HzkeUz1Knt+3bK+8LG1bxOO/jzWZmdxpwC51i202les= -github.com/envoyproxy/go-control-plane v0.13.0/go.mod h1:GRaKG3dwvFoTg4nj7aXdZnvMg4d7nvT/wl9WgVXn3Q8= +github.com/envoyproxy/go-control-plane v0.13.1 h1:vPfJZCkob6yTMEgS+0TwfTUfbHjfy/6vOJ8hUWX/uXE= +github.com/envoyproxy/go-control-plane v0.13.1/go.mod h1:X45hY0mufo6Fd0KW3rqsGvQMw58jvjymeCzBU3mWyHw= github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM= github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= @@ -90,6 +80,8 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= +github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -104,16 +96,8 @@ github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl76 github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/s2a-go v0.1.8 h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM= -github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO8deJA= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.4 h1:XYIDZApgAnrN1c855gTgghdIA6Stxb52D5RnLI1SLyw= -github.com/googleapis/enterprise-certificate-proxy v0.3.4/go.mod h1:YKe7cfqYXjKGpGvmSg28/fFvhNzinZQm8DGnaburhGA= -github.com/googleapis/gax-go/v2 v2.13.0 h1:yitjD5f7jQHhyDsnhKEBU52NdvvdSeGzlAnDPT0hH1s= -github.com/googleapis/gax-go/v2 v2.13.0/go.mod h1:Z/fvTZXF8/uw7Xu5GuslPw+bplx6SS338j1Is2S+B7A= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= @@ -125,6 +109,8 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-set/v3 v3.0.0 h1:CaJBQvQCOWoftrBcDt7Nwgo0kdpmrKxar/x2o6pV9JA= +github.com/hashicorp/go-set/v3 v3.0.0/go.mod h1:IEghM2MpE5IaNvL+D7X480dfNtxjRXZ6VMpK3C8s2ok= github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= @@ -139,9 +125,8 @@ github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= github.com/jxskiss/base62 v1.1.0 h1:A5zbF8v8WXx2xixnAKD2w+abC+sIzYJX+nxmhA6HWFw= github.com/jxskiss/base62 v1.1.0/go.mod h1:HhWAlUXvxKThfOlZbcuFzsqwtF5TcqS9ru3y5GfjWAc= -github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= -github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= -github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -150,6 +135,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/libdns/libdns v0.2.2 h1:O6ws7bAfRPaBsgAYt8MDe2HcNBGC29hkZ9MX2eUSX3s= github.com/libdns/libdns v0.2.2/go.mod h1:4Bj9+5CQiNMVGf87wjX4CY3HQJypUHRuLvlsfsZqLWQ= +github.com/lufia/plan9stats v0.0.0-20240513124658-fba389f38bae h1:dIZY4ULFcto4tAFlj1FYZl8ztUZ13bdq+PLY+NOfbyI= +github.com/lufia/plan9stats v0.0.0-20240513124658-fba389f38bae/go.mod h1:ilwx/Dta8jXAgpFYFvSWEMwxmbWXyiUHkd5FwyKhb5k= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= @@ -158,36 +145,42 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mholt/acmez/v2 v2.0.2 h1:OmK6xckte2JfKGPz4OAA8aNHTiLvGp8tLzmrd/wfSyw= -github.com/mholt/acmez/v2 v2.0.2/go.mod h1:fX4c9r5jYwMyMsC+7tkYRxHibkOTgta5DIFGoe67e1U= -github.com/miekg/dns v1.1.59 h1:C9EXc/UToRwKLhK5wKU/I4QVsBUc8kE6MkHBkeypWZs= -github.com/miekg/dns v1.1.59/go.mod h1:nZpewl5p6IvctfgrckopVx2OlSEHPRO/U4SYkRklrEk= +github.com/mholt/acmez/v2 v2.0.3 h1:CgDBlEwg3QBp6s45tPQmFIBrkRIkBT4rW4orMM6p4sw= +github.com/mholt/acmez/v2 v2.0.3/go.mod h1:pQ1ysaDeGrIMvJ9dfJMk5kJNkn7L2sb3UhyrX6Q91cw= +github.com/miekg/dns v1.1.62 h1:cN8OuEF1/x5Rq6Np+h1epln8OiyPWV+lROx9LxcGgIQ= +github.com/miekg/dns v1.1.62/go.mod h1:mvDlcItzm+br7MToIKqkglaGhlFMHJ9DTNNWONWXbNQ= github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= -github.com/minio/minio-go/v7 v7.0.77 h1:GaGghJRg9nwDVlNbwYjSDJT1rqltQkBFDsypWX1v3Bw= -github.com/minio/minio-go/v7 v7.0.77/go.mod h1:AVM3IUN6WwKzmwBxVdjzhH8xq+f57JSbbvzqvUzR6eg= +github.com/minio/minio-go/v7 v7.0.80 h1:2mdUHXEykRdY/BigLt3Iuu1otL0JTogT0Nmltg0wujk= +github.com/minio/minio-go/v7 v7.0.80/go.mod h1:84gmIilaX4zcvAWWzJ5Z1WI5axN+hAbM5w25xf8xvC0= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c h1:cqn374mizHuIWj+OSJCajGr/phAmuMug9qIX3l9CflE= github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= +github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk= +github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc= +github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5lXtc= +github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo= +github.com/moby/sys/user v0.3.0 h1:9ni5DlcW5an3SvRSx4MouotOygvzaXbaSrc/wGDFWPo= +github.com/moby/sys/user v0.3.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs= +github.com/moby/sys/userns v0.1.0 h1:tVLXkFOxVu9A64/yh59slHVv9ahO9UIev4JZusOLG/g= +github.com/moby/sys/userns v0.1.0/go.mod h1:IHUYgu/kao6N8YZlp9Cf444ySSvCmDlmzUcYfDHOl28= github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/open-policy-agent/opa v0.69.0 h1:s2igLw2Z6IvGWGuXSfugWkVultDMsM9pXiDuMp7ckWw= -github.com/open-policy-agent/opa v0.69.0/go.mod h1:+qyXJGkpEJ6kpB1kGo8JSwHtVXbTdsGdQYPWWNYNj+4= +github.com/open-policy-agent/opa v0.70.0 h1:B3cqCN2iQAyKxK6+GI+N40uqkin+wzIrM7YA60t9x1U= +github.com/open-policy-agent/opa v0.70.0/go.mod h1:Y/nm5NY0BX0BqjBriKUiV81sCl8XOjjvqQG7dXrggtI= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= -github.com/opencontainers/runc v1.1.14 h1:rgSuzbmgz5DUJjeSnw337TxDbRuqjs6iqQck/2weR6w= -github.com/opencontainers/runc v1.1.14/go.mod h1:E4C2z+7BxR7GHXp0hAY53mek+x49X1LjPNeMTfRGvOA= github.com/openzipkin/zipkin-go v0.4.3 h1:9EGwpqkgnwdEIJ+Od7QVSEIH+ocmm5nPat0G7sjsSdg= github.com/openzipkin/zipkin-go v0.4.3/go.mod h1:M9wCJZFWCo2RiY+o1eBCEMe0Dp2S5LDHcMZmk3RmK7c= -github.com/ory/dockertest/v3 v3.11.0 h1:OiHcxKAvSDUwsEVh2BjxQQc/5EHz9n0va9awCtNGuyA= -github.com/ory/dockertest/v3 v3.11.0/go.mod h1:VIPxS1gwT9NpPOrfD3rACs8Y9Z7yhzO4SB194iUDnUI= github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/philhofer/fwd v1.1.2 h1:bnDivRJ1EWPjUIRXV5KfORO897HTbpFAQddBdE8t7Gw= @@ -201,22 +194,26 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pomerium/csrf v1.7.0 h1:Qp4t6oyEod3svQtKfJZs589mdUTWKVf7q0PgCKYCshY= github.com/pomerium/csrf v1.7.0/go.mod h1:hAPZV47mEj2T9xFs+ysbum4l7SF1IdrryYaY6PdoIqw= -github.com/pomerium/pomerium v0.27.1-0.20241003171454-01d375f0bc7f h1:eX9kHZdNOJteGZZnrTnrv4NNSJcZOwP8KpqreCm9Hvo= -github.com/pomerium/pomerium v0.27.1-0.20241003171454-01d375f0bc7f/go.mod h1:zI28W9LQGTCDyrCbgSno/sa7TLzZPHjiatzDQ34mFuc= -github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI= -github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= +github.com/pomerium/pomerium v0.28.0 h1:oNUw623093ybLB+a/W7fZgJXRlZiLlbwXMWXpdMTs3E= +github.com/pomerium/pomerium v0.28.0/go.mod h1:5kyioARKhZjQhXO9yK7ooVfa97ctk/0XJ2AOhVxdRpM= +github.com/pomerium/protoutil v0.0.0-20240813175624-47b7ac43ff46 h1:NRTg8JOXCxcIA1lAgD74iYud0rbshbWOB3Ou4+Huil8= +github.com/pomerium/protoutil v0.0.0-20240813175624-47b7ac43ff46/go.mod h1:QqZmx6ZgPxz18va7kqoT4t/0yJtP7YFIDiT/W2n2fZ4= +github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU= +github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= +github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA= -github.com/prometheus/common v0.60.0/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw= +github.com/prometheus/common v0.60.1 h1:FUas6GcOw66yB/73KC+BOZoFJmbo/1pojoILArPAaSc= +github.com/prometheus/common v0.60.1/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0= github.com/prometheus/statsd_exporter v0.22.7/go.mod h1:N/TevpjkIh9ccs6nuzY3jQn9dFqnUakOjnEuMPJJJnI= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/xid v1.6.0 h1:fV591PaemRlL6JfRxGDEPl69wICngIQ3shQtzfy2gxU= github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= @@ -226,6 +223,12 @@ github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6ke github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI= +github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk= +github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/shoenig/test v1.11.0 h1:NoPa5GIoBwuqzIviCrnUJa+t5Xb4xi5Z+zODJnIDsEQ= +github.com/shoenig/test v1.11.0/go.mod h1:UxJ6u/x2v/TNs/LoLxBNJRV9DiwBBKYxXSyczsBHFoI= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= @@ -244,8 +247,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/testcontainers/testcontainers-go v0.34.0 h1:5fbgF0vIN5u+nD3IWabQwRybuB4GY8G2HHgCkbMzMHo= +github.com/testcontainers/testcontainers-go v0.34.0/go.mod h1:6P/kMkQe8yqPHfPWNulFGdFHTD8HB2vLq/231xY2iPQ= github.com/tinylib/msgp v1.1.8 h1:FCXC1xanKO4I8plpHGH2P7koL/RzZs12l/+r7vakfm0= github.com/tinylib/msgp v1.1.8/go.mod h1:qkpG+2ldGg4xRFmx+jfTvZPxfGFhi64BcnL9vkCm/Tw= +github.com/tklauser/go-sysconf v0.3.14 h1:g5vzr9iPFFz24v2KZXs/pvpvh8/V9Fw6vQK5ZZb78yU= +github.com/tklauser/go-sysconf v0.3.14/go.mod h1:1ym4lWMLUOhuBOPGtRcJm7tEGX4SCYNEEEtghGG/8uY= +github.com/tklauser/numcpus v0.8.0 h1:Mx4Wwe/FjZLeQsK/6kt2EOepwwSl7SmJrK5bV/dXYgY= +github.com/tklauser/numcpus v0.8.0/go.mod h1:ZJZlAY+dmR4eut8epnzf0u/VwodKmryxR8txiloSqBE= github.com/uber/jaeger-client-go v2.25.0+incompatible h1:IxcNZ7WRY1Y3G4poYlx24szfsn/3LvK9QHCq9oQw8+U= github.com/uber/jaeger-client-go v2.25.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/volatiletech/null/v9 v9.0.0 h1:JCdlHEiSRVxOi7/MABiEfdsqmuj9oTV20Ao7VvZ0JkE= @@ -254,32 +263,29 @@ github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMc github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zeebo/assert v1.1.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= +github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= +github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= github.com/zeebo/assert v1.3.1 h1:vukIABvugfNMZMQO1ABsyQDJDTVQbn+LWSMy1ol1h6A= github.com/zeebo/assert v1.3.1/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= -github.com/zeebo/blake3 v0.2.3 h1:TFoLXsjeXqRNFxSbk35Dk4YtszE/MQQGK10BH4ptoTg= -github.com/zeebo/blake3 v0.2.3/go.mod h1:mjJjZpnsyIVtVgTOSpJ9vmRE4wgDeyt2HU3qXvvKCaQ= +github.com/zeebo/blake3 v0.2.4 h1:KYQPkhpRtcqh0ssGYcKLG1JYvddkEA8QwCM/yBqhaZI= +github.com/zeebo/blake3 v0.2.4/go.mod h1:7eeQ6d2iXWRGF6npfaxl2CU+xy2Fjo2gxeyZGCRUjcE= github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo= github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= -go.opentelemetry.io/otel v1.30.0 h1:F2t8sK4qf1fAmY9ua4ohFS/K+FUuOPemHUIXHtktrts= -go.opentelemetry.io/otel v1.30.0/go.mod h1:tFw4Br9b7fOS+uEao81PJjVMjW/5fvNCbpsDIXqP0pc= -go.opentelemetry.io/otel/metric v1.30.0 h1:4xNulvn9gjzo4hjg+wzIKG7iNFEaBMX00Qd4QIZs7+w= -go.opentelemetry.io/otel/metric v1.30.0/go.mod h1:aXTfST94tswhWEb+5QjlSqG+cZlmyXy/u8jFpor3WqQ= -go.opentelemetry.io/otel/trace v1.30.0 h1:7UBkkYzeg3C7kQX8VAidWh2biiQbtAKjyIML8dQ9wmc= -go.opentelemetry.io/otel/trace v1.30.0/go.mod h1:5EyKqTzzmyqB9bwtCCq6pDLktPK6fmGf/Dph+8VI02o= +go.opentelemetry.io/otel v1.31.0 h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY= +go.opentelemetry.io/otel v1.31.0/go.mod h1:O0C14Yl9FgkjqcCZAsE053C13OaddMYr/hz6clDkEJE= +go.opentelemetry.io/otel/metric v1.31.0 h1:FSErL0ATQAmYHUIzSezZibnyVlft1ybhy4ozRPcF2fE= +go.opentelemetry.io/otel/metric v1.31.0/go.mod h1:C3dEloVbLuYoX41KpmAhOqNriGbA+qqH6PQ5E5mUfnY= +go.opentelemetry.io/otel/trace v1.31.0 h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HYdmJys= +go.opentelemetry.io/otel/trace v1.31.0/go.mod h1:TXZkRk7SM2ZQLtR6eoAWQFIHPvzQ06FJAsO1tJg480A= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= -go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= +go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU= +go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= @@ -287,8 +293,8 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa h1:ELnwvuAXPNtPk1TJRuGkI9fDTwym6AYBu0qzT8AcHdI= golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -300,8 +306,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -320,8 +326,8 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= @@ -333,10 +339,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= -golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= @@ -344,18 +348,16 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.199.0 h1:aWUXClp+VFJmqE0JPvpZOK3LDQMyFKYIow4etYd9qxs= -google.golang.org/api v0.199.0/go.mod h1:ohG4qSztDJmZdjK/Ar6MhbAmb/Rpi4JHOqagsh90K28= -google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 h1:BulPr26Jqjnd4eYDVe+YvyR7Yc2vJGkO5/0UxD0/jZU= -google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:hL97c3SYopEHblzpxRL4lSs523++l8DYxGM1FQiYmb4= -google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 h1:hjSy6tcFQZ171igDaN5QHOw2n6vx40juYbC/x67CEhc= -google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:qpvKtACPCQhAdu3PyQgV4l3LMXZEtft7y8QcarRsp9I= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/api v0.203.0 h1:SrEeuwU3S11Wlscsn+LA1kb/Y5xT8uggJSkIhD08NAU= +google.golang.org/api v0.203.0/go.mod h1:BuOVyCSYEPwJb3npWvDnNmFI92f3GeRnHNkETneT3SI= +google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9 h1:T6rh4haD3GVYsgEfWExoCZA2o2FmbNyKpTuAxbEFPTg= +google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9/go.mod h1:wp2WsuBYj6j8wUdo3ToZsdxxixbvQNAHqVJrTgi5E5M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/DataDog/dd-trace-go.v1 v1.22.0 h1:gpWsqqkwUldNZXGJqT69NU9MdEDhLboK1C4nMgR0MWw= gopkg.in/DataDog/dd-trace-go.v1 v1.22.0/go.mod h1:DVp8HmDh8PuTu2Z0fVVlBsyWaC++fzwVCaGWylTe3tg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pb/activity_log.pb.go b/pb/activity_log.pb.go index dd8ee56..5147669 100644 --- a/pb/activity_log.pb.go +++ b/pb/activity_log.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: activity_log.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" @@ -1049,7 +1045,7 @@ func file_activity_log_proto_rawDescGZIP() []byte { } var file_activity_log_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_activity_log_proto_goTypes = []interface{}{ +var file_activity_log_proto_goTypes = []any{ (*ActivityLogEntry)(nil), // 0: pomerium.dashboard.ActivityLogEntry (*GetActivityLogEntryRequest)(nil), // 1: pomerium.dashboard.GetActivityLogEntryRequest (*GetActivityLogEntryResponse)(nil), // 2: pomerium.dashboard.GetActivityLogEntryResponse @@ -1089,7 +1085,7 @@ func file_activity_log_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_activity_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ActivityLogEntry); i { case 0: return &v.state @@ -1101,7 +1097,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*GetActivityLogEntryRequest); i { case 0: return &v.state @@ -1113,7 +1109,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GetActivityLogEntryResponse); i { case 0: return &v.state @@ -1125,7 +1121,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesRequest); i { case 0: return &v.state @@ -1137,7 +1133,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesResponse); i { case 0: return &v.state @@ -1149,7 +1145,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ActivityLogEntry_DiffSummary); i { case 0: return &v.state @@ -1161,7 +1157,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesRequest_Entity); i { case 0: return &v.state @@ -1173,7 +1169,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesRequest_Sort); i { case 0: return &v.state @@ -1185,7 +1181,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesRequest_DateFilter); i { case 0: return &v.state @@ -1197,7 +1193,7 @@ func file_activity_log_proto_init() { return nil } } - file_activity_log_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_activity_log_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ListActivityLogEntriesRequest_StringFilter); i { case 0: return &v.state @@ -1210,8 +1206,8 @@ func file_activity_log_proto_init() { } } } - file_activity_log_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_activity_log_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_activity_log_proto_msgTypes[2].OneofWrappers = []any{} + file_activity_log_proto_msgTypes[3].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -1231,125 +1227,3 @@ func file_activity_log_proto_init() { file_activity_log_proto_goTypes = nil file_activity_log_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ActivityLogServiceClient is the client API for ActivityLogService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ActivityLogServiceClient interface { - // GetActivityLogEntry retrieves a specific activity log entry - GetActivityLogEntry(ctx context.Context, in *GetActivityLogEntryRequest, opts ...grpc.CallOption) (*GetActivityLogEntryResponse, error) - // ListActivityLogEntries lists activity log entries based on paramters in the - // ListActivityLogEntriesRequest - ListActivityLogEntries(ctx context.Context, in *ListActivityLogEntriesRequest, opts ...grpc.CallOption) (*ListActivityLogEntriesResponse, error) -} - -type activityLogServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewActivityLogServiceClient(cc grpc.ClientConnInterface) ActivityLogServiceClient { - return &activityLogServiceClient{cc} -} - -func (c *activityLogServiceClient) GetActivityLogEntry(ctx context.Context, in *GetActivityLogEntryRequest, opts ...grpc.CallOption) (*GetActivityLogEntryResponse, error) { - out := new(GetActivityLogEntryResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ActivityLogService/GetActivityLogEntry", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *activityLogServiceClient) ListActivityLogEntries(ctx context.Context, in *ListActivityLogEntriesRequest, opts ...grpc.CallOption) (*ListActivityLogEntriesResponse, error) { - out := new(ListActivityLogEntriesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ActivityLogService/ListActivityLogEntries", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ActivityLogServiceServer is the server API for ActivityLogService service. -type ActivityLogServiceServer interface { - // GetActivityLogEntry retrieves a specific activity log entry - GetActivityLogEntry(context.Context, *GetActivityLogEntryRequest) (*GetActivityLogEntryResponse, error) - // ListActivityLogEntries lists activity log entries based on paramters in the - // ListActivityLogEntriesRequest - ListActivityLogEntries(context.Context, *ListActivityLogEntriesRequest) (*ListActivityLogEntriesResponse, error) -} - -// UnimplementedActivityLogServiceServer can be embedded to have forward compatible implementations. -type UnimplementedActivityLogServiceServer struct { -} - -func (*UnimplementedActivityLogServiceServer) GetActivityLogEntry(context.Context, *GetActivityLogEntryRequest) (*GetActivityLogEntryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetActivityLogEntry not implemented") -} -func (*UnimplementedActivityLogServiceServer) ListActivityLogEntries(context.Context, *ListActivityLogEntriesRequest) (*ListActivityLogEntriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListActivityLogEntries not implemented") -} - -func RegisterActivityLogServiceServer(s *grpc.Server, srv ActivityLogServiceServer) { - s.RegisterService(&_ActivityLogService_serviceDesc, srv) -} - -func _ActivityLogService_GetActivityLogEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetActivityLogEntryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ActivityLogServiceServer).GetActivityLogEntry(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ActivityLogService/GetActivityLogEntry", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ActivityLogServiceServer).GetActivityLogEntry(ctx, req.(*GetActivityLogEntryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ActivityLogService_ListActivityLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListActivityLogEntriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ActivityLogServiceServer).ListActivityLogEntries(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ActivityLogService/ListActivityLogEntries", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ActivityLogServiceServer).ListActivityLogEntries(ctx, req.(*ListActivityLogEntriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ActivityLogService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.ActivityLogService", - HandlerType: (*ActivityLogServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetActivityLogEntry", - Handler: _ActivityLogService_GetActivityLogEntry_Handler, - }, - { - MethodName: "ListActivityLogEntries", - Handler: _ActivityLogService_ListActivityLogEntries_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "activity_log.proto", -} diff --git a/pb/activity_log_grpc.pb.go b/pb/activity_log_grpc.pb.go new file mode 100644 index 0000000..6b00cd0 --- /dev/null +++ b/pb/activity_log_grpc.pb.go @@ -0,0 +1,169 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: activity_log.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ActivityLogService_GetActivityLogEntry_FullMethodName = "/pomerium.dashboard.ActivityLogService/GetActivityLogEntry" + ActivityLogService_ListActivityLogEntries_FullMethodName = "/pomerium.dashboard.ActivityLogService/ListActivityLogEntries" +) + +// ActivityLogServiceClient is the client API for ActivityLogService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ActivityLogService tracks historical changes to configuration made through +// Pomerium Enterprise +type ActivityLogServiceClient interface { + // GetActivityLogEntry retrieves a specific activity log entry + GetActivityLogEntry(ctx context.Context, in *GetActivityLogEntryRequest, opts ...grpc.CallOption) (*GetActivityLogEntryResponse, error) + // ListActivityLogEntries lists activity log entries based on paramters in the + // ListActivityLogEntriesRequest + ListActivityLogEntries(ctx context.Context, in *ListActivityLogEntriesRequest, opts ...grpc.CallOption) (*ListActivityLogEntriesResponse, error) +} + +type activityLogServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewActivityLogServiceClient(cc grpc.ClientConnInterface) ActivityLogServiceClient { + return &activityLogServiceClient{cc} +} + +func (c *activityLogServiceClient) GetActivityLogEntry(ctx context.Context, in *GetActivityLogEntryRequest, opts ...grpc.CallOption) (*GetActivityLogEntryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetActivityLogEntryResponse) + err := c.cc.Invoke(ctx, ActivityLogService_GetActivityLogEntry_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *activityLogServiceClient) ListActivityLogEntries(ctx context.Context, in *ListActivityLogEntriesRequest, opts ...grpc.CallOption) (*ListActivityLogEntriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListActivityLogEntriesResponse) + err := c.cc.Invoke(ctx, ActivityLogService_ListActivityLogEntries_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ActivityLogServiceServer is the server API for ActivityLogService service. +// All implementations should embed UnimplementedActivityLogServiceServer +// for forward compatibility. +// +// ActivityLogService tracks historical changes to configuration made through +// Pomerium Enterprise +type ActivityLogServiceServer interface { + // GetActivityLogEntry retrieves a specific activity log entry + GetActivityLogEntry(context.Context, *GetActivityLogEntryRequest) (*GetActivityLogEntryResponse, error) + // ListActivityLogEntries lists activity log entries based on paramters in the + // ListActivityLogEntriesRequest + ListActivityLogEntries(context.Context, *ListActivityLogEntriesRequest) (*ListActivityLogEntriesResponse, error) +} + +// UnimplementedActivityLogServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedActivityLogServiceServer struct{} + +func (UnimplementedActivityLogServiceServer) GetActivityLogEntry(context.Context, *GetActivityLogEntryRequest) (*GetActivityLogEntryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetActivityLogEntry not implemented") +} +func (UnimplementedActivityLogServiceServer) ListActivityLogEntries(context.Context, *ListActivityLogEntriesRequest) (*ListActivityLogEntriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListActivityLogEntries not implemented") +} +func (UnimplementedActivityLogServiceServer) testEmbeddedByValue() {} + +// UnsafeActivityLogServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ActivityLogServiceServer will +// result in compilation errors. +type UnsafeActivityLogServiceServer interface { + mustEmbedUnimplementedActivityLogServiceServer() +} + +func RegisterActivityLogServiceServer(s grpc.ServiceRegistrar, srv ActivityLogServiceServer) { + // If the following call pancis, it indicates UnimplementedActivityLogServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ActivityLogService_ServiceDesc, srv) +} + +func _ActivityLogService_GetActivityLogEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetActivityLogEntryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ActivityLogServiceServer).GetActivityLogEntry(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ActivityLogService_GetActivityLogEntry_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ActivityLogServiceServer).GetActivityLogEntry(ctx, req.(*GetActivityLogEntryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ActivityLogService_ListActivityLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListActivityLogEntriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ActivityLogServiceServer).ListActivityLogEntries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ActivityLogService_ListActivityLogEntries_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ActivityLogServiceServer).ListActivityLogEntries(ctx, req.(*ListActivityLogEntriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ActivityLogService_ServiceDesc is the grpc.ServiceDesc for ActivityLogService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ActivityLogService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.ActivityLogService", + HandlerType: (*ActivityLogServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetActivityLogEntry", + Handler: _ActivityLogService_GetActivityLogEntry_Handler, + }, + { + MethodName: "ListActivityLogEntries", + Handler: _ActivityLogService_ListActivityLogEntries_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "activity_log.proto", +} diff --git a/pb/audit_svc.pb.go b/pb/audit_svc.pb.go index f3762f1..a497883 100644 --- a/pb/audit_svc.pb.go +++ b/pb/audit_svc.pb.go @@ -1,18 +1,14 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: audit_svc.proto package pb import ( - context "context" audit "github.com/pomerium/pomerium/pkg/grpc/audit" crypt "github.com/pomerium/pomerium/pkg/grpc/crypt" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -168,7 +164,7 @@ func file_audit_svc_proto_rawDescGZIP() []byte { } var file_audit_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_audit_svc_proto_goTypes = []interface{}{ +var file_audit_svc_proto_goTypes = []any{ (*DecryptAuditRecordsRequest)(nil), // 0: pomerium.dashboard.DecryptAuditRecordsRequest (*DecryptAuditRecordsResponse)(nil), // 1: pomerium.dashboard.DecryptAuditRecordsResponse (*crypt.SealedMessage)(nil), // 2: pomerium.crypt.SealedMessage @@ -192,7 +188,7 @@ func file_audit_svc_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_audit_svc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_audit_svc_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*DecryptAuditRecordsRequest); i { case 0: return &v.state @@ -204,7 +200,7 @@ func file_audit_svc_proto_init() { return nil } } - file_audit_svc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_audit_svc_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DecryptAuditRecordsResponse); i { case 0: return &v.state @@ -236,83 +232,3 @@ func file_audit_svc_proto_init() { file_audit_svc_proto_goTypes = nil file_audit_svc_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// AuditServiceClient is the client API for AuditService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AuditServiceClient interface { - DecryptAuditRecords(ctx context.Context, in *DecryptAuditRecordsRequest, opts ...grpc.CallOption) (*DecryptAuditRecordsResponse, error) -} - -type auditServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAuditServiceClient(cc grpc.ClientConnInterface) AuditServiceClient { - return &auditServiceClient{cc} -} - -func (c *auditServiceClient) DecryptAuditRecords(ctx context.Context, in *DecryptAuditRecordsRequest, opts ...grpc.CallOption) (*DecryptAuditRecordsResponse, error) { - out := new(DecryptAuditRecordsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.AuditService/DecryptAuditRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AuditServiceServer is the server API for AuditService service. -type AuditServiceServer interface { - DecryptAuditRecords(context.Context, *DecryptAuditRecordsRequest) (*DecryptAuditRecordsResponse, error) -} - -// UnimplementedAuditServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAuditServiceServer struct { -} - -func (*UnimplementedAuditServiceServer) DecryptAuditRecords(context.Context, *DecryptAuditRecordsRequest) (*DecryptAuditRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DecryptAuditRecords not implemented") -} - -func RegisterAuditServiceServer(s *grpc.Server, srv AuditServiceServer) { - s.RegisterService(&_AuditService_serviceDesc, srv) -} - -func _AuditService_DecryptAuditRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DecryptAuditRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuditServiceServer).DecryptAuditRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.AuditService/DecryptAuditRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuditServiceServer).DecryptAuditRecords(ctx, req.(*DecryptAuditRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AuditService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.AuditService", - HandlerType: (*AuditServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DecryptAuditRecords", - Handler: _AuditService_DecryptAuditRecords_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "audit_svc.proto", -} diff --git a/pb/audit_svc_grpc.pb.go b/pb/audit_svc_grpc.pb.go new file mode 100644 index 0000000..9ad8408 --- /dev/null +++ b/pb/audit_svc_grpc.pb.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: audit_svc.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + AuditService_DecryptAuditRecords_FullMethodName = "/pomerium.dashboard.AuditService/DecryptAuditRecords" +) + +// AuditServiceClient is the client API for AuditService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AuditServiceClient interface { + DecryptAuditRecords(ctx context.Context, in *DecryptAuditRecordsRequest, opts ...grpc.CallOption) (*DecryptAuditRecordsResponse, error) +} + +type auditServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAuditServiceClient(cc grpc.ClientConnInterface) AuditServiceClient { + return &auditServiceClient{cc} +} + +func (c *auditServiceClient) DecryptAuditRecords(ctx context.Context, in *DecryptAuditRecordsRequest, opts ...grpc.CallOption) (*DecryptAuditRecordsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DecryptAuditRecordsResponse) + err := c.cc.Invoke(ctx, AuditService_DecryptAuditRecords_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuditServiceServer is the server API for AuditService service. +// All implementations should embed UnimplementedAuditServiceServer +// for forward compatibility. +type AuditServiceServer interface { + DecryptAuditRecords(context.Context, *DecryptAuditRecordsRequest) (*DecryptAuditRecordsResponse, error) +} + +// UnimplementedAuditServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAuditServiceServer struct{} + +func (UnimplementedAuditServiceServer) DecryptAuditRecords(context.Context, *DecryptAuditRecordsRequest) (*DecryptAuditRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DecryptAuditRecords not implemented") +} +func (UnimplementedAuditServiceServer) testEmbeddedByValue() {} + +// UnsafeAuditServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AuditServiceServer will +// result in compilation errors. +type UnsafeAuditServiceServer interface { + mustEmbedUnimplementedAuditServiceServer() +} + +func RegisterAuditServiceServer(s grpc.ServiceRegistrar, srv AuditServiceServer) { + // If the following call pancis, it indicates UnimplementedAuditServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&AuditService_ServiceDesc, srv) +} + +func _AuditService_DecryptAuditRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DecryptAuditRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuditServiceServer).DecryptAuditRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuditService_DecryptAuditRecords_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuditServiceServer).DecryptAuditRecords(ctx, req.(*DecryptAuditRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AuditService_ServiceDesc is the grpc.ServiceDesc for AuditService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AuditService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.AuditService", + HandlerType: (*AuditServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DecryptAuditRecords", + Handler: _AuditService_DecryptAuditRecords_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "audit_svc.proto", +} diff --git a/pb/changesets.pb.go b/pb/changesets.pb.go new file mode 100644 index 0000000..0f1f625 --- /dev/null +++ b/pb/changesets.pb.go @@ -0,0 +1,1200 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc v3.20.3 +// source: changesets.proto + +package pb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Changeset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` + DeployedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=deployed_at,json=deployedAt,proto3" json:"deployed_at,omitempty"` +} + +func (x *Changeset) Reset() { + *x = Changeset{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Changeset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Changeset) ProtoMessage() {} + +func (x *Changeset) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Changeset.ProtoReflect.Descriptor instead. +func (*Changeset) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{0} +} + +func (x *Changeset) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Changeset) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Changeset) GetModifiedAt() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedAt + } + return nil +} + +func (x *Changeset) GetDeployedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeployedAt + } + return nil +} + +type ChangesetRecord struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + RecordId string `protobuf:"bytes,2,opt,name=record_id,json=recordId,proto3" json:"record_id,omitempty"` + RecordProtoMd5 string `protobuf:"bytes,3,opt,name=record_proto_md5,json=recordProtoMd5,proto3" json:"record_proto_md5,omitempty"` + RecordProto []byte `protobuf:"bytes,4,opt,name=record_proto,json=recordProto,proto3" json:"record_proto,omitempty"` +} + +func (x *ChangesetRecord) Reset() { + *x = ChangesetRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangesetRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangesetRecord) ProtoMessage() {} + +func (x *ChangesetRecord) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangesetRecord.ProtoReflect.Descriptor instead. +func (*ChangesetRecord) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{1} +} + +func (x *ChangesetRecord) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChangesetRecord) GetRecordId() string { + if x != nil { + return x.RecordId + } + return "" +} + +func (x *ChangesetRecord) GetRecordProtoMd5() string { + if x != nil { + return x.RecordProtoMd5 + } + return "" +} + +func (x *ChangesetRecord) GetRecordProto() []byte { + if x != nil { + return x.RecordProto + } + return nil +} + +type ChangesetWithRecords struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Changeset *Changeset `protobuf:"bytes,1,opt,name=changeset,proto3" json:"changeset,omitempty"` + Records []*ChangesetRecord `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` +} + +func (x *ChangesetWithRecords) Reset() { + *x = ChangesetWithRecords{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangesetWithRecords) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangesetWithRecords) ProtoMessage() {} + +func (x *ChangesetWithRecords) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangesetWithRecords.ProtoReflect.Descriptor instead. +func (*ChangesetWithRecords) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{2} +} + +func (x *ChangesetWithRecords) GetChangeset() *Changeset { + if x != nil { + return x.Changeset + } + return nil +} + +func (x *ChangesetWithRecords) GetRecords() []*ChangesetRecord { + if x != nil { + return x.Records + } + return nil +} + +type ChangesetDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` + DeployedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=deployed_at,json=deployedAt,proto3" json:"deployed_at,omitempty"` + Approvers []*ChangesetDetails_Approver `protobuf:"bytes,5,rep,name=approvers,proto3" json:"approvers,omitempty"` + RequiredApprovalCount int64 `protobuf:"varint,10,opt,name=required_approval_count,json=requiredApprovalCount,proto3" json:"required_approval_count,omitempty"` + CanApprove bool `protobuf:"varint,6,opt,name=can_approve,json=canApprove,proto3" json:"can_approve,omitempty"` + CanDeploy bool `protobuf:"varint,7,opt,name=can_deploy,json=canDeploy,proto3" json:"can_deploy,omitempty"` + CanRollback bool `protobuf:"varint,8,opt,name=can_rollback,json=canRollback,proto3" json:"can_rollback,omitempty"` + LastChange *ActivityLogEntry `protobuf:"bytes,9,opt,name=last_change,json=lastChange,proto3,oneof" json:"last_change,omitempty"` + Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *ChangesetDetails) Reset() { + *x = ChangesetDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangesetDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangesetDetails) ProtoMessage() {} + +func (x *ChangesetDetails) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangesetDetails.ProtoReflect.Descriptor instead. +func (*ChangesetDetails) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{3} +} + +func (x *ChangesetDetails) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChangesetDetails) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ChangesetDetails) GetModifiedAt() *timestamppb.Timestamp { + if x != nil { + return x.ModifiedAt + } + return nil +} + +func (x *ChangesetDetails) GetDeployedAt() *timestamppb.Timestamp { + if x != nil { + return x.DeployedAt + } + return nil +} + +func (x *ChangesetDetails) GetApprovers() []*ChangesetDetails_Approver { + if x != nil { + return x.Approvers + } + return nil +} + +func (x *ChangesetDetails) GetRequiredApprovalCount() int64 { + if x != nil { + return x.RequiredApprovalCount + } + return 0 +} + +func (x *ChangesetDetails) GetCanApprove() bool { + if x != nil { + return x.CanApprove + } + return false +} + +func (x *ChangesetDetails) GetCanDeploy() bool { + if x != nil { + return x.CanDeploy + } + return false +} + +func (x *ChangesetDetails) GetCanRollback() bool { + if x != nil { + return x.CanRollback + } + return false +} + +func (x *ChangesetDetails) GetLastChange() *ActivityLogEntry { + if x != nil { + return x.LastChange + } + return nil +} + +func (x *ChangesetDetails) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +type ApproveChangesetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangesetId string `protobuf:"bytes,1,opt,name=changeset_id,json=changesetId,proto3" json:"changeset_id,omitempty"` +} + +func (x *ApproveChangesetRequest) Reset() { + *x = ApproveChangesetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApproveChangesetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApproveChangesetRequest) ProtoMessage() {} + +func (x *ApproveChangesetRequest) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApproveChangesetRequest.ProtoReflect.Descriptor instead. +func (*ApproveChangesetRequest) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{4} +} + +func (x *ApproveChangesetRequest) GetChangesetId() string { + if x != nil { + return x.ChangesetId + } + return "" +} + +type DeployChangesetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangesetId string `protobuf:"bytes,1,opt,name=changeset_id,json=changesetId,proto3" json:"changeset_id,omitempty"` +} + +func (x *DeployChangesetRequest) Reset() { + *x = DeployChangesetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeployChangesetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeployChangesetRequest) ProtoMessage() {} + +func (x *DeployChangesetRequest) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeployChangesetRequest.ProtoReflect.Descriptor instead. +func (*DeployChangesetRequest) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{5} +} + +func (x *DeployChangesetRequest) GetChangesetId() string { + if x != nil { + return x.ChangesetId + } + return "" +} + +type DiffChangesetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangesetId string `protobuf:"bytes,1,opt,name=changeset_id,json=changesetId,proto3" json:"changeset_id,omitempty"` +} + +func (x *DiffChangesetRequest) Reset() { + *x = DiffChangesetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DiffChangesetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiffChangesetRequest) ProtoMessage() {} + +func (x *DiffChangesetRequest) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiffChangesetRequest.ProtoReflect.Descriptor instead. +func (*DiffChangesetRequest) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{6} +} + +func (x *DiffChangesetRequest) GetChangesetId() string { + if x != nil { + return x.ChangesetId + } + return "" +} + +type DiffChangesetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChangesetRecords []*DiffChangesetResponse_Record `protobuf:"bytes,1,rep,name=changeset_records,json=changesetRecords,proto3" json:"changeset_records,omitempty"` + CurrentlyDeployedChangesetRecords []*DiffChangesetResponse_Record `protobuf:"bytes,2,rep,name=currently_deployed_changeset_records,json=currentlyDeployedChangesetRecords,proto3" json:"currently_deployed_changeset_records,omitempty"` +} + +func (x *DiffChangesetResponse) Reset() { + *x = DiffChangesetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DiffChangesetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiffChangesetResponse) ProtoMessage() {} + +func (x *DiffChangesetResponse) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiffChangesetResponse.ProtoReflect.Descriptor instead. +func (*DiffChangesetResponse) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{7} +} + +func (x *DiffChangesetResponse) GetChangesetRecords() []*DiffChangesetResponse_Record { + if x != nil { + return x.ChangesetRecords + } + return nil +} + +func (x *DiffChangesetResponse) GetCurrentlyDeployedChangesetRecords() []*DiffChangesetResponse_Record { + if x != nil { + return x.CurrentlyDeployedChangesetRecords + } + return nil +} + +type ListChangesetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +} + +func (x *ListChangesetsRequest) Reset() { + *x = ListChangesetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListChangesetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListChangesetsRequest) ProtoMessage() {} + +func (x *ListChangesetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListChangesetsRequest.ProtoReflect.Descriptor instead. +func (*ListChangesetsRequest) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{8} +} + +func (x *ListChangesetsRequest) GetLimit() int64 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *ListChangesetsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +type ListChangesetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Changesets []*ChangesetDetails `protobuf:"bytes,1,rep,name=changesets,proto3" json:"changesets,omitempty"` + CurrentlyDeployedChangesetId *string `protobuf:"bytes,2,opt,name=currently_deployed_changeset_id,json=currentlyDeployedChangesetId,proto3,oneof" json:"currently_deployed_changeset_id,omitempty"` + PreviouslyDeployedChangesetId *string `protobuf:"bytes,3,opt,name=previously_deployed_changeset_id,json=previouslyDeployedChangesetId,proto3,oneof" json:"previously_deployed_changeset_id,omitempty"` +} + +func (x *ListChangesetsResponse) Reset() { + *x = ListChangesetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListChangesetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListChangesetsResponse) ProtoMessage() {} + +func (x *ListChangesetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListChangesetsResponse.ProtoReflect.Descriptor instead. +func (*ListChangesetsResponse) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{9} +} + +func (x *ListChangesetsResponse) GetChangesets() []*ChangesetDetails { + if x != nil { + return x.Changesets + } + return nil +} + +func (x *ListChangesetsResponse) GetCurrentlyDeployedChangesetId() string { + if x != nil && x.CurrentlyDeployedChangesetId != nil { + return *x.CurrentlyDeployedChangesetId + } + return "" +} + +func (x *ListChangesetsResponse) GetPreviouslyDeployedChangesetId() string { + if x != nil && x.PreviouslyDeployedChangesetId != nil { + return *x.PreviouslyDeployedChangesetId + } + return "" +} + +type ChangesetDetails_Approver struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + ApprovedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=approved_at,json=approvedAt,proto3" json:"approved_at,omitempty"` +} + +func (x *ChangesetDetails_Approver) Reset() { + *x = ChangesetDetails_Approver{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangesetDetails_Approver) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangesetDetails_Approver) ProtoMessage() {} + +func (x *ChangesetDetails_Approver) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ChangesetDetails_Approver.ProtoReflect.Descriptor instead. +func (*ChangesetDetails_Approver) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *ChangesetDetails_Approver) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ChangesetDetails_Approver) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *ChangesetDetails_Approver) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *ChangesetDetails_Approver) GetApprovedAt() *timestamppb.Timestamp { + if x != nil { + return x.ApprovedAt + } + return nil +} + +type DiffChangesetResponse_Record struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` +} + +func (x *DiffChangesetResponse_Record) Reset() { + *x = DiffChangesetResponse_Record{} + if protoimpl.UnsafeEnabled { + mi := &file_changesets_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DiffChangesetResponse_Record) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiffChangesetResponse_Record) ProtoMessage() {} + +func (x *DiffChangesetResponse_Record) ProtoReflect() protoreflect.Message { + mi := &file_changesets_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiffChangesetResponse_Record.ProtoReflect.Descriptor instead. +func (*DiffChangesetResponse_Record) Descriptor() ([]byte, []int) { + return file_changesets_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *DiffChangesetResponse_Record) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *DiffChangesetResponse_Record) GetJson() string { + if x != nil { + return x.Json + } + return "" +} + +var File_changesets_proto protoreflect.FileDescriptor + +var file_changesets_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x12, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5f, 0x6c, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x01, 0x0a, 0x09, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, + 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x41, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x0f, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x6d, 0x64, 0x35, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x4d, 0x64, 0x35, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x14, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x65, 0x74, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, + 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0xc6, + 0x05, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, + 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x64, + 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x64, 0x65, + 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x41, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x61, 0x70, 0x70, 0x72, + 0x6f, 0x76, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x09, 0x61, 0x70, 0x70, 0x72, + 0x6f, 0x76, 0x65, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x64, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, + 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x61, 0x6e, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0a, 0x63, 0x61, 0x6e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x63, 0x61, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x12, 0x21, 0x0a, + 0x0c, 0x63, 0x61, 0x6e, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, + 0x12, 0x4a, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x69, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0a, 0x6c, + 0x61, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x1a, 0x90, 0x01, 0x0a, 0x08, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, + 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x3b, 0x0a, 0x0b, 0x61, 0x70, + 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x61, 0x70, 0x70, + 0x72, 0x6f, 0x76, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x3c, 0x0a, 0x17, 0x41, 0x70, 0x70, 0x72, 0x6f, + 0x76, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x16, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, + 0x49, 0x64, 0x22, 0x39, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0xa8, 0x02, + 0x0a, 0x15, 0x44, 0x69, 0x66, 0x66, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x21, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, + 0x6c, 0x79, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x1a, 0x2c, 0x0a, 0x06, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x42, 0x79, 0x22, 0xc1, 0x02, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, + 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x1f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, + 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x1c, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, + 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x4c, 0x0a, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x5f, 0x64, 0x65, + 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x1d, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x22, 0x0a, + 0x20, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x6c, 0x79, 0x5f, 0x64, 0x65, 0x70, 0x6c, + 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x42, 0x23, 0x0a, 0x21, 0x5f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x6c, 0x79, + 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x32, 0xd6, 0x03, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x10, 0x41, + 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, + 0x2b, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x55, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x70, + 0x6c, 0x6f, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x64, 0x0a, 0x0d, 0x44, + 0x69, 0x66, 0x66, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x70, + 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, + 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x69, 0x66, 0x66, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x67, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, + 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x11, 0x52, 0x6f, + 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x12, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, + 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_changesets_proto_rawDescOnce sync.Once + file_changesets_proto_rawDescData = file_changesets_proto_rawDesc +) + +func file_changesets_proto_rawDescGZIP() []byte { + file_changesets_proto_rawDescOnce.Do(func() { + file_changesets_proto_rawDescData = protoimpl.X.CompressGZIP(file_changesets_proto_rawDescData) + }) + return file_changesets_proto_rawDescData +} + +var file_changesets_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_changesets_proto_goTypes = []any{ + (*Changeset)(nil), // 0: pomerium.dashboard.Changeset + (*ChangesetRecord)(nil), // 1: pomerium.dashboard.ChangesetRecord + (*ChangesetWithRecords)(nil), // 2: pomerium.dashboard.ChangesetWithRecords + (*ChangesetDetails)(nil), // 3: pomerium.dashboard.ChangesetDetails + (*ApproveChangesetRequest)(nil), // 4: pomerium.dashboard.ApproveChangesetRequest + (*DeployChangesetRequest)(nil), // 5: pomerium.dashboard.DeployChangesetRequest + (*DiffChangesetRequest)(nil), // 6: pomerium.dashboard.DiffChangesetRequest + (*DiffChangesetResponse)(nil), // 7: pomerium.dashboard.DiffChangesetResponse + (*ListChangesetsRequest)(nil), // 8: pomerium.dashboard.ListChangesetsRequest + (*ListChangesetsResponse)(nil), // 9: pomerium.dashboard.ListChangesetsResponse + (*ChangesetDetails_Approver)(nil), // 10: pomerium.dashboard.ChangesetDetails.Approver + (*DiffChangesetResponse_Record)(nil), // 11: pomerium.dashboard.DiffChangesetResponse.Record + (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp + (*ActivityLogEntry)(nil), // 13: pomerium.dashboard.ActivityLogEntry + (*emptypb.Empty)(nil), // 14: google.protobuf.Empty +} +var file_changesets_proto_depIdxs = []int32{ + 12, // 0: pomerium.dashboard.Changeset.created_at:type_name -> google.protobuf.Timestamp + 12, // 1: pomerium.dashboard.Changeset.modified_at:type_name -> google.protobuf.Timestamp + 12, // 2: pomerium.dashboard.Changeset.deployed_at:type_name -> google.protobuf.Timestamp + 0, // 3: pomerium.dashboard.ChangesetWithRecords.changeset:type_name -> pomerium.dashboard.Changeset + 1, // 4: pomerium.dashboard.ChangesetWithRecords.records:type_name -> pomerium.dashboard.ChangesetRecord + 12, // 5: pomerium.dashboard.ChangesetDetails.created_at:type_name -> google.protobuf.Timestamp + 12, // 6: pomerium.dashboard.ChangesetDetails.modified_at:type_name -> google.protobuf.Timestamp + 12, // 7: pomerium.dashboard.ChangesetDetails.deployed_at:type_name -> google.protobuf.Timestamp + 10, // 8: pomerium.dashboard.ChangesetDetails.approvers:type_name -> pomerium.dashboard.ChangesetDetails.Approver + 13, // 9: pomerium.dashboard.ChangesetDetails.last_change:type_name -> pomerium.dashboard.ActivityLogEntry + 11, // 10: pomerium.dashboard.DiffChangesetResponse.changeset_records:type_name -> pomerium.dashboard.DiffChangesetResponse.Record + 11, // 11: pomerium.dashboard.DiffChangesetResponse.currently_deployed_changeset_records:type_name -> pomerium.dashboard.DiffChangesetResponse.Record + 3, // 12: pomerium.dashboard.ListChangesetsResponse.changesets:type_name -> pomerium.dashboard.ChangesetDetails + 12, // 13: pomerium.dashboard.ChangesetDetails.Approver.approved_at:type_name -> google.protobuf.Timestamp + 4, // 14: pomerium.dashboard.ChangesetService.ApproveChangeset:input_type -> pomerium.dashboard.ApproveChangesetRequest + 5, // 15: pomerium.dashboard.ChangesetService.DeployChangeset:input_type -> pomerium.dashboard.DeployChangesetRequest + 6, // 16: pomerium.dashboard.ChangesetService.DiffChangeset:input_type -> pomerium.dashboard.DiffChangesetRequest + 8, // 17: pomerium.dashboard.ChangesetService.ListChangesets:input_type -> pomerium.dashboard.ListChangesetsRequest + 14, // 18: pomerium.dashboard.ChangesetService.RollbackChangeset:input_type -> google.protobuf.Empty + 14, // 19: pomerium.dashboard.ChangesetService.ApproveChangeset:output_type -> google.protobuf.Empty + 14, // 20: pomerium.dashboard.ChangesetService.DeployChangeset:output_type -> google.protobuf.Empty + 7, // 21: pomerium.dashboard.ChangesetService.DiffChangeset:output_type -> pomerium.dashboard.DiffChangesetResponse + 9, // 22: pomerium.dashboard.ChangesetService.ListChangesets:output_type -> pomerium.dashboard.ListChangesetsResponse + 14, // 23: pomerium.dashboard.ChangesetService.RollbackChangeset:output_type -> google.protobuf.Empty + 19, // [19:24] is the sub-list for method output_type + 14, // [14:19] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_changesets_proto_init() } +func file_changesets_proto_init() { + if File_changesets_proto != nil { + return + } + file_activity_log_proto_init() + if !protoimpl.UnsafeEnabled { + file_changesets_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*Changeset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*ChangesetRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*ChangesetWithRecords); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*ChangesetDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*ApproveChangesetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*DeployChangesetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[6].Exporter = func(v any, i int) any { + switch v := v.(*DiffChangesetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[7].Exporter = func(v any, i int) any { + switch v := v.(*DiffChangesetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[8].Exporter = func(v any, i int) any { + switch v := v.(*ListChangesetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[9].Exporter = func(v any, i int) any { + switch v := v.(*ListChangesetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[10].Exporter = func(v any, i int) any { + switch v := v.(*ChangesetDetails_Approver); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_changesets_proto_msgTypes[11].Exporter = func(v any, i int) any { + switch v := v.(*DiffChangesetResponse_Record); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_changesets_proto_msgTypes[3].OneofWrappers = []any{} + file_changesets_proto_msgTypes[9].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_changesets_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_changesets_proto_goTypes, + DependencyIndexes: file_changesets_proto_depIdxs, + MessageInfos: file_changesets_proto_msgTypes, + }.Build() + File_changesets_proto = out.File + file_changesets_proto_rawDesc = nil + file_changesets_proto_goTypes = nil + file_changesets_proto_depIdxs = nil +} diff --git a/pb/changesets_grpc.pb.go b/pb/changesets_grpc.pb.go new file mode 100644 index 0000000..aa99451 --- /dev/null +++ b/pb/changesets_grpc.pb.go @@ -0,0 +1,272 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: changesets.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ChangesetService_ApproveChangeset_FullMethodName = "/pomerium.dashboard.ChangesetService/ApproveChangeset" + ChangesetService_DeployChangeset_FullMethodName = "/pomerium.dashboard.ChangesetService/DeployChangeset" + ChangesetService_DiffChangeset_FullMethodName = "/pomerium.dashboard.ChangesetService/DiffChangeset" + ChangesetService_ListChangesets_FullMethodName = "/pomerium.dashboard.ChangesetService/ListChangesets" + ChangesetService_RollbackChangeset_FullMethodName = "/pomerium.dashboard.ChangesetService/RollbackChangeset" +) + +// ChangesetServiceClient is the client API for ChangesetService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ChangesetServiceClient interface { + ApproveChangeset(ctx context.Context, in *ApproveChangesetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeployChangeset(ctx context.Context, in *DeployChangesetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DiffChangeset(ctx context.Context, in *DiffChangesetRequest, opts ...grpc.CallOption) (*DiffChangesetResponse, error) + ListChangesets(ctx context.Context, in *ListChangesetsRequest, opts ...grpc.CallOption) (*ListChangesetsResponse, error) + RollbackChangeset(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type changesetServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewChangesetServiceClient(cc grpc.ClientConnInterface) ChangesetServiceClient { + return &changesetServiceClient{cc} +} + +func (c *changesetServiceClient) ApproveChangeset(ctx context.Context, in *ApproveChangesetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, ChangesetService_ApproveChangeset_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *changesetServiceClient) DeployChangeset(ctx context.Context, in *DeployChangesetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, ChangesetService_DeployChangeset_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *changesetServiceClient) DiffChangeset(ctx context.Context, in *DiffChangesetRequest, opts ...grpc.CallOption) (*DiffChangesetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DiffChangesetResponse) + err := c.cc.Invoke(ctx, ChangesetService_DiffChangeset_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *changesetServiceClient) ListChangesets(ctx context.Context, in *ListChangesetsRequest, opts ...grpc.CallOption) (*ListChangesetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListChangesetsResponse) + err := c.cc.Invoke(ctx, ChangesetService_ListChangesets_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *changesetServiceClient) RollbackChangeset(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, ChangesetService_RollbackChangeset_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ChangesetServiceServer is the server API for ChangesetService service. +// All implementations should embed UnimplementedChangesetServiceServer +// for forward compatibility. +type ChangesetServiceServer interface { + ApproveChangeset(context.Context, *ApproveChangesetRequest) (*emptypb.Empty, error) + DeployChangeset(context.Context, *DeployChangesetRequest) (*emptypb.Empty, error) + DiffChangeset(context.Context, *DiffChangesetRequest) (*DiffChangesetResponse, error) + ListChangesets(context.Context, *ListChangesetsRequest) (*ListChangesetsResponse, error) + RollbackChangeset(context.Context, *emptypb.Empty) (*emptypb.Empty, error) +} + +// UnimplementedChangesetServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedChangesetServiceServer struct{} + +func (UnimplementedChangesetServiceServer) ApproveChangeset(context.Context, *ApproveChangesetRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApproveChangeset not implemented") +} +func (UnimplementedChangesetServiceServer) DeployChangeset(context.Context, *DeployChangesetRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeployChangeset not implemented") +} +func (UnimplementedChangesetServiceServer) DiffChangeset(context.Context, *DiffChangesetRequest) (*DiffChangesetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DiffChangeset not implemented") +} +func (UnimplementedChangesetServiceServer) ListChangesets(context.Context, *ListChangesetsRequest) (*ListChangesetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListChangesets not implemented") +} +func (UnimplementedChangesetServiceServer) RollbackChangeset(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method RollbackChangeset not implemented") +} +func (UnimplementedChangesetServiceServer) testEmbeddedByValue() {} + +// UnsafeChangesetServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ChangesetServiceServer will +// result in compilation errors. +type UnsafeChangesetServiceServer interface { + mustEmbedUnimplementedChangesetServiceServer() +} + +func RegisterChangesetServiceServer(s grpc.ServiceRegistrar, srv ChangesetServiceServer) { + // If the following call pancis, it indicates UnimplementedChangesetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ChangesetService_ServiceDesc, srv) +} + +func _ChangesetService_ApproveChangeset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApproveChangesetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChangesetServiceServer).ApproveChangeset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ChangesetService_ApproveChangeset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChangesetServiceServer).ApproveChangeset(ctx, req.(*ApproveChangesetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ChangesetService_DeployChangeset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeployChangesetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChangesetServiceServer).DeployChangeset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ChangesetService_DeployChangeset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChangesetServiceServer).DeployChangeset(ctx, req.(*DeployChangesetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ChangesetService_DiffChangeset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DiffChangesetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChangesetServiceServer).DiffChangeset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ChangesetService_DiffChangeset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChangesetServiceServer).DiffChangeset(ctx, req.(*DiffChangesetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ChangesetService_ListChangesets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListChangesetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChangesetServiceServer).ListChangesets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ChangesetService_ListChangesets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChangesetServiceServer).ListChangesets(ctx, req.(*ListChangesetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ChangesetService_RollbackChangeset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChangesetServiceServer).RollbackChangeset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ChangesetService_RollbackChangeset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChangesetServiceServer).RollbackChangeset(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +// ChangesetService_ServiceDesc is the grpc.ServiceDesc for ChangesetService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ChangesetService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.ChangesetService", + HandlerType: (*ChangesetServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ApproveChangeset", + Handler: _ChangesetService_ApproveChangeset_Handler, + }, + { + MethodName: "DeployChangeset", + Handler: _ChangesetService_DeployChangeset_Handler, + }, + { + MethodName: "DiffChangeset", + Handler: _ChangesetService_DiffChangeset_Handler, + }, + { + MethodName: "ListChangesets", + Handler: _ChangesetService_ListChangesets_Handler, + }, + { + MethodName: "RollbackChangeset", + Handler: _ChangesetService_RollbackChangeset_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "changesets.proto", +} diff --git a/pb/console_config.pb.go b/pb/console_config.pb.go index b14fe4c..87774f6 100644 --- a/pb/console_config.pb.go +++ b/pb/console_config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: console_config.proto package pb @@ -147,7 +147,7 @@ func file_console_config_proto_rawDescGZIP() []byte { } var file_console_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_console_config_proto_goTypes = []interface{}{ +var file_console_config_proto_goTypes = []any{ (*ConsoleConfig)(nil), // 0: pomerium.dashboard.ConsoleConfig (*KeyPair)(nil), // 1: pomerium.dashboard.KeyPair (*Namespace)(nil), // 2: pomerium.dashboard.Namespace @@ -179,7 +179,7 @@ func file_console_config_proto_init() { file_routes_proto_init() file_settings_proto_init() if !protoimpl.UnsafeEnabled { - file_console_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_console_config_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ConsoleConfig); i { case 0: return &v.state diff --git a/pb/console_last_error.pb.go b/pb/console_last_error.pb.go new file mode 100644 index 0000000..bc8985f --- /dev/null +++ b/pb/console_last_error.pb.go @@ -0,0 +1,427 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.2 +// protoc v3.20.3 +// source: console_last_error.proto + +package pb + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type LastError_Service int32 + +const ( + LastError_UNKNOWN LastError_Service = 0 + LastError_EXTERNAL_DATA_SOURCE LastError_Service = 1 +) + +// Enum value maps for LastError_Service. +var ( + LastError_Service_name = map[int32]string{ + 0: "UNKNOWN", + 1: "EXTERNAL_DATA_SOURCE", + } + LastError_Service_value = map[string]int32{ + "UNKNOWN": 0, + "EXTERNAL_DATA_SOURCE": 1, + } +) + +func (x LastError_Service) Enum() *LastError_Service { + p := new(LastError_Service) + *p = x + return p +} + +func (x LastError_Service) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LastError_Service) Descriptor() protoreflect.EnumDescriptor { + return file_console_last_error_proto_enumTypes[0].Descriptor() +} + +func (LastError_Service) Type() protoreflect.EnumType { + return &file_console_last_error_proto_enumTypes[0] +} + +func (x LastError_Service) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LastError_Service.Descriptor instead. +func (LastError_Service) EnumDescriptor() ([]byte, []int) { + return file_console_last_error_proto_rawDescGZIP(), []int{0, 0} +} + +type LastError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Service LastError_Service `protobuf:"varint,1,opt,name=service,proto3,enum=pomerium.dashboard.LastError_Service" json:"service,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ContentType *string `protobuf:"bytes,6,opt,name=content_type,json=contentType,proto3,oneof" json:"content_type,omitempty"` + Data []byte `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *LastError) Reset() { + *x = LastError{} + if protoimpl.UnsafeEnabled { + mi := &file_console_last_error_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LastError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LastError) ProtoMessage() {} + +func (x *LastError) ProtoReflect() protoreflect.Message { + mi := &file_console_last_error_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LastError.ProtoReflect.Descriptor instead. +func (*LastError) Descriptor() ([]byte, []int) { + return file_console_last_error_proto_rawDescGZIP(), []int{0} +} + +func (x *LastError) GetService() LastError_Service { + if x != nil { + return x.Service + } + return LastError_UNKNOWN +} + +func (x *LastError) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *LastError) GetTime() *timestamppb.Timestamp { + if x != nil { + return x.Time + } + return nil +} + +func (x *LastError) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *LastError) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *LastError) GetContentType() string { + if x != nil && x.ContentType != nil { + return *x.ContentType + } + return "" +} + +func (x *LastError) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +type GetLastErrorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Service LastError_Service `protobuf:"varint,1,opt,name=service,proto3,enum=pomerium.dashboard.LastError_Service" json:"service,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetLastErrorRequest) Reset() { + *x = GetLastErrorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_console_last_error_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLastErrorRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLastErrorRequest) ProtoMessage() {} + +func (x *GetLastErrorRequest) ProtoReflect() protoreflect.Message { + mi := &file_console_last_error_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLastErrorRequest.ProtoReflect.Descriptor instead. +func (*GetLastErrorRequest) Descriptor() ([]byte, []int) { + return file_console_last_error_proto_rawDescGZIP(), []int{1} +} + +func (x *GetLastErrorRequest) GetService() LastError_Service { + if x != nil { + return x.Service + } + return LastError_UNKNOWN +} + +func (x *GetLastErrorRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetLastErrorResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LastError *LastError `protobuf:"bytes,1,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` +} + +func (x *GetLastErrorResponse) Reset() { + *x = GetLastErrorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_console_last_error_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLastErrorResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLastErrorResponse) ProtoMessage() {} + +func (x *GetLastErrorResponse) ProtoReflect() protoreflect.Message { + mi := &file_console_last_error_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLastErrorResponse.ProtoReflect.Descriptor instead. +func (*GetLastErrorResponse) Descriptor() ([]byte, []int) { + return file_console_last_error_proto_rawDescGZIP(), []int{2} +} + +func (x *GetLastErrorResponse) GetLastError() *LastError { + if x != nil { + return x.LastError + } + return nil +} + +var File_console_last_error_proto protoreflect.FileDescriptor + +var file_console_last_error_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xab, 0x03, 0x0a, 0x09, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3f, 0x0a, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, + 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, + 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x6f, 0x6d, + 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, + 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, + 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x30, 0x0a, 0x07, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x58, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x44, + 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x01, 0x42, 0x0f, 0x0a, 0x0d, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x66, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x54, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, + 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x75, 0x0a, 0x10, 0x4c, + 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x61, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, + 0x74, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_console_last_error_proto_rawDescOnce sync.Once + file_console_last_error_proto_rawDescData = file_console_last_error_proto_rawDesc +) + +func file_console_last_error_proto_rawDescGZIP() []byte { + file_console_last_error_proto_rawDescOnce.Do(func() { + file_console_last_error_proto_rawDescData = protoimpl.X.CompressGZIP(file_console_last_error_proto_rawDescData) + }) + return file_console_last_error_proto_rawDescData +} + +var file_console_last_error_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_console_last_error_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_console_last_error_proto_goTypes = []any{ + (LastError_Service)(0), // 0: pomerium.dashboard.LastError.Service + (*LastError)(nil), // 1: pomerium.dashboard.LastError + (*GetLastErrorRequest)(nil), // 2: pomerium.dashboard.GetLastErrorRequest + (*GetLastErrorResponse)(nil), // 3: pomerium.dashboard.GetLastErrorResponse + nil, // 4: pomerium.dashboard.LastError.MetadataEntry + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp +} +var file_console_last_error_proto_depIdxs = []int32{ + 0, // 0: pomerium.dashboard.LastError.service:type_name -> pomerium.dashboard.LastError.Service + 5, // 1: pomerium.dashboard.LastError.time:type_name -> google.protobuf.Timestamp + 4, // 2: pomerium.dashboard.LastError.metadata:type_name -> pomerium.dashboard.LastError.MetadataEntry + 0, // 3: pomerium.dashboard.GetLastErrorRequest.service:type_name -> pomerium.dashboard.LastError.Service + 1, // 4: pomerium.dashboard.GetLastErrorResponse.last_error:type_name -> pomerium.dashboard.LastError + 2, // 5: pomerium.dashboard.LastErrorService.GetLastError:input_type -> pomerium.dashboard.GetLastErrorRequest + 3, // 6: pomerium.dashboard.LastErrorService.GetLastError:output_type -> pomerium.dashboard.GetLastErrorResponse + 6, // [6:7] is the sub-list for method output_type + 5, // [5:6] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_console_last_error_proto_init() } +func file_console_last_error_proto_init() { + if File_console_last_error_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_console_last_error_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*LastError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_console_last_error_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*GetLastErrorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_console_last_error_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*GetLastErrorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_console_last_error_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_console_last_error_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_console_last_error_proto_goTypes, + DependencyIndexes: file_console_last_error_proto_depIdxs, + EnumInfos: file_console_last_error_proto_enumTypes, + MessageInfos: file_console_last_error_proto_msgTypes, + }.Build() + File_console_last_error_proto = out.File + file_console_last_error_proto_rawDesc = nil + file_console_last_error_proto_goTypes = nil + file_console_last_error_proto_depIdxs = nil +} diff --git a/pb/console_last_error_grpc.pb.go b/pb/console_last_error_grpc.pb.go new file mode 100644 index 0000000..7e55831 --- /dev/null +++ b/pb/console_last_error_grpc.pb.go @@ -0,0 +1,119 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: console_last_error.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + LastErrorService_GetLastError_FullMethodName = "/pomerium.dashboard.LastErrorService/GetLastError" +) + +// LastErrorServiceClient is the client API for LastErrorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type LastErrorServiceClient interface { + GetLastError(ctx context.Context, in *GetLastErrorRequest, opts ...grpc.CallOption) (*GetLastErrorResponse, error) +} + +type lastErrorServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewLastErrorServiceClient(cc grpc.ClientConnInterface) LastErrorServiceClient { + return &lastErrorServiceClient{cc} +} + +func (c *lastErrorServiceClient) GetLastError(ctx context.Context, in *GetLastErrorRequest, opts ...grpc.CallOption) (*GetLastErrorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetLastErrorResponse) + err := c.cc.Invoke(ctx, LastErrorService_GetLastError_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// LastErrorServiceServer is the server API for LastErrorService service. +// All implementations should embed UnimplementedLastErrorServiceServer +// for forward compatibility. +type LastErrorServiceServer interface { + GetLastError(context.Context, *GetLastErrorRequest) (*GetLastErrorResponse, error) +} + +// UnimplementedLastErrorServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLastErrorServiceServer struct{} + +func (UnimplementedLastErrorServiceServer) GetLastError(context.Context, *GetLastErrorRequest) (*GetLastErrorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLastError not implemented") +} +func (UnimplementedLastErrorServiceServer) testEmbeddedByValue() {} + +// UnsafeLastErrorServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to LastErrorServiceServer will +// result in compilation errors. +type UnsafeLastErrorServiceServer interface { + mustEmbedUnimplementedLastErrorServiceServer() +} + +func RegisterLastErrorServiceServer(s grpc.ServiceRegistrar, srv LastErrorServiceServer) { + // If the following call pancis, it indicates UnimplementedLastErrorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&LastErrorService_ServiceDesc, srv) +} + +func _LastErrorService_GetLastError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLastErrorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(LastErrorServiceServer).GetLastError(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: LastErrorService_GetLastError_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(LastErrorServiceServer).GetLastError(ctx, req.(*GetLastErrorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// LastErrorService_ServiceDesc is the grpc.ServiceDesc for LastErrorService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var LastErrorService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.LastErrorService", + HandlerType: (*LastErrorServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetLastError", + Handler: _LastErrorService_GetLastError_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "console_last_error.proto", +} diff --git a/pb/databroker_svc.pb.go b/pb/databroker_svc.pb.go index 7a085a4..e904cee 100644 --- a/pb/databroker_svc.pb.go +++ b/pb/databroker_svc.pb.go @@ -1,20 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: databroker_svc.proto package pb import ( - context "context" databroker "github.com/pomerium/pomerium/pkg/grpc/databroker" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" + structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" sync "sync" ) @@ -167,6 +164,193 @@ func (x *ListDataBrokerRecordTypesResponse) GetRecordTypes() []string { return nil } +type QueryDataBrokerRecordsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RecordType string `protobuf:"bytes,1,opt,name=record_type,json=recordType,proto3" json:"record_type,omitempty"` + // look up records with any fields that match the query + Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` + // list records starting from an offset in the total list + Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + // list records up to a limit + Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (x *QueryDataBrokerRecordsRequest) Reset() { + *x = QueryDataBrokerRecordsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_databroker_svc_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDataBrokerRecordsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDataBrokerRecordsRequest) ProtoMessage() {} + +func (x *QueryDataBrokerRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_databroker_svc_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryDataBrokerRecordsRequest.ProtoReflect.Descriptor instead. +func (*QueryDataBrokerRecordsRequest) Descriptor() ([]byte, []int) { + return file_databroker_svc_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryDataBrokerRecordsRequest) GetRecordType() string { + if x != nil { + return x.RecordType + } + return "" +} + +func (x *QueryDataBrokerRecordsRequest) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +func (x *QueryDataBrokerRecordsRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *QueryDataBrokerRecordsRequest) GetLimit() int64 { + if x != nil { + return x.Limit + } + return 0 +} + +type Record struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Record ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Record properties + Properties *structpb.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` +} + +func (x *Record) Reset() { + *x = Record{} + if protoimpl.UnsafeEnabled { + mi := &file_databroker_svc_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Record) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Record) ProtoMessage() {} + +func (x *Record) ProtoReflect() protoreflect.Message { + mi := &file_databroker_svc_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Record.ProtoReflect.Descriptor instead. +func (*Record) Descriptor() ([]byte, []int) { + return file_databroker_svc_proto_rawDescGZIP(), []int{4} +} + +func (x *Record) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Record) GetProperties() *structpb.Struct { + if x != nil { + return x.Properties + } + return nil +} + +type QueryDataBrokerRecordsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maps record IDs to record properties + Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` + TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` +} + +func (x *QueryDataBrokerRecordsResponse) Reset() { + *x = QueryDataBrokerRecordsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_databroker_svc_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDataBrokerRecordsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDataBrokerRecordsResponse) ProtoMessage() {} + +func (x *QueryDataBrokerRecordsResponse) ProtoReflect() protoreflect.Message { + mi := &file_databroker_svc_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QueryDataBrokerRecordsResponse.ProtoReflect.Descriptor instead. +func (*QueryDataBrokerRecordsResponse) Descriptor() ([]byte, []int) { + return file_databroker_svc_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryDataBrokerRecordsResponse) GetRecords() []*Record { + if x != nil { + return x.Records + } + return nil +} + +func (x *QueryDataBrokerRecordsResponse) GetTotalCount() int64 { + if x != nil { + return x.TotalCount + } + return 0 +} + var File_databroker_svc_proto protoreflect.FileDescriptor var file_databroker_svc_proto_rawDesc = []byte{ @@ -178,40 +362,71 @@ var file_databroker_svc_proto_rawDesc = []byte{ 0x63, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, - 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x1c, 0x4c, 0x69, - 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4d, 0x0a, 0x1d, 0x4c, - 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x46, 0x0a, 0x21, 0x4c, 0x69, - 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x32, 0xf6, 0x01, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, - 0x72, 0x12, 0x7c, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, - 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x6f, 0x6d, - 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x70, - 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6a, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, - 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x35, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, - 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4d, 0x0a, 0x1d, 0x4c, 0x69, 0x73, + 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x72, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, + 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x46, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, + 0x0c, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x22, 0x84, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, + 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, + 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x51, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x37, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, + 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x22, 0x77, 0x0a, 0x1e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x32, 0xf7, 0x02, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, + 0x65, 0x72, 0x12, 0x7c, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, + 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x30, 0x2e, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, + 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6a, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, + 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x35, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, + 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x16, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x31, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, + 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, + 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -226,25 +441,33 @@ func file_databroker_svc_proto_rawDescGZIP() []byte { return file_databroker_svc_proto_rawDescData } -var file_databroker_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_databroker_svc_proto_goTypes = []interface{}{ +var file_databroker_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_databroker_svc_proto_goTypes = []any{ (*ListDataBrokerRecordsRequest)(nil), // 0: pomerium.dashboard.ListDataBrokerRecordsRequest (*ListDataBrokerRecordsResponse)(nil), // 1: pomerium.dashboard.ListDataBrokerRecordsResponse (*ListDataBrokerRecordTypesResponse)(nil), // 2: pomerium.dashboard.ListDataBrokerRecordTypesResponse - (*databroker.Record)(nil), // 3: databroker.Record - (*emptypb.Empty)(nil), // 4: google.protobuf.Empty + (*QueryDataBrokerRecordsRequest)(nil), // 3: pomerium.dashboard.QueryDataBrokerRecordsRequest + (*Record)(nil), // 4: pomerium.dashboard.Record + (*QueryDataBrokerRecordsResponse)(nil), // 5: pomerium.dashboard.QueryDataBrokerRecordsResponse + (*databroker.Record)(nil), // 6: databroker.Record + (*structpb.Struct)(nil), // 7: google.protobuf.Struct + (*emptypb.Empty)(nil), // 8: google.protobuf.Empty } var file_databroker_svc_proto_depIdxs = []int32{ - 3, // 0: pomerium.dashboard.ListDataBrokerRecordsResponse.records:type_name -> databroker.Record - 0, // 1: pomerium.dashboard.DataBroker.ListDataBrokerRecords:input_type -> pomerium.dashboard.ListDataBrokerRecordsRequest - 4, // 2: pomerium.dashboard.DataBroker.ListDataBrokerRecordTypes:input_type -> google.protobuf.Empty - 1, // 3: pomerium.dashboard.DataBroker.ListDataBrokerRecords:output_type -> pomerium.dashboard.ListDataBrokerRecordsResponse - 2, // 4: pomerium.dashboard.DataBroker.ListDataBrokerRecordTypes:output_type -> pomerium.dashboard.ListDataBrokerRecordTypesResponse - 3, // [3:5] is the sub-list for method output_type - 1, // [1:3] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 6, // 0: pomerium.dashboard.ListDataBrokerRecordsResponse.records:type_name -> databroker.Record + 7, // 1: pomerium.dashboard.Record.properties:type_name -> google.protobuf.Struct + 4, // 2: pomerium.dashboard.QueryDataBrokerRecordsResponse.records:type_name -> pomerium.dashboard.Record + 0, // 3: pomerium.dashboard.DataBroker.ListDataBrokerRecords:input_type -> pomerium.dashboard.ListDataBrokerRecordsRequest + 8, // 4: pomerium.dashboard.DataBroker.ListDataBrokerRecordTypes:input_type -> google.protobuf.Empty + 3, // 5: pomerium.dashboard.DataBroker.QueryDataBrokerRecords:input_type -> pomerium.dashboard.QueryDataBrokerRecordsRequest + 1, // 6: pomerium.dashboard.DataBroker.ListDataBrokerRecords:output_type -> pomerium.dashboard.ListDataBrokerRecordsResponse + 2, // 7: pomerium.dashboard.DataBroker.ListDataBrokerRecordTypes:output_type -> pomerium.dashboard.ListDataBrokerRecordTypesResponse + 5, // 8: pomerium.dashboard.DataBroker.QueryDataBrokerRecords:output_type -> pomerium.dashboard.QueryDataBrokerRecordsResponse + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_databroker_svc_proto_init() } @@ -253,7 +476,7 @@ func file_databroker_svc_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_databroker_svc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_databroker_svc_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ListDataBrokerRecordsRequest); i { case 0: return &v.state @@ -265,7 +488,7 @@ func file_databroker_svc_proto_init() { return nil } } - file_databroker_svc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_databroker_svc_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ListDataBrokerRecordsResponse); i { case 0: return &v.state @@ -277,7 +500,7 @@ func file_databroker_svc_proto_init() { return nil } } - file_databroker_svc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_databroker_svc_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ListDataBrokerRecordTypesResponse); i { case 0: return &v.state @@ -289,6 +512,42 @@ func file_databroker_svc_proto_init() { return nil } } + file_databroker_svc_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*QueryDataBrokerRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_databroker_svc_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*Record); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_databroker_svc_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*QueryDataBrokerRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -296,7 +555,7 @@ func file_databroker_svc_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_databroker_svc_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, @@ -309,119 +568,3 @@ func file_databroker_svc_proto_init() { file_databroker_svc_proto_goTypes = nil file_databroker_svc_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// DataBrokerClient is the client API for DataBroker service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DataBrokerClient interface { - ListDataBrokerRecords(ctx context.Context, in *ListDataBrokerRecordsRequest, opts ...grpc.CallOption) (*ListDataBrokerRecordsResponse, error) - ListDataBrokerRecordTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDataBrokerRecordTypesResponse, error) -} - -type dataBrokerClient struct { - cc grpc.ClientConnInterface -} - -func NewDataBrokerClient(cc grpc.ClientConnInterface) DataBrokerClient { - return &dataBrokerClient{cc} -} - -func (c *dataBrokerClient) ListDataBrokerRecords(ctx context.Context, in *ListDataBrokerRecordsRequest, opts ...grpc.CallOption) (*ListDataBrokerRecordsResponse, error) { - out := new(ListDataBrokerRecordsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DataBroker/ListDataBrokerRecords", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataBrokerClient) ListDataBrokerRecordTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDataBrokerRecordTypesResponse, error) { - out := new(ListDataBrokerRecordTypesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DataBroker/ListDataBrokerRecordTypes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DataBrokerServer is the server API for DataBroker service. -type DataBrokerServer interface { - ListDataBrokerRecords(context.Context, *ListDataBrokerRecordsRequest) (*ListDataBrokerRecordsResponse, error) - ListDataBrokerRecordTypes(context.Context, *emptypb.Empty) (*ListDataBrokerRecordTypesResponse, error) -} - -// UnimplementedDataBrokerServer can be embedded to have forward compatible implementations. -type UnimplementedDataBrokerServer struct { -} - -func (*UnimplementedDataBrokerServer) ListDataBrokerRecords(context.Context, *ListDataBrokerRecordsRequest) (*ListDataBrokerRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDataBrokerRecords not implemented") -} -func (*UnimplementedDataBrokerServer) ListDataBrokerRecordTypes(context.Context, *emptypb.Empty) (*ListDataBrokerRecordTypesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDataBrokerRecordTypes not implemented") -} - -func RegisterDataBrokerServer(s *grpc.Server, srv DataBrokerServer) { - s.RegisterService(&_DataBroker_serviceDesc, srv) -} - -func _DataBroker_ListDataBrokerRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListDataBrokerRecordsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataBrokerServer).ListDataBrokerRecords(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DataBroker/ListDataBrokerRecords", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataBrokerServer).ListDataBrokerRecords(ctx, req.(*ListDataBrokerRecordsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataBroker_ListDataBrokerRecordTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataBrokerServer).ListDataBrokerRecordTypes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DataBroker/ListDataBrokerRecordTypes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataBrokerServer).ListDataBrokerRecordTypes(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _DataBroker_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.DataBroker", - HandlerType: (*DataBrokerServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListDataBrokerRecords", - Handler: _DataBroker_ListDataBrokerRecords_Handler, - }, - { - MethodName: "ListDataBrokerRecordTypes", - Handler: _DataBroker_ListDataBrokerRecordTypes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "databroker_svc.proto", -} diff --git a/pb/databroker_svc_grpc.pb.go b/pb/databroker_svc_grpc.pb.go new file mode 100644 index 0000000..c500efc --- /dev/null +++ b/pb/databroker_svc_grpc.pb.go @@ -0,0 +1,196 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: databroker_svc.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + DataBroker_ListDataBrokerRecords_FullMethodName = "/pomerium.dashboard.DataBroker/ListDataBrokerRecords" + DataBroker_ListDataBrokerRecordTypes_FullMethodName = "/pomerium.dashboard.DataBroker/ListDataBrokerRecordTypes" + DataBroker_QueryDataBrokerRecords_FullMethodName = "/pomerium.dashboard.DataBroker/QueryDataBrokerRecords" +) + +// DataBrokerClient is the client API for DataBroker service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DataBrokerClient interface { + ListDataBrokerRecords(ctx context.Context, in *ListDataBrokerRecordsRequest, opts ...grpc.CallOption) (*ListDataBrokerRecordsResponse, error) + ListDataBrokerRecordTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDataBrokerRecordTypesResponse, error) + QueryDataBrokerRecords(ctx context.Context, in *QueryDataBrokerRecordsRequest, opts ...grpc.CallOption) (*QueryDataBrokerRecordsResponse, error) +} + +type dataBrokerClient struct { + cc grpc.ClientConnInterface +} + +func NewDataBrokerClient(cc grpc.ClientConnInterface) DataBrokerClient { + return &dataBrokerClient{cc} +} + +func (c *dataBrokerClient) ListDataBrokerRecords(ctx context.Context, in *ListDataBrokerRecordsRequest, opts ...grpc.CallOption) (*ListDataBrokerRecordsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDataBrokerRecordsResponse) + err := c.cc.Invoke(ctx, DataBroker_ListDataBrokerRecords_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataBrokerClient) ListDataBrokerRecordTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDataBrokerRecordTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDataBrokerRecordTypesResponse) + err := c.cc.Invoke(ctx, DataBroker_ListDataBrokerRecordTypes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataBrokerClient) QueryDataBrokerRecords(ctx context.Context, in *QueryDataBrokerRecordsRequest, opts ...grpc.CallOption) (*QueryDataBrokerRecordsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryDataBrokerRecordsResponse) + err := c.cc.Invoke(ctx, DataBroker_QueryDataBrokerRecords_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DataBrokerServer is the server API for DataBroker service. +// All implementations should embed UnimplementedDataBrokerServer +// for forward compatibility. +type DataBrokerServer interface { + ListDataBrokerRecords(context.Context, *ListDataBrokerRecordsRequest) (*ListDataBrokerRecordsResponse, error) + ListDataBrokerRecordTypes(context.Context, *emptypb.Empty) (*ListDataBrokerRecordTypesResponse, error) + QueryDataBrokerRecords(context.Context, *QueryDataBrokerRecordsRequest) (*QueryDataBrokerRecordsResponse, error) +} + +// UnimplementedDataBrokerServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataBrokerServer struct{} + +func (UnimplementedDataBrokerServer) ListDataBrokerRecords(context.Context, *ListDataBrokerRecordsRequest) (*ListDataBrokerRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDataBrokerRecords not implemented") +} +func (UnimplementedDataBrokerServer) ListDataBrokerRecordTypes(context.Context, *emptypb.Empty) (*ListDataBrokerRecordTypesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDataBrokerRecordTypes not implemented") +} +func (UnimplementedDataBrokerServer) QueryDataBrokerRecords(context.Context, *QueryDataBrokerRecordsRequest) (*QueryDataBrokerRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryDataBrokerRecords not implemented") +} +func (UnimplementedDataBrokerServer) testEmbeddedByValue() {} + +// UnsafeDataBrokerServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DataBrokerServer will +// result in compilation errors. +type UnsafeDataBrokerServer interface { + mustEmbedUnimplementedDataBrokerServer() +} + +func RegisterDataBrokerServer(s grpc.ServiceRegistrar, srv DataBrokerServer) { + // If the following call pancis, it indicates UnimplementedDataBrokerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&DataBroker_ServiceDesc, srv) +} + +func _DataBroker_ListDataBrokerRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDataBrokerRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataBrokerServer).ListDataBrokerRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataBroker_ListDataBrokerRecords_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataBrokerServer).ListDataBrokerRecords(ctx, req.(*ListDataBrokerRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataBroker_ListDataBrokerRecordTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataBrokerServer).ListDataBrokerRecordTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataBroker_ListDataBrokerRecordTypes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataBrokerServer).ListDataBrokerRecordTypes(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataBroker_QueryDataBrokerRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDataBrokerRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataBrokerServer).QueryDataBrokerRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataBroker_QueryDataBrokerRecords_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataBrokerServer).QueryDataBrokerRecords(ctx, req.(*QueryDataBrokerRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DataBroker_ServiceDesc is the grpc.ServiceDesc for DataBroker service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DataBroker_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.DataBroker", + HandlerType: (*DataBrokerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ListDataBrokerRecords", + Handler: _DataBroker_ListDataBrokerRecords_Handler, + }, + { + MethodName: "ListDataBrokerRecordTypes", + Handler: _DataBroker_ListDataBrokerRecordTypes_Handler, + }, + { + MethodName: "QueryDataBrokerRecords", + Handler: _DataBroker_QueryDataBrokerRecords_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "databroker_svc.proto", +} diff --git a/pb/devices.pb.go b/pb/devices.pb.go index 641fc13..67359cb 100644 --- a/pb/devices.pb.go +++ b/pb/devices.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: devices.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" @@ -2105,7 +2101,7 @@ func file_devices_proto_rawDescGZIP() []byte { var file_devices_proto_enumTypes = make([]protoimpl.EnumInfo, 6) var file_devices_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_devices_proto_goTypes = []interface{}{ +var file_devices_proto_goTypes = []any{ (DeviceKind)(0), // 0: pomerium.dashboard.DeviceKind (WebAuthnOptions_AttestationConveyancePreference)(0), // 1: pomerium.dashboard.WebAuthnOptions.AttestationConveyancePreference (WebAuthnOptions_AuthenticatorAttachment)(0), // 2: pomerium.dashboard.WebAuthnOptions.AuthenticatorAttachment @@ -2194,7 +2190,7 @@ func file_devices_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_devices_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*WebAuthnOptions); i { case 0: return &v.state @@ -2206,7 +2202,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DeviceType); i { case 0: return &v.state @@ -2218,7 +2214,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*DeviceEnrollment); i { case 0: return &v.state @@ -2230,7 +2226,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*DeviceCredential); i { case 0: return &v.state @@ -2242,7 +2238,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*DeviceOwnerCredentialRecord); i { case 0: return &v.state @@ -2254,7 +2250,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ApproveDeviceRequest); i { case 0: return &v.state @@ -2266,7 +2262,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*CreateDeviceEnrollmentRequest); i { case 0: return &v.state @@ -2278,7 +2274,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*CreateDeviceEnrollmentResponse); i { case 0: return &v.state @@ -2290,7 +2286,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*DeleteDeviceRequest); i { case 0: return &v.state @@ -2302,7 +2298,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*DeleteDeviceTypeRequest); i { case 0: return &v.state @@ -2314,7 +2310,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ListDevicesRequest); i { case 0: return &v.state @@ -2326,7 +2322,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ListDevicesResponse); i { case 0: return &v.state @@ -2338,7 +2334,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*ListDeviceTypesResponse); i { case 0: return &v.state @@ -2350,7 +2346,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*SetDeviceTypeRequest); i { case 0: return &v.state @@ -2362,7 +2358,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*SetDeviceTypeResponse); i { case 0: return &v.state @@ -2374,7 +2370,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*WebAuthnOptions_AuthenticatorSelectionCriteria); i { case 0: return &v.state @@ -2386,7 +2382,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*WebAuthnOptions_PublicKeyCredentialParameters); i { case 0: return &v.state @@ -2398,7 +2394,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*DeviceType_WebAuthn); i { case 0: return &v.state @@ -2410,7 +2406,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*DeviceCredential_WebAuthn); i { case 0: return &v.state @@ -2422,7 +2418,7 @@ func file_devices_proto_init() { return nil } } - file_devices_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_devices_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*ListDevicesResponse_Device); i { case 0: return &v.state @@ -2435,23 +2431,23 @@ func file_devices_proto_init() { } } } - file_devices_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_devices_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_devices_proto_msgTypes[0].OneofWrappers = []any{} + file_devices_proto_msgTypes[1].OneofWrappers = []any{ (*DeviceType_Webauthn)(nil), } - file_devices_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_devices_proto_msgTypes[3].OneofWrappers = []any{ (*DeviceCredential_Webauthn)(nil), } - file_devices_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_devices_proto_msgTypes[5].OneofWrappers = []any{ (*ApproveDeviceRequest_CredentialId)(nil), (*ApproveDeviceRequest_EnrollmentId)(nil), } - file_devices_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_devices_proto_msgTypes[8].OneofWrappers = []any{ (*DeleteDeviceRequest_CredentialId)(nil), (*DeleteDeviceRequest_EnrollmentId)(nil), } - file_devices_proto_msgTypes[10].OneofWrappers = []interface{}{} - file_devices_proto_msgTypes[15].OneofWrappers = []interface{}{} + file_devices_proto_msgTypes[10].OneofWrappers = []any{} + file_devices_proto_msgTypes[15].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -2472,299 +2468,3 @@ func file_devices_proto_init() { file_devices_proto_goTypes = nil file_devices_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// DeviceServiceClient is the client API for DeviceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DeviceServiceClient interface { - ApproveDevice(ctx context.Context, in *ApproveDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - CreateDeviceEnrollment(ctx context.Context, in *CreateDeviceEnrollmentRequest, opts ...grpc.CallOption) (*CreateDeviceEnrollmentResponse, error) - SetDeviceType(ctx context.Context, in *SetDeviceTypeRequest, opts ...grpc.CallOption) (*SetDeviceTypeResponse, error) - DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - DeleteDeviceType(ctx context.Context, in *DeleteDeviceTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) - ListDeviceTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceTypesResponse, error) -} - -type deviceServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewDeviceServiceClient(cc grpc.ClientConnInterface) DeviceServiceClient { - return &deviceServiceClient{cc} -} - -func (c *deviceServiceClient) ApproveDevice(ctx context.Context, in *ApproveDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/ApproveDevice", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) CreateDeviceEnrollment(ctx context.Context, in *CreateDeviceEnrollmentRequest, opts ...grpc.CallOption) (*CreateDeviceEnrollmentResponse, error) { - out := new(CreateDeviceEnrollmentResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/CreateDeviceEnrollment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) SetDeviceType(ctx context.Context, in *SetDeviceTypeRequest, opts ...grpc.CallOption) (*SetDeviceTypeResponse, error) { - out := new(SetDeviceTypeResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/SetDeviceType", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/DeleteDevice", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) DeleteDeviceType(ctx context.Context, in *DeleteDeviceTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/DeleteDeviceType", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) { - out := new(ListDevicesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/ListDevices", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *deviceServiceClient) ListDeviceTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceTypesResponse, error) { - out := new(ListDeviceTypesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.DeviceService/ListDeviceTypes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DeviceServiceServer is the server API for DeviceService service. -type DeviceServiceServer interface { - ApproveDevice(context.Context, *ApproveDeviceRequest) (*emptypb.Empty, error) - CreateDeviceEnrollment(context.Context, *CreateDeviceEnrollmentRequest) (*CreateDeviceEnrollmentResponse, error) - SetDeviceType(context.Context, *SetDeviceTypeRequest) (*SetDeviceTypeResponse, error) - DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) - DeleteDeviceType(context.Context, *DeleteDeviceTypeRequest) (*emptypb.Empty, error) - ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) - ListDeviceTypes(context.Context, *emptypb.Empty) (*ListDeviceTypesResponse, error) -} - -// UnimplementedDeviceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedDeviceServiceServer struct { -} - -func (*UnimplementedDeviceServiceServer) ApproveDevice(context.Context, *ApproveDeviceRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApproveDevice not implemented") -} -func (*UnimplementedDeviceServiceServer) CreateDeviceEnrollment(context.Context, *CreateDeviceEnrollmentRequest) (*CreateDeviceEnrollmentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDeviceEnrollment not implemented") -} -func (*UnimplementedDeviceServiceServer) SetDeviceType(context.Context, *SetDeviceTypeRequest) (*SetDeviceTypeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetDeviceType not implemented") -} -func (*UnimplementedDeviceServiceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented") -} -func (*UnimplementedDeviceServiceServer) DeleteDeviceType(context.Context, *DeleteDeviceTypeRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteDeviceType not implemented") -} -func (*UnimplementedDeviceServiceServer) ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDevices not implemented") -} -func (*UnimplementedDeviceServiceServer) ListDeviceTypes(context.Context, *emptypb.Empty) (*ListDeviceTypesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDeviceTypes not implemented") -} - -func RegisterDeviceServiceServer(s *grpc.Server, srv DeviceServiceServer) { - s.RegisterService(&_DeviceService_serviceDesc, srv) -} - -func _DeviceService_ApproveDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApproveDeviceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).ApproveDevice(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/ApproveDevice", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).ApproveDevice(ctx, req.(*ApproveDeviceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_CreateDeviceEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDeviceEnrollmentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).CreateDeviceEnrollment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/CreateDeviceEnrollment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).CreateDeviceEnrollment(ctx, req.(*CreateDeviceEnrollmentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_SetDeviceType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetDeviceTypeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).SetDeviceType(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/SetDeviceType", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).SetDeviceType(ctx, req.(*SetDeviceTypeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteDeviceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).DeleteDevice(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/DeleteDevice", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).DeleteDevice(ctx, req.(*DeleteDeviceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_DeleteDeviceType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteDeviceTypeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).DeleteDeviceType(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/DeleteDeviceType", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).DeleteDeviceType(ctx, req.(*DeleteDeviceTypeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_ListDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListDevicesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).ListDevices(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/ListDevices", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).ListDevices(ctx, req.(*ListDevicesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DeviceService_ListDeviceTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DeviceServiceServer).ListDeviceTypes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.DeviceService/ListDeviceTypes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DeviceServiceServer).ListDeviceTypes(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _DeviceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.DeviceService", - HandlerType: (*DeviceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ApproveDevice", - Handler: _DeviceService_ApproveDevice_Handler, - }, - { - MethodName: "CreateDeviceEnrollment", - Handler: _DeviceService_CreateDeviceEnrollment_Handler, - }, - { - MethodName: "SetDeviceType", - Handler: _DeviceService_SetDeviceType_Handler, - }, - { - MethodName: "DeleteDevice", - Handler: _DeviceService_DeleteDevice_Handler, - }, - { - MethodName: "DeleteDeviceType", - Handler: _DeviceService_DeleteDeviceType_Handler, - }, - { - MethodName: "ListDevices", - Handler: _DeviceService_ListDevices_Handler, - }, - { - MethodName: "ListDeviceTypes", - Handler: _DeviceService_ListDeviceTypes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "devices.proto", -} diff --git a/pb/devices_grpc.pb.go b/pb/devices_grpc.pb.go new file mode 100644 index 0000000..bf04a7b --- /dev/null +++ b/pb/devices_grpc.pb.go @@ -0,0 +1,352 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: devices.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + DeviceService_ApproveDevice_FullMethodName = "/pomerium.dashboard.DeviceService/ApproveDevice" + DeviceService_CreateDeviceEnrollment_FullMethodName = "/pomerium.dashboard.DeviceService/CreateDeviceEnrollment" + DeviceService_SetDeviceType_FullMethodName = "/pomerium.dashboard.DeviceService/SetDeviceType" + DeviceService_DeleteDevice_FullMethodName = "/pomerium.dashboard.DeviceService/DeleteDevice" + DeviceService_DeleteDeviceType_FullMethodName = "/pomerium.dashboard.DeviceService/DeleteDeviceType" + DeviceService_ListDevices_FullMethodName = "/pomerium.dashboard.DeviceService/ListDevices" + DeviceService_ListDeviceTypes_FullMethodName = "/pomerium.dashboard.DeviceService/ListDeviceTypes" +) + +// DeviceServiceClient is the client API for DeviceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// DeviceService manages device credentials, enrollments and types +type DeviceServiceClient interface { + ApproveDevice(ctx context.Context, in *ApproveDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateDeviceEnrollment(ctx context.Context, in *CreateDeviceEnrollmentRequest, opts ...grpc.CallOption) (*CreateDeviceEnrollmentResponse, error) + SetDeviceType(ctx context.Context, in *SetDeviceTypeRequest, opts ...grpc.CallOption) (*SetDeviceTypeResponse, error) + DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteDeviceType(ctx context.Context, in *DeleteDeviceTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) + ListDeviceTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceTypesResponse, error) +} + +type deviceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDeviceServiceClient(cc grpc.ClientConnInterface) DeviceServiceClient { + return &deviceServiceClient{cc} +} + +func (c *deviceServiceClient) ApproveDevice(ctx context.Context, in *ApproveDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, DeviceService_ApproveDevice_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) CreateDeviceEnrollment(ctx context.Context, in *CreateDeviceEnrollmentRequest, opts ...grpc.CallOption) (*CreateDeviceEnrollmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateDeviceEnrollmentResponse) + err := c.cc.Invoke(ctx, DeviceService_CreateDeviceEnrollment_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) SetDeviceType(ctx context.Context, in *SetDeviceTypeRequest, opts ...grpc.CallOption) (*SetDeviceTypeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetDeviceTypeResponse) + err := c.cc.Invoke(ctx, DeviceService_SetDeviceType_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, DeviceService_DeleteDevice_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) DeleteDeviceType(ctx context.Context, in *DeleteDeviceTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, DeviceService_DeleteDeviceType_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDevicesResponse) + err := c.cc.Invoke(ctx, DeviceService_ListDevices_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *deviceServiceClient) ListDeviceTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListDeviceTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListDeviceTypesResponse) + err := c.cc.Invoke(ctx, DeviceService_ListDeviceTypes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DeviceServiceServer is the server API for DeviceService service. +// All implementations should embed UnimplementedDeviceServiceServer +// for forward compatibility. +// +// DeviceService manages device credentials, enrollments and types +type DeviceServiceServer interface { + ApproveDevice(context.Context, *ApproveDeviceRequest) (*emptypb.Empty, error) + CreateDeviceEnrollment(context.Context, *CreateDeviceEnrollmentRequest) (*CreateDeviceEnrollmentResponse, error) + SetDeviceType(context.Context, *SetDeviceTypeRequest) (*SetDeviceTypeResponse, error) + DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) + DeleteDeviceType(context.Context, *DeleteDeviceTypeRequest) (*emptypb.Empty, error) + ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) + ListDeviceTypes(context.Context, *emptypb.Empty) (*ListDeviceTypesResponse, error) +} + +// UnimplementedDeviceServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDeviceServiceServer struct{} + +func (UnimplementedDeviceServiceServer) ApproveDevice(context.Context, *ApproveDeviceRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method ApproveDevice not implemented") +} +func (UnimplementedDeviceServiceServer) CreateDeviceEnrollment(context.Context, *CreateDeviceEnrollmentRequest) (*CreateDeviceEnrollmentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDeviceEnrollment not implemented") +} +func (UnimplementedDeviceServiceServer) SetDeviceType(context.Context, *SetDeviceTypeRequest) (*SetDeviceTypeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetDeviceType not implemented") +} +func (UnimplementedDeviceServiceServer) DeleteDevice(context.Context, *DeleteDeviceRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented") +} +func (UnimplementedDeviceServiceServer) DeleteDeviceType(context.Context, *DeleteDeviceTypeRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteDeviceType not implemented") +} +func (UnimplementedDeviceServiceServer) ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDevices not implemented") +} +func (UnimplementedDeviceServiceServer) ListDeviceTypes(context.Context, *emptypb.Empty) (*ListDeviceTypesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDeviceTypes not implemented") +} +func (UnimplementedDeviceServiceServer) testEmbeddedByValue() {} + +// UnsafeDeviceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DeviceServiceServer will +// result in compilation errors. +type UnsafeDeviceServiceServer interface { + mustEmbedUnimplementedDeviceServiceServer() +} + +func RegisterDeviceServiceServer(s grpc.ServiceRegistrar, srv DeviceServiceServer) { + // If the following call pancis, it indicates UnimplementedDeviceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&DeviceService_ServiceDesc, srv) +} + +func _DeviceService_ApproveDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApproveDeviceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).ApproveDevice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_ApproveDevice_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).ApproveDevice(ctx, req.(*ApproveDeviceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_CreateDeviceEnrollment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDeviceEnrollmentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).CreateDeviceEnrollment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_CreateDeviceEnrollment_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).CreateDeviceEnrollment(ctx, req.(*CreateDeviceEnrollmentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_SetDeviceType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetDeviceTypeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).SetDeviceType(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_SetDeviceType_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).SetDeviceType(ctx, req.(*SetDeviceTypeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDeviceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).DeleteDevice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_DeleteDevice_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).DeleteDevice(ctx, req.(*DeleteDeviceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_DeleteDeviceType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteDeviceTypeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).DeleteDeviceType(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_DeleteDeviceType_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).DeleteDeviceType(ctx, req.(*DeleteDeviceTypeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_ListDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDevicesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).ListDevices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_ListDevices_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).ListDevices(ctx, req.(*ListDevicesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DeviceService_ListDeviceTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DeviceServiceServer).ListDeviceTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DeviceService_ListDeviceTypes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DeviceServiceServer).ListDeviceTypes(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +// DeviceService_ServiceDesc is the grpc.ServiceDesc for DeviceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DeviceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.DeviceService", + HandlerType: (*DeviceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ApproveDevice", + Handler: _DeviceService_ApproveDevice_Handler, + }, + { + MethodName: "CreateDeviceEnrollment", + Handler: _DeviceService_CreateDeviceEnrollment_Handler, + }, + { + MethodName: "SetDeviceType", + Handler: _DeviceService_SetDeviceType_Handler, + }, + { + MethodName: "DeleteDevice", + Handler: _DeviceService_DeleteDevice_Handler, + }, + { + MethodName: "DeleteDeviceType", + Handler: _DeviceService_DeleteDeviceType_Handler, + }, + { + MethodName: "ListDevices", + Handler: _DeviceService_ListDevices_Handler, + }, + { + MethodName: "ListDeviceTypes", + Handler: _DeviceService_ListDeviceTypes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "devices.proto", +} diff --git a/pb/external_data_sources.pb.go b/pb/external_data_sources.pb.go index 7434b0e..dce5ce8 100644 --- a/pb/external_data_sources.pb.go +++ b/pb/external_data_sources.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: external_data_sources.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" @@ -36,7 +32,7 @@ type ExternalDataSource struct { CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` - // Url is th URL to query for data. + // Url is the URL to query for data. Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // RecordType is how the queried records will be stored in the databroker. RecordType string `protobuf:"bytes,6,opt,name=record_type,json=recordType,proto3" json:"record_type,omitempty"` @@ -859,7 +855,7 @@ func file_external_data_sources_proto_rawDescGZIP() []byte { } var file_external_data_sources_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_external_data_sources_proto_goTypes = []interface{}{ +var file_external_data_sources_proto_goTypes = []any{ (*ExternalDataSource)(nil), // 0: pomerium.dashboard.ExternalDataSource (*DeleteExternalDataSourceRequest)(nil), // 1: pomerium.dashboard.DeleteExternalDataSourceRequest (*GetExternalDataSourceRequest)(nil), // 2: pomerium.dashboard.GetExternalDataSourceRequest @@ -913,7 +909,7 @@ func file_external_data_sources_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_external_data_sources_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ExternalDataSource); i { case 0: return &v.state @@ -925,7 +921,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DeleteExternalDataSourceRequest); i { case 0: return &v.state @@ -937,7 +933,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GetExternalDataSourceRequest); i { case 0: return &v.state @@ -949,7 +945,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GetExternalDataSourceResponse); i { case 0: return &v.state @@ -961,7 +957,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourcesRequest); i { case 0: return &v.state @@ -973,7 +969,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourcesResponse); i { case 0: return &v.state @@ -985,7 +981,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourceRecordTypesRequest); i { case 0: return &v.state @@ -997,7 +993,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourceRecordTypesResponse); i { case 0: return &v.state @@ -1009,7 +1005,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourceRecordFieldsRequest); i { case 0: return &v.state @@ -1021,7 +1017,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ListExternalDataSourceRecordFieldsResponse); i { case 0: return &v.state @@ -1033,7 +1029,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*SetExternalDataSourceRequest); i { case 0: return &v.state @@ -1045,7 +1041,7 @@ func file_external_data_sources_proto_init() { return nil } } - file_external_data_sources_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_external_data_sources_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*SetExternalDataSourceResponse); i { case 0: return &v.state @@ -1058,7 +1054,7 @@ func file_external_data_sources_proto_init() { } } } - file_external_data_sources_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_external_data_sources_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -1078,263 +1074,3 @@ func file_external_data_sources_proto_init() { file_external_data_sources_proto_goTypes = nil file_external_data_sources_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ExternalDataSourceServiceClient is the client API for ExternalDataSourceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExternalDataSourceServiceClient interface { - DeleteExternalDataSource(ctx context.Context, in *DeleteExternalDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - GetExternalDataSource(ctx context.Context, in *GetExternalDataSourceRequest, opts ...grpc.CallOption) (*GetExternalDataSourceResponse, error) - ListExternalDataSources(ctx context.Context, in *ListExternalDataSourcesRequest, opts ...grpc.CallOption) (*ListExternalDataSourcesResponse, error) - ListExternalDataSourceRecordTypes(ctx context.Context, in *ListExternalDataSourceRecordTypesRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordTypesResponse, error) - ListExternalDataSourceRecordFields(ctx context.Context, in *ListExternalDataSourceRecordFieldsRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordFieldsResponse, error) - SetExternalDataSource(ctx context.Context, in *SetExternalDataSourceRequest, opts ...grpc.CallOption) (*SetExternalDataSourceResponse, error) -} - -type externalDataSourceServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewExternalDataSourceServiceClient(cc grpc.ClientConnInterface) ExternalDataSourceServiceClient { - return &externalDataSourceServiceClient{cc} -} - -func (c *externalDataSourceServiceClient) DeleteExternalDataSource(ctx context.Context, in *DeleteExternalDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/DeleteExternalDataSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *externalDataSourceServiceClient) GetExternalDataSource(ctx context.Context, in *GetExternalDataSourceRequest, opts ...grpc.CallOption) (*GetExternalDataSourceResponse, error) { - out := new(GetExternalDataSourceResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/GetExternalDataSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *externalDataSourceServiceClient) ListExternalDataSources(ctx context.Context, in *ListExternalDataSourcesRequest, opts ...grpc.CallOption) (*ListExternalDataSourcesResponse, error) { - out := new(ListExternalDataSourcesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSources", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *externalDataSourceServiceClient) ListExternalDataSourceRecordTypes(ctx context.Context, in *ListExternalDataSourceRecordTypesRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordTypesResponse, error) { - out := new(ListExternalDataSourceRecordTypesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordTypes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *externalDataSourceServiceClient) ListExternalDataSourceRecordFields(ctx context.Context, in *ListExternalDataSourceRecordFieldsRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordFieldsResponse, error) { - out := new(ListExternalDataSourceRecordFieldsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordFields", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *externalDataSourceServiceClient) SetExternalDataSource(ctx context.Context, in *SetExternalDataSourceRequest, opts ...grpc.CallOption) (*SetExternalDataSourceResponse, error) { - out := new(SetExternalDataSourceResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.ExternalDataSourceService/SetExternalDataSource", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExternalDataSourceServiceServer is the server API for ExternalDataSourceService service. -type ExternalDataSourceServiceServer interface { - DeleteExternalDataSource(context.Context, *DeleteExternalDataSourceRequest) (*emptypb.Empty, error) - GetExternalDataSource(context.Context, *GetExternalDataSourceRequest) (*GetExternalDataSourceResponse, error) - ListExternalDataSources(context.Context, *ListExternalDataSourcesRequest) (*ListExternalDataSourcesResponse, error) - ListExternalDataSourceRecordTypes(context.Context, *ListExternalDataSourceRecordTypesRequest) (*ListExternalDataSourceRecordTypesResponse, error) - ListExternalDataSourceRecordFields(context.Context, *ListExternalDataSourceRecordFieldsRequest) (*ListExternalDataSourceRecordFieldsResponse, error) - SetExternalDataSource(context.Context, *SetExternalDataSourceRequest) (*SetExternalDataSourceResponse, error) -} - -// UnimplementedExternalDataSourceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedExternalDataSourceServiceServer struct { -} - -func (*UnimplementedExternalDataSourceServiceServer) DeleteExternalDataSource(context.Context, *DeleteExternalDataSourceRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteExternalDataSource not implemented") -} -func (*UnimplementedExternalDataSourceServiceServer) GetExternalDataSource(context.Context, *GetExternalDataSourceRequest) (*GetExternalDataSourceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExternalDataSource not implemented") -} -func (*UnimplementedExternalDataSourceServiceServer) ListExternalDataSources(context.Context, *ListExternalDataSourcesRequest) (*ListExternalDataSourcesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSources not implemented") -} -func (*UnimplementedExternalDataSourceServiceServer) ListExternalDataSourceRecordTypes(context.Context, *ListExternalDataSourceRecordTypesRequest) (*ListExternalDataSourceRecordTypesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSourceRecordTypes not implemented") -} -func (*UnimplementedExternalDataSourceServiceServer) ListExternalDataSourceRecordFields(context.Context, *ListExternalDataSourceRecordFieldsRequest) (*ListExternalDataSourceRecordFieldsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSourceRecordFields not implemented") -} -func (*UnimplementedExternalDataSourceServiceServer) SetExternalDataSource(context.Context, *SetExternalDataSourceRequest) (*SetExternalDataSourceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetExternalDataSource not implemented") -} - -func RegisterExternalDataSourceServiceServer(s *grpc.Server, srv ExternalDataSourceServiceServer) { - s.RegisterService(&_ExternalDataSourceService_serviceDesc, srv) -} - -func _ExternalDataSourceService_DeleteExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteExternalDataSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).DeleteExternalDataSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/DeleteExternalDataSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).DeleteExternalDataSource(ctx, req.(*DeleteExternalDataSourceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalDataSourceService_GetExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetExternalDataSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).GetExternalDataSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/GetExternalDataSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).GetExternalDataSource(ctx, req.(*GetExternalDataSourceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalDataSourceService_ListExternalDataSources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListExternalDataSourcesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSources(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSources", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSources(ctx, req.(*ListExternalDataSourcesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalDataSourceService_ListExternalDataSourceRecordTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListExternalDataSourceRecordTypesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordTypes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordTypes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordTypes(ctx, req.(*ListExternalDataSourceRecordTypesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalDataSourceService_ListExternalDataSourceRecordFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListExternalDataSourceRecordFieldsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordFields(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordFields", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordFields(ctx, req.(*ListExternalDataSourceRecordFieldsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalDataSourceService_SetExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetExternalDataSourceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalDataSourceServiceServer).SetExternalDataSource(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.ExternalDataSourceService/SetExternalDataSource", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalDataSourceServiceServer).SetExternalDataSource(ctx, req.(*SetExternalDataSourceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ExternalDataSourceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.ExternalDataSourceService", - HandlerType: (*ExternalDataSourceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteExternalDataSource", - Handler: _ExternalDataSourceService_DeleteExternalDataSource_Handler, - }, - { - MethodName: "GetExternalDataSource", - Handler: _ExternalDataSourceService_GetExternalDataSource_Handler, - }, - { - MethodName: "ListExternalDataSources", - Handler: _ExternalDataSourceService_ListExternalDataSources_Handler, - }, - { - MethodName: "ListExternalDataSourceRecordTypes", - Handler: _ExternalDataSourceService_ListExternalDataSourceRecordTypes_Handler, - }, - { - MethodName: "ListExternalDataSourceRecordFields", - Handler: _ExternalDataSourceService_ListExternalDataSourceRecordFields_Handler, - }, - { - MethodName: "SetExternalDataSource", - Handler: _ExternalDataSourceService_SetExternalDataSource_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "external_data_sources.proto", -} diff --git a/pb/external_data_sources_grpc.pb.go b/pb/external_data_sources_grpc.pb.go new file mode 100644 index 0000000..6692b87 --- /dev/null +++ b/pb/external_data_sources_grpc.pb.go @@ -0,0 +1,310 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: external_data_sources.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + ExternalDataSourceService_DeleteExternalDataSource_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/DeleteExternalDataSource" + ExternalDataSourceService_GetExternalDataSource_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/GetExternalDataSource" + ExternalDataSourceService_ListExternalDataSources_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSources" + ExternalDataSourceService_ListExternalDataSourceRecordTypes_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordTypes" + ExternalDataSourceService_ListExternalDataSourceRecordFields_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/ListExternalDataSourceRecordFields" + ExternalDataSourceService_SetExternalDataSource_FullMethodName = "/pomerium.dashboard.ExternalDataSourceService/SetExternalDataSource" +) + +// ExternalDataSourceServiceClient is the client API for ExternalDataSourceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ExternalDataSourceServiceClient interface { + DeleteExternalDataSource(ctx context.Context, in *DeleteExternalDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetExternalDataSource(ctx context.Context, in *GetExternalDataSourceRequest, opts ...grpc.CallOption) (*GetExternalDataSourceResponse, error) + ListExternalDataSources(ctx context.Context, in *ListExternalDataSourcesRequest, opts ...grpc.CallOption) (*ListExternalDataSourcesResponse, error) + ListExternalDataSourceRecordTypes(ctx context.Context, in *ListExternalDataSourceRecordTypesRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordTypesResponse, error) + ListExternalDataSourceRecordFields(ctx context.Context, in *ListExternalDataSourceRecordFieldsRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordFieldsResponse, error) + SetExternalDataSource(ctx context.Context, in *SetExternalDataSourceRequest, opts ...grpc.CallOption) (*SetExternalDataSourceResponse, error) +} + +type externalDataSourceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewExternalDataSourceServiceClient(cc grpc.ClientConnInterface) ExternalDataSourceServiceClient { + return &externalDataSourceServiceClient{cc} +} + +func (c *externalDataSourceServiceClient) DeleteExternalDataSource(ctx context.Context, in *DeleteExternalDataSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, ExternalDataSourceService_DeleteExternalDataSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *externalDataSourceServiceClient) GetExternalDataSource(ctx context.Context, in *GetExternalDataSourceRequest, opts ...grpc.CallOption) (*GetExternalDataSourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetExternalDataSourceResponse) + err := c.cc.Invoke(ctx, ExternalDataSourceService_GetExternalDataSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *externalDataSourceServiceClient) ListExternalDataSources(ctx context.Context, in *ListExternalDataSourcesRequest, opts ...grpc.CallOption) (*ListExternalDataSourcesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListExternalDataSourcesResponse) + err := c.cc.Invoke(ctx, ExternalDataSourceService_ListExternalDataSources_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *externalDataSourceServiceClient) ListExternalDataSourceRecordTypes(ctx context.Context, in *ListExternalDataSourceRecordTypesRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListExternalDataSourceRecordTypesResponse) + err := c.cc.Invoke(ctx, ExternalDataSourceService_ListExternalDataSourceRecordTypes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *externalDataSourceServiceClient) ListExternalDataSourceRecordFields(ctx context.Context, in *ListExternalDataSourceRecordFieldsRequest, opts ...grpc.CallOption) (*ListExternalDataSourceRecordFieldsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListExternalDataSourceRecordFieldsResponse) + err := c.cc.Invoke(ctx, ExternalDataSourceService_ListExternalDataSourceRecordFields_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *externalDataSourceServiceClient) SetExternalDataSource(ctx context.Context, in *SetExternalDataSourceRequest, opts ...grpc.CallOption) (*SetExternalDataSourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetExternalDataSourceResponse) + err := c.cc.Invoke(ctx, ExternalDataSourceService_SetExternalDataSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExternalDataSourceServiceServer is the server API for ExternalDataSourceService service. +// All implementations should embed UnimplementedExternalDataSourceServiceServer +// for forward compatibility. +type ExternalDataSourceServiceServer interface { + DeleteExternalDataSource(context.Context, *DeleteExternalDataSourceRequest) (*emptypb.Empty, error) + GetExternalDataSource(context.Context, *GetExternalDataSourceRequest) (*GetExternalDataSourceResponse, error) + ListExternalDataSources(context.Context, *ListExternalDataSourcesRequest) (*ListExternalDataSourcesResponse, error) + ListExternalDataSourceRecordTypes(context.Context, *ListExternalDataSourceRecordTypesRequest) (*ListExternalDataSourceRecordTypesResponse, error) + ListExternalDataSourceRecordFields(context.Context, *ListExternalDataSourceRecordFieldsRequest) (*ListExternalDataSourceRecordFieldsResponse, error) + SetExternalDataSource(context.Context, *SetExternalDataSourceRequest) (*SetExternalDataSourceResponse, error) +} + +// UnimplementedExternalDataSourceServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExternalDataSourceServiceServer struct{} + +func (UnimplementedExternalDataSourceServiceServer) DeleteExternalDataSource(context.Context, *DeleteExternalDataSourceRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteExternalDataSource not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) GetExternalDataSource(context.Context, *GetExternalDataSourceRequest) (*GetExternalDataSourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExternalDataSource not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) ListExternalDataSources(context.Context, *ListExternalDataSourcesRequest) (*ListExternalDataSourcesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSources not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) ListExternalDataSourceRecordTypes(context.Context, *ListExternalDataSourceRecordTypesRequest) (*ListExternalDataSourceRecordTypesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSourceRecordTypes not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) ListExternalDataSourceRecordFields(context.Context, *ListExternalDataSourceRecordFieldsRequest) (*ListExternalDataSourceRecordFieldsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExternalDataSourceRecordFields not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) SetExternalDataSource(context.Context, *SetExternalDataSourceRequest) (*SetExternalDataSourceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetExternalDataSource not implemented") +} +func (UnimplementedExternalDataSourceServiceServer) testEmbeddedByValue() {} + +// UnsafeExternalDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ExternalDataSourceServiceServer will +// result in compilation errors. +type UnsafeExternalDataSourceServiceServer interface { + mustEmbedUnimplementedExternalDataSourceServiceServer() +} + +func RegisterExternalDataSourceServiceServer(s grpc.ServiceRegistrar, srv ExternalDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedExternalDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&ExternalDataSourceService_ServiceDesc, srv) +} + +func _ExternalDataSourceService_DeleteExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteExternalDataSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).DeleteExternalDataSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_DeleteExternalDataSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).DeleteExternalDataSource(ctx, req.(*DeleteExternalDataSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalDataSourceService_GetExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetExternalDataSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).GetExternalDataSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_GetExternalDataSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).GetExternalDataSource(ctx, req.(*GetExternalDataSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalDataSourceService_ListExternalDataSources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExternalDataSourcesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSources(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_ListExternalDataSources_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSources(ctx, req.(*ListExternalDataSourcesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalDataSourceService_ListExternalDataSourceRecordTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExternalDataSourceRecordTypesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordTypes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_ListExternalDataSourceRecordTypes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordTypes(ctx, req.(*ListExternalDataSourceRecordTypesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalDataSourceService_ListExternalDataSourceRecordFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListExternalDataSourceRecordFieldsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordFields(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_ListExternalDataSourceRecordFields_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).ListExternalDataSourceRecordFields(ctx, req.(*ListExternalDataSourceRecordFieldsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalDataSourceService_SetExternalDataSource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetExternalDataSourceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalDataSourceServiceServer).SetExternalDataSource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalDataSourceService_SetExternalDataSource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalDataSourceServiceServer).SetExternalDataSource(ctx, req.(*SetExternalDataSourceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ExternalDataSourceService_ServiceDesc is the grpc.ServiceDesc for ExternalDataSourceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ExternalDataSourceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.ExternalDataSourceService", + HandlerType: (*ExternalDataSourceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteExternalDataSource", + Handler: _ExternalDataSourceService_DeleteExternalDataSource_Handler, + }, + { + MethodName: "GetExternalDataSource", + Handler: _ExternalDataSourceService_GetExternalDataSource_Handler, + }, + { + MethodName: "ListExternalDataSources", + Handler: _ExternalDataSourceService_ListExternalDataSources_Handler, + }, + { + MethodName: "ListExternalDataSourceRecordTypes", + Handler: _ExternalDataSourceService_ListExternalDataSourceRecordTypes_Handler, + }, + { + MethodName: "ListExternalDataSourceRecordFields", + Handler: _ExternalDataSourceService_ListExternalDataSourceRecordFields_Handler, + }, + { + MethodName: "SetExternalDataSource", + Handler: _ExternalDataSourceService_SetExternalDataSource_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "external_data_sources.proto", +} diff --git a/pb/key_chain.pb.go b/pb/key_chain.pb.go index 1335ef8..661d196 100644 --- a/pb/key_chain.pb.go +++ b/pb/key_chain.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: key_chain.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" @@ -689,6 +685,8 @@ type KeyPairRecord struct { CertInfo *CertificateInfo `protobuf:"bytes,7,opt,name=cert_info,json=certInfo,proto3" json:"cert_info,omitempty"` // Key Pair has a private key attached HasPrivateKey bool `protobuf:"varint,8,opt,name=has_private_key,json=hasPrivateKey,proto3" json:"has_private_key,omitempty"` + // public certificate data + Certificate []byte `protobuf:"bytes,9,opt,name=certificate,proto3" json:"certificate,omitempty"` } func (x *KeyPairRecord) Reset() { @@ -772,6 +770,13 @@ func (x *KeyPairRecord) GetHasPrivateKey() bool { return false } +func (x *KeyPairRecord) GetCertificate() []byte { + if x != nil { + return x.Certificate + } + return nil +} + type DeleteKeyPairRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1237,13 +1242,14 @@ type UpdateKeyPairRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` // encoding format of data - Format Format `protobuf:"varint,3,opt,name=format,proto3,enum=pomerium.dashboard.Format" json:"format,omitempty"` + Format *Format `protobuf:"varint,3,opt,name=format,proto3,enum=pomerium.dashboard.Format,oneof" json:"format,omitempty"` // public certificate data - Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3,oneof" json:"certificate,omitempty"` // private key data - Key []byte `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` + Key []byte `protobuf:"bytes,5,opt,name=key,proto3,oneof" json:"key,omitempty"` } func (x *UpdateKeyPairRequest) Reset() { @@ -1285,9 +1291,16 @@ func (x *UpdateKeyPairRequest) GetId() string { return "" } +func (x *UpdateKeyPairRequest) GetName() string { + if x != nil && x.Name != nil { + return *x.Name + } + return "" +} + func (x *UpdateKeyPairRequest) GetFormat() Format { - if x != nil { - return x.Format + if x != nil && x.Format != nil { + return *x.Format } return Format_FORMAT_UNDEFINED_DO_NOT_USE } @@ -1482,7 +1495,7 @@ var file_key_chain_proto_rawDesc = []byte{ 0x69, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x69, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, - 0x55, 0x72, 0x69, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0xb8, 0x02, 0x0a, 0x0d, 0x4b, + 0x55, 0x72, 0x69, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0xda, 0x02, 0x0a, 0x0d, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, @@ -1502,118 +1515,126 @@ var file_key_chain_proto_rawDesc = []byte{ 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x63, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0f, 0x68, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x68, 0x61, 0x73, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, 0x0a, - 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x22, - 0xff, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x88, - 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x03, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, - 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, - 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x22, 0x77, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x6b, 0x65, 0x79, - 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, - 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb5, 0x01, 0x0a, 0x14, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6d, - 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x22, 0x55, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, - 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x6b, - 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x55, 0x0a, 0x15, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, - 0x72, 0x2a, 0x5a, 0x0a, 0x12, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x41, 0x6c, - 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x4b, 0x41, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, - 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x53, 0x41, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, - 0x44, 0x53, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x43, 0x44, 0x53, 0x41, 0x10, 0x03, - 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x04, 0x2a, 0x32, 0x0a, - 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x1b, 0x46, 0x4f, 0x52, 0x4d, 0x41, - 0x54, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x5f, 0x44, 0x4f, 0x5f, 0x4e, - 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x45, 0x4d, 0x10, - 0x01, 0x32, 0x83, 0x04, 0x0a, 0x0f, 0x4b, 0x65, 0x79, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, - 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, - 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, - 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, - 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, - 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, - 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, - 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x70, + 0x72, 0x22, 0xff, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, + 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x88, 0x01, 0x01, 0x12, + 0x1b, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x04, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x22, 0x77, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x6b, + 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb5, 0x01, 0x0a, + 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x06, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, + 0x64, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x22, 0x55, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, + 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x22, 0xe2, 0x01, 0x0a, 0x14, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, + 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x48, 0x01, 0x52, 0x06, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x02, 0x52, 0x0b, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x03, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6b, 0x65, 0x79, + 0x22, 0x55, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x6b, 0x65, 0x79, + 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, + 0x6b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x2a, 0x5a, 0x0a, 0x12, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x1a, 0x0a, + 0x16, 0x50, 0x4b, 0x41, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x44, 0x4f, 0x5f, + 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x53, 0x41, + 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x53, 0x41, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, + 0x43, 0x44, 0x53, 0x41, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, + 0x39, 0x10, 0x04, 0x2a, 0x32, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, + 0x1b, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, + 0x44, 0x5f, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x00, 0x12, 0x07, + 0x0a, 0x03, 0x50, 0x45, 0x4d, 0x10, 0x01, 0x32, 0x83, 0x04, 0x0a, 0x0f, 0x4b, 0x65, 0x79, 0x43, + 0x68, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x70, + 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, + 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, + 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x4b, + 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, + 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x12, 0x27, + 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, - 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, + 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4b, 0x65, + 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, + 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1630,7 +1651,7 @@ func file_key_chain_proto_rawDescGZIP() []byte { var file_key_chain_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_key_chain_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_key_chain_proto_goTypes = []interface{}{ +var file_key_chain_proto_goTypes = []any{ (PublicKeyAlgorithm)(0), // 0: pomerium.dashboard.PublicKeyAlgorithm (Format)(0), // 1: pomerium.dashboard.Format (*KeyPair)(nil), // 2: pomerium.dashboard.KeyPair @@ -1690,7 +1711,7 @@ func file_key_chain_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_key_chain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*KeyPair); i { case 0: return &v.state @@ -1702,7 +1723,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*KeyUsage); i { case 0: return &v.state @@ -1714,7 +1735,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Name); i { case 0: return &v.state @@ -1726,7 +1747,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*CertificateInfo); i { case 0: return &v.state @@ -1738,7 +1759,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*KeyPairRecord); i { case 0: return &v.state @@ -1750,7 +1771,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*DeleteKeyPairRequest); i { case 0: return &v.state @@ -1762,7 +1783,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*DeleteKeyPairResponse); i { case 0: return &v.state @@ -1774,7 +1795,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*GetKeyPairRequest); i { case 0: return &v.state @@ -1786,7 +1807,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*GetKeyPairResponse); i { case 0: return &v.state @@ -1798,7 +1819,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ListKeyPairsRequest); i { case 0: return &v.state @@ -1810,7 +1831,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ListKeyPairsResponse); i { case 0: return &v.state @@ -1822,7 +1843,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*CreateKeyPairRequest); i { case 0: return &v.state @@ -1834,7 +1855,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*CreateKeyPairResponse); i { case 0: return &v.state @@ -1846,7 +1867,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*UpdateKeyPairRequest); i { case 0: return &v.state @@ -1858,7 +1879,7 @@ func file_key_chain_proto_init() { return nil } } - file_key_chain_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_key_chain_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*UpdateKeyPairResponse); i { case 0: return &v.state @@ -1871,7 +1892,8 @@ func file_key_chain_proto_init() { } } } - file_key_chain_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_key_chain_proto_msgTypes[9].OneofWrappers = []any{} + file_key_chain_proto_msgTypes[13].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -1892,239 +1914,3 @@ func file_key_chain_proto_init() { file_key_chain_proto_goTypes = nil file_key_chain_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// KeyChainServiceClient is the client API for KeyChainService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type KeyChainServiceClient interface { - // DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest - DeleteKeyPair(ctx context.Context, in *DeleteKeyPairRequest, opts ...grpc.CallOption) (*DeleteKeyPairResponse, error) - // GetKeyPair retrieves an existing key pair - GetKeyPair(ctx context.Context, in *GetKeyPairRequest, opts ...grpc.CallOption) (*GetKeyPairResponse, error) - // ListKeyPairs lists existing key pairs based on parameters in - // ListKeyPairsRequest - ListKeyPairs(ctx context.Context, in *ListKeyPairsRequest, opts ...grpc.CallOption) (*ListKeyPairsResponse, error) - // CreateKeyPair creates a new key pair - CreateKeyPair(ctx context.Context, in *CreateKeyPairRequest, opts ...grpc.CallOption) (*CreateKeyPairResponse, error) - // CreateKeyPair creates a new key pair - UpdateKeyPair(ctx context.Context, in *UpdateKeyPairRequest, opts ...grpc.CallOption) (*UpdateKeyPairResponse, error) -} - -type keyChainServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewKeyChainServiceClient(cc grpc.ClientConnInterface) KeyChainServiceClient { - return &keyChainServiceClient{cc} -} - -func (c *keyChainServiceClient) DeleteKeyPair(ctx context.Context, in *DeleteKeyPairRequest, opts ...grpc.CallOption) (*DeleteKeyPairResponse, error) { - out := new(DeleteKeyPairResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.KeyChainService/DeleteKeyPair", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *keyChainServiceClient) GetKeyPair(ctx context.Context, in *GetKeyPairRequest, opts ...grpc.CallOption) (*GetKeyPairResponse, error) { - out := new(GetKeyPairResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.KeyChainService/GetKeyPair", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *keyChainServiceClient) ListKeyPairs(ctx context.Context, in *ListKeyPairsRequest, opts ...grpc.CallOption) (*ListKeyPairsResponse, error) { - out := new(ListKeyPairsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.KeyChainService/ListKeyPairs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *keyChainServiceClient) CreateKeyPair(ctx context.Context, in *CreateKeyPairRequest, opts ...grpc.CallOption) (*CreateKeyPairResponse, error) { - out := new(CreateKeyPairResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.KeyChainService/CreateKeyPair", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *keyChainServiceClient) UpdateKeyPair(ctx context.Context, in *UpdateKeyPairRequest, opts ...grpc.CallOption) (*UpdateKeyPairResponse, error) { - out := new(UpdateKeyPairResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.KeyChainService/UpdateKeyPair", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// KeyChainServiceServer is the server API for KeyChainService service. -type KeyChainServiceServer interface { - // DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest - DeleteKeyPair(context.Context, *DeleteKeyPairRequest) (*DeleteKeyPairResponse, error) - // GetKeyPair retrieves an existing key pair - GetKeyPair(context.Context, *GetKeyPairRequest) (*GetKeyPairResponse, error) - // ListKeyPairs lists existing key pairs based on parameters in - // ListKeyPairsRequest - ListKeyPairs(context.Context, *ListKeyPairsRequest) (*ListKeyPairsResponse, error) - // CreateKeyPair creates a new key pair - CreateKeyPair(context.Context, *CreateKeyPairRequest) (*CreateKeyPairResponse, error) - // CreateKeyPair creates a new key pair - UpdateKeyPair(context.Context, *UpdateKeyPairRequest) (*UpdateKeyPairResponse, error) -} - -// UnimplementedKeyChainServiceServer can be embedded to have forward compatible implementations. -type UnimplementedKeyChainServiceServer struct { -} - -func (*UnimplementedKeyChainServiceServer) DeleteKeyPair(context.Context, *DeleteKeyPairRequest) (*DeleteKeyPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteKeyPair not implemented") -} -func (*UnimplementedKeyChainServiceServer) GetKeyPair(context.Context, *GetKeyPairRequest) (*GetKeyPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetKeyPair not implemented") -} -func (*UnimplementedKeyChainServiceServer) ListKeyPairs(context.Context, *ListKeyPairsRequest) (*ListKeyPairsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListKeyPairs not implemented") -} -func (*UnimplementedKeyChainServiceServer) CreateKeyPair(context.Context, *CreateKeyPairRequest) (*CreateKeyPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateKeyPair not implemented") -} -func (*UnimplementedKeyChainServiceServer) UpdateKeyPair(context.Context, *UpdateKeyPairRequest) (*UpdateKeyPairResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateKeyPair not implemented") -} - -func RegisterKeyChainServiceServer(s *grpc.Server, srv KeyChainServiceServer) { - s.RegisterService(&_KeyChainService_serviceDesc, srv) -} - -func _KeyChainService_DeleteKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteKeyPairRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(KeyChainServiceServer).DeleteKeyPair(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.KeyChainService/DeleteKeyPair", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(KeyChainServiceServer).DeleteKeyPair(ctx, req.(*DeleteKeyPairRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _KeyChainService_GetKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetKeyPairRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(KeyChainServiceServer).GetKeyPair(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.KeyChainService/GetKeyPair", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(KeyChainServiceServer).GetKeyPair(ctx, req.(*GetKeyPairRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _KeyChainService_ListKeyPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListKeyPairsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(KeyChainServiceServer).ListKeyPairs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.KeyChainService/ListKeyPairs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(KeyChainServiceServer).ListKeyPairs(ctx, req.(*ListKeyPairsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _KeyChainService_CreateKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateKeyPairRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(KeyChainServiceServer).CreateKeyPair(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.KeyChainService/CreateKeyPair", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(KeyChainServiceServer).CreateKeyPair(ctx, req.(*CreateKeyPairRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _KeyChainService_UpdateKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateKeyPairRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(KeyChainServiceServer).UpdateKeyPair(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.KeyChainService/UpdateKeyPair", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(KeyChainServiceServer).UpdateKeyPair(ctx, req.(*UpdateKeyPairRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _KeyChainService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.KeyChainService", - HandlerType: (*KeyChainServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteKeyPair", - Handler: _KeyChainService_DeleteKeyPair_Handler, - }, - { - MethodName: "GetKeyPair", - Handler: _KeyChainService_GetKeyPair_Handler, - }, - { - MethodName: "ListKeyPairs", - Handler: _KeyChainService_ListKeyPairs_Handler, - }, - { - MethodName: "CreateKeyPair", - Handler: _KeyChainService_CreateKeyPair_Handler, - }, - { - MethodName: "UpdateKeyPair", - Handler: _KeyChainService_UpdateKeyPair_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "key_chain.proto", -} diff --git a/pb/key_chain_grpc.pb.go b/pb/key_chain_grpc.pb.go new file mode 100644 index 0000000..3a80d17 --- /dev/null +++ b/pb/key_chain_grpc.pb.go @@ -0,0 +1,289 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: key_chain.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + KeyChainService_DeleteKeyPair_FullMethodName = "/pomerium.dashboard.KeyChainService/DeleteKeyPair" + KeyChainService_GetKeyPair_FullMethodName = "/pomerium.dashboard.KeyChainService/GetKeyPair" + KeyChainService_ListKeyPairs_FullMethodName = "/pomerium.dashboard.KeyChainService/ListKeyPairs" + KeyChainService_CreateKeyPair_FullMethodName = "/pomerium.dashboard.KeyChainService/CreateKeyPair" + KeyChainService_UpdateKeyPair_FullMethodName = "/pomerium.dashboard.KeyChainService/UpdateKeyPair" +) + +// KeyChainServiceClient is the client API for KeyChainService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// KeyChainService manages and store TLS Certificates, Keys and CAs, known as +// Key Pairs +type KeyChainServiceClient interface { + // DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest + DeleteKeyPair(ctx context.Context, in *DeleteKeyPairRequest, opts ...grpc.CallOption) (*DeleteKeyPairResponse, error) + // GetKeyPair retrieves an existing key pair + GetKeyPair(ctx context.Context, in *GetKeyPairRequest, opts ...grpc.CallOption) (*GetKeyPairResponse, error) + // ListKeyPairs lists existing key pairs based on parameters in + // ListKeyPairsRequest + ListKeyPairs(ctx context.Context, in *ListKeyPairsRequest, opts ...grpc.CallOption) (*ListKeyPairsResponse, error) + // CreateKeyPair creates a new key pair + CreateKeyPair(ctx context.Context, in *CreateKeyPairRequest, opts ...grpc.CallOption) (*CreateKeyPairResponse, error) + // CreateKeyPair creates a new key pair + UpdateKeyPair(ctx context.Context, in *UpdateKeyPairRequest, opts ...grpc.CallOption) (*UpdateKeyPairResponse, error) +} + +type keyChainServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewKeyChainServiceClient(cc grpc.ClientConnInterface) KeyChainServiceClient { + return &keyChainServiceClient{cc} +} + +func (c *keyChainServiceClient) DeleteKeyPair(ctx context.Context, in *DeleteKeyPairRequest, opts ...grpc.CallOption) (*DeleteKeyPairResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteKeyPairResponse) + err := c.cc.Invoke(ctx, KeyChainService_DeleteKeyPair_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *keyChainServiceClient) GetKeyPair(ctx context.Context, in *GetKeyPairRequest, opts ...grpc.CallOption) (*GetKeyPairResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetKeyPairResponse) + err := c.cc.Invoke(ctx, KeyChainService_GetKeyPair_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *keyChainServiceClient) ListKeyPairs(ctx context.Context, in *ListKeyPairsRequest, opts ...grpc.CallOption) (*ListKeyPairsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListKeyPairsResponse) + err := c.cc.Invoke(ctx, KeyChainService_ListKeyPairs_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *keyChainServiceClient) CreateKeyPair(ctx context.Context, in *CreateKeyPairRequest, opts ...grpc.CallOption) (*CreateKeyPairResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateKeyPairResponse) + err := c.cc.Invoke(ctx, KeyChainService_CreateKeyPair_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *keyChainServiceClient) UpdateKeyPair(ctx context.Context, in *UpdateKeyPairRequest, opts ...grpc.CallOption) (*UpdateKeyPairResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateKeyPairResponse) + err := c.cc.Invoke(ctx, KeyChainService_UpdateKeyPair_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// KeyChainServiceServer is the server API for KeyChainService service. +// All implementations should embed UnimplementedKeyChainServiceServer +// for forward compatibility. +// +// KeyChainService manages and store TLS Certificates, Keys and CAs, known as +// Key Pairs +type KeyChainServiceServer interface { + // DeleteKeyPair remove an x509 key pair based on a DeleteKeyPairRequest + DeleteKeyPair(context.Context, *DeleteKeyPairRequest) (*DeleteKeyPairResponse, error) + // GetKeyPair retrieves an existing key pair + GetKeyPair(context.Context, *GetKeyPairRequest) (*GetKeyPairResponse, error) + // ListKeyPairs lists existing key pairs based on parameters in + // ListKeyPairsRequest + ListKeyPairs(context.Context, *ListKeyPairsRequest) (*ListKeyPairsResponse, error) + // CreateKeyPair creates a new key pair + CreateKeyPair(context.Context, *CreateKeyPairRequest) (*CreateKeyPairResponse, error) + // CreateKeyPair creates a new key pair + UpdateKeyPair(context.Context, *UpdateKeyPairRequest) (*UpdateKeyPairResponse, error) +} + +// UnimplementedKeyChainServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKeyChainServiceServer struct{} + +func (UnimplementedKeyChainServiceServer) DeleteKeyPair(context.Context, *DeleteKeyPairRequest) (*DeleteKeyPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteKeyPair not implemented") +} +func (UnimplementedKeyChainServiceServer) GetKeyPair(context.Context, *GetKeyPairRequest) (*GetKeyPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetKeyPair not implemented") +} +func (UnimplementedKeyChainServiceServer) ListKeyPairs(context.Context, *ListKeyPairsRequest) (*ListKeyPairsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListKeyPairs not implemented") +} +func (UnimplementedKeyChainServiceServer) CreateKeyPair(context.Context, *CreateKeyPairRequest) (*CreateKeyPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateKeyPair not implemented") +} +func (UnimplementedKeyChainServiceServer) UpdateKeyPair(context.Context, *UpdateKeyPairRequest) (*UpdateKeyPairResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateKeyPair not implemented") +} +func (UnimplementedKeyChainServiceServer) testEmbeddedByValue() {} + +// UnsafeKeyChainServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to KeyChainServiceServer will +// result in compilation errors. +type UnsafeKeyChainServiceServer interface { + mustEmbedUnimplementedKeyChainServiceServer() +} + +func RegisterKeyChainServiceServer(s grpc.ServiceRegistrar, srv KeyChainServiceServer) { + // If the following call pancis, it indicates UnimplementedKeyChainServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&KeyChainService_ServiceDesc, srv) +} + +func _KeyChainService_DeleteKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteKeyPairRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyChainServiceServer).DeleteKeyPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KeyChainService_DeleteKeyPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyChainServiceServer).DeleteKeyPair(ctx, req.(*DeleteKeyPairRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KeyChainService_GetKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetKeyPairRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyChainServiceServer).GetKeyPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KeyChainService_GetKeyPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyChainServiceServer).GetKeyPair(ctx, req.(*GetKeyPairRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KeyChainService_ListKeyPairs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListKeyPairsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyChainServiceServer).ListKeyPairs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KeyChainService_ListKeyPairs_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyChainServiceServer).ListKeyPairs(ctx, req.(*ListKeyPairsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KeyChainService_CreateKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateKeyPairRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyChainServiceServer).CreateKeyPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KeyChainService_CreateKeyPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyChainServiceServer).CreateKeyPair(ctx, req.(*CreateKeyPairRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _KeyChainService_UpdateKeyPair_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateKeyPairRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyChainServiceServer).UpdateKeyPair(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: KeyChainService_UpdateKeyPair_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyChainServiceServer).UpdateKeyPair(ctx, req.(*UpdateKeyPairRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// KeyChainService_ServiceDesc is the grpc.ServiceDesc for KeyChainService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var KeyChainService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.KeyChainService", + HandlerType: (*KeyChainServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteKeyPair", + Handler: _KeyChainService_DeleteKeyPair_Handler, + }, + { + MethodName: "GetKeyPair", + Handler: _KeyChainService_GetKeyPair_Handler, + }, + { + MethodName: "ListKeyPairs", + Handler: _KeyChainService_ListKeyPairs_Handler, + }, + { + MethodName: "CreateKeyPair", + Handler: _KeyChainService_CreateKeyPair_Handler, + }, + { + MethodName: "UpdateKeyPair", + Handler: _KeyChainService_UpdateKeyPair_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "key_chain.proto", +} diff --git a/pb/namespaces.pb.go b/pb/namespaces.pb.go index 159adc0..fc87a26 100644 --- a/pb/namespaces.pb.go +++ b/pb/namespaces.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: namespaces.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" @@ -1785,7 +1781,7 @@ func file_namespaces_proto_rawDescGZIP() []byte { } var file_namespaces_proto_msgTypes = make([]protoimpl.MessageInfo, 27) -var file_namespaces_proto_goTypes = []interface{}{ +var file_namespaces_proto_goTypes = []any{ (*Namespace)(nil), // 0: pomerium.dashboard.Namespace (*DeleteNamespaceRequest)(nil), // 1: pomerium.dashboard.DeleteNamespaceRequest (*DeleteNamespaceResponse)(nil), // 2: pomerium.dashboard.DeleteNamespaceResponse @@ -1867,7 +1863,7 @@ func file_namespaces_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_namespaces_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Namespace); i { case 0: return &v.state @@ -1879,7 +1875,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DeleteNamespaceRequest); i { case 0: return &v.state @@ -1891,7 +1887,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*DeleteNamespaceResponse); i { case 0: return &v.state @@ -1903,7 +1899,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GetNamespaceRequest); i { case 0: return &v.state @@ -1915,7 +1911,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetNamespaceResponse); i { case 0: return &v.state @@ -1927,7 +1923,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacesRequest); i { case 0: return &v.state @@ -1939,7 +1935,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacesResponse); i { case 0: return &v.state @@ -1951,7 +1947,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ListNamespaceResourcesRequest); i { case 0: return &v.state @@ -1963,7 +1959,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ListNamespaceResourcesResponse); i { case 0: return &v.state @@ -1975,7 +1971,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*SetNamespaceRequest); i { case 0: return &v.state @@ -1987,7 +1983,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*SetNamespaceResponse); i { case 0: return &v.state @@ -1999,7 +1995,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*NamespacePermission); i { case 0: return &v.state @@ -2011,7 +2007,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*NamespacePermissionGroup); i { case 0: return &v.state @@ -2023,7 +2019,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*NamespacePermissionUser); i { case 0: return &v.state @@ -2035,7 +2031,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*DeleteNamespacePermissionRequest); i { case 0: return &v.state @@ -2047,7 +2043,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*DeleteNamespacePermissionResponse); i { case 0: return &v.state @@ -2059,7 +2055,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*GetNamespacePermissionRequest); i { case 0: return &v.state @@ -2071,7 +2067,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*GetNamespacePermissionResponse); i { case 0: return &v.state @@ -2083,7 +2079,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionsRequest); i { case 0: return &v.state @@ -2095,7 +2091,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionsResponse); i { case 0: return &v.state @@ -2107,7 +2103,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionGroupsRequest); i { case 0: return &v.state @@ -2119,7 +2115,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionGroupsResponse); i { case 0: return &v.state @@ -2131,7 +2127,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionUsersRequest); i { case 0: return &v.state @@ -2143,7 +2139,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*ListNamespacePermissionUsersResponse); i { case 0: return &v.state @@ -2155,7 +2151,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*SetNamespacePermissionRequest); i { case 0: return &v.state @@ -2167,7 +2163,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*SetNamespacePermissionResponse); i { case 0: return &v.state @@ -2179,7 +2175,7 @@ func file_namespaces_proto_init() { return nil } } - file_namespaces_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_namespaces_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*ListNamespaceResourcesResponse_Resource); i { case 0: return &v.state @@ -2211,507 +2207,3 @@ func file_namespaces_proto_init() { file_namespaces_proto_goTypes = nil file_namespaces_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// NamespaceServiceClient is the client API for NamespaceService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type NamespaceServiceClient interface { - // DeleteNamespace deletes a namespace - DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) - // GetNamespace retrieves a namespace - GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) - // ListNamespaces lists all namespaces - ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) - // ListNamespaceResources lists all the resources for a namespace. - ListNamespaceResources(ctx context.Context, in *ListNamespaceResourcesRequest, opts ...grpc.CallOption) (*ListNamespaceResourcesResponse, error) - // SetNamespace creates a namespace or, if the id is specified, updates an - // existing namespace - SetNamespace(ctx context.Context, in *SetNamespaceRequest, opts ...grpc.CallOption) (*SetNamespaceResponse, error) -} - -type namespaceServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient { - return &namespaceServiceClient{cc} -} - -func (c *namespaceServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) { - out := new(DeleteNamespaceResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespaceService/DeleteNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) { - out := new(GetNamespaceResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespaceService/GetNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) { - out := new(ListNamespacesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespaceService/ListNamespaces", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) ListNamespaceResources(ctx context.Context, in *ListNamespaceResourcesRequest, opts ...grpc.CallOption) (*ListNamespaceResourcesResponse, error) { - out := new(ListNamespaceResourcesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespaceService/ListNamespaceResources", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespaceServiceClient) SetNamespace(ctx context.Context, in *SetNamespaceRequest, opts ...grpc.CallOption) (*SetNamespaceResponse, error) { - out := new(SetNamespaceResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespaceService/SetNamespace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// NamespaceServiceServer is the server API for NamespaceService service. -type NamespaceServiceServer interface { - // DeleteNamespace deletes a namespace - DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) - // GetNamespace retrieves a namespace - GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) - // ListNamespaces lists all namespaces - ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error) - // ListNamespaceResources lists all the resources for a namespace. - ListNamespaceResources(context.Context, *ListNamespaceResourcesRequest) (*ListNamespaceResourcesResponse, error) - // SetNamespace creates a namespace or, if the id is specified, updates an - // existing namespace - SetNamespace(context.Context, *SetNamespaceRequest) (*SetNamespaceResponse, error) -} - -// UnimplementedNamespaceServiceServer can be embedded to have forward compatible implementations. -type UnimplementedNamespaceServiceServer struct { -} - -func (*UnimplementedNamespaceServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") -} -func (*UnimplementedNamespaceServiceServer) GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespace not implemented") -} -func (*UnimplementedNamespaceServiceServer) ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamespaces not implemented") -} -func (*UnimplementedNamespaceServiceServer) ListNamespaceResources(context.Context, *ListNamespaceResourcesRequest) (*ListNamespaceResourcesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamespaceResources not implemented") -} -func (*UnimplementedNamespaceServiceServer) SetNamespace(context.Context, *SetNamespaceRequest) (*SetNamespaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetNamespace not implemented") -} - -func RegisterNamespaceServiceServer(s *grpc.Server, srv NamespaceServiceServer) { - s.RegisterService(&_NamespaceService_serviceDesc, srv) -} - -func _NamespaceService_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).DeleteNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespaceService/DeleteNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).DeleteNamespace(ctx, req.(*DeleteNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_GetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).GetNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespaceService/GetNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).GetNamespace(ctx, req.(*GetNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_ListNamespaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListNamespacesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).ListNamespaces(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespaceService/ListNamespaces", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).ListNamespaces(ctx, req.(*ListNamespacesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_ListNamespaceResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListNamespaceResourcesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).ListNamespaceResources(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespaceService/ListNamespaceResources", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).ListNamespaceResources(ctx, req.(*ListNamespaceResourcesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespaceService_SetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetNamespaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespaceServiceServer).SetNamespace(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespaceService/SetNamespace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespaceServiceServer).SetNamespace(ctx, req.(*SetNamespaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _NamespaceService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.NamespaceService", - HandlerType: (*NamespaceServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteNamespace", - Handler: _NamespaceService_DeleteNamespace_Handler, - }, - { - MethodName: "GetNamespace", - Handler: _NamespaceService_GetNamespace_Handler, - }, - { - MethodName: "ListNamespaces", - Handler: _NamespaceService_ListNamespaces_Handler, - }, - { - MethodName: "ListNamespaceResources", - Handler: _NamespaceService_ListNamespaceResources_Handler, - }, - { - MethodName: "SetNamespace", - Handler: _NamespaceService_SetNamespace_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "namespaces.proto", -} - -// NamespacePermissionServiceClient is the client API for NamespacePermissionService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type NamespacePermissionServiceClient interface { - // DeleteNamespacePermission removes an existing permission definition - DeleteNamespacePermission(ctx context.Context, in *DeleteNamespacePermissionRequest, opts ...grpc.CallOption) (*DeleteNamespacePermissionResponse, error) - // GetNamespacePermission retrieves an existing permission definition - GetNamespacePermission(ctx context.Context, in *GetNamespacePermissionRequest, opts ...grpc.CallOption) (*GetNamespacePermissionResponse, error) - // ListNamespacePermissions retrieves existing permissions for all namespaces - ListNamespacePermissions(ctx context.Context, in *ListNamespacePermissionsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionsResponse, error) - // ListNamespacePermissionGroups retrieves existing group based permissions on - // a namespace - ListNamespacePermissionGroups(ctx context.Context, in *ListNamespacePermissionGroupsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionGroupsResponse, error) - // ListNamespacePermissionUsers retrieves existing user based permissions on a - // namespace - ListNamespacePermissionUsers(ctx context.Context, in *ListNamespacePermissionUsersRequest, opts ...grpc.CallOption) (*ListNamespacePermissionUsersResponse, error) - // SetNamespacePermission set a new permission definition on a namespace - SetNamespacePermission(ctx context.Context, in *SetNamespacePermissionRequest, opts ...grpc.CallOption) (*SetNamespacePermissionResponse, error) -} - -type namespacePermissionServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewNamespacePermissionServiceClient(cc grpc.ClientConnInterface) NamespacePermissionServiceClient { - return &namespacePermissionServiceClient{cc} -} - -func (c *namespacePermissionServiceClient) DeleteNamespacePermission(ctx context.Context, in *DeleteNamespacePermissionRequest, opts ...grpc.CallOption) (*DeleteNamespacePermissionResponse, error) { - out := new(DeleteNamespacePermissionResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/DeleteNamespacePermission", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespacePermissionServiceClient) GetNamespacePermission(ctx context.Context, in *GetNamespacePermissionRequest, opts ...grpc.CallOption) (*GetNamespacePermissionResponse, error) { - out := new(GetNamespacePermissionResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/GetNamespacePermission", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespacePermissionServiceClient) ListNamespacePermissions(ctx context.Context, in *ListNamespacePermissionsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionsResponse, error) { - out := new(ListNamespacePermissionsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespacePermissionServiceClient) ListNamespacePermissionGroups(ctx context.Context, in *ListNamespacePermissionGroupsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionGroupsResponse, error) { - out := new(ListNamespacePermissionGroupsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespacePermissionServiceClient) ListNamespacePermissionUsers(ctx context.Context, in *ListNamespacePermissionUsersRequest, opts ...grpc.CallOption) (*ListNamespacePermissionUsersResponse, error) { - out := new(ListNamespacePermissionUsersResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *namespacePermissionServiceClient) SetNamespacePermission(ctx context.Context, in *SetNamespacePermissionRequest, opts ...grpc.CallOption) (*SetNamespacePermissionResponse, error) { - out := new(SetNamespacePermissionResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.NamespacePermissionService/SetNamespacePermission", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// NamespacePermissionServiceServer is the server API for NamespacePermissionService service. -type NamespacePermissionServiceServer interface { - // DeleteNamespacePermission removes an existing permission definition - DeleteNamespacePermission(context.Context, *DeleteNamespacePermissionRequest) (*DeleteNamespacePermissionResponse, error) - // GetNamespacePermission retrieves an existing permission definition - GetNamespacePermission(context.Context, *GetNamespacePermissionRequest) (*GetNamespacePermissionResponse, error) - // ListNamespacePermissions retrieves existing permissions for all namespaces - ListNamespacePermissions(context.Context, *ListNamespacePermissionsRequest) (*ListNamespacePermissionsResponse, error) - // ListNamespacePermissionGroups retrieves existing group based permissions on - // a namespace - ListNamespacePermissionGroups(context.Context, *ListNamespacePermissionGroupsRequest) (*ListNamespacePermissionGroupsResponse, error) - // ListNamespacePermissionUsers retrieves existing user based permissions on a - // namespace - ListNamespacePermissionUsers(context.Context, *ListNamespacePermissionUsersRequest) (*ListNamespacePermissionUsersResponse, error) - // SetNamespacePermission set a new permission definition on a namespace - SetNamespacePermission(context.Context, *SetNamespacePermissionRequest) (*SetNamespacePermissionResponse, error) -} - -// UnimplementedNamespacePermissionServiceServer can be embedded to have forward compatible implementations. -type UnimplementedNamespacePermissionServiceServer struct { -} - -func (*UnimplementedNamespacePermissionServiceServer) DeleteNamespacePermission(context.Context, *DeleteNamespacePermissionRequest) (*DeleteNamespacePermissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespacePermission not implemented") -} -func (*UnimplementedNamespacePermissionServiceServer) GetNamespacePermission(context.Context, *GetNamespacePermissionRequest) (*GetNamespacePermissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamespacePermission not implemented") -} -func (*UnimplementedNamespacePermissionServiceServer) ListNamespacePermissions(context.Context, *ListNamespacePermissionsRequest) (*ListNamespacePermissionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissions not implemented") -} -func (*UnimplementedNamespacePermissionServiceServer) ListNamespacePermissionGroups(context.Context, *ListNamespacePermissionGroupsRequest) (*ListNamespacePermissionGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissionGroups not implemented") -} -func (*UnimplementedNamespacePermissionServiceServer) ListNamespacePermissionUsers(context.Context, *ListNamespacePermissionUsersRequest) (*ListNamespacePermissionUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissionUsers not implemented") -} -func (*UnimplementedNamespacePermissionServiceServer) SetNamespacePermission(context.Context, *SetNamespacePermissionRequest) (*SetNamespacePermissionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetNamespacePermission not implemented") -} - -func RegisterNamespacePermissionServiceServer(s *grpc.Server, srv NamespacePermissionServiceServer) { - s.RegisterService(&_NamespacePermissionService_serviceDesc, srv) -} - -func _NamespacePermissionService_DeleteNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteNamespacePermissionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).DeleteNamespacePermission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/DeleteNamespacePermission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).DeleteNamespacePermission(ctx, req.(*DeleteNamespacePermissionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespacePermissionService_GetNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetNamespacePermissionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).GetNamespacePermission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/GetNamespacePermission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).GetNamespacePermission(ctx, req.(*GetNamespacePermissionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespacePermissionService_ListNamespacePermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListNamespacePermissionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissions(ctx, req.(*ListNamespacePermissionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespacePermissionService_ListNamespacePermissionGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListNamespacePermissionGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissionGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissionGroups(ctx, req.(*ListNamespacePermissionGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespacePermissionService_ListNamespacePermissionUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListNamespacePermissionUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissionUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).ListNamespacePermissionUsers(ctx, req.(*ListNamespacePermissionUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _NamespacePermissionService_SetNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetNamespacePermissionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(NamespacePermissionServiceServer).SetNamespacePermission(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.NamespacePermissionService/SetNamespacePermission", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NamespacePermissionServiceServer).SetNamespacePermission(ctx, req.(*SetNamespacePermissionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _NamespacePermissionService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.NamespacePermissionService", - HandlerType: (*NamespacePermissionServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteNamespacePermission", - Handler: _NamespacePermissionService_DeleteNamespacePermission_Handler, - }, - { - MethodName: "GetNamespacePermission", - Handler: _NamespacePermissionService_GetNamespacePermission_Handler, - }, - { - MethodName: "ListNamespacePermissions", - Handler: _NamespacePermissionService_ListNamespacePermissions_Handler, - }, - { - MethodName: "ListNamespacePermissionGroups", - Handler: _NamespacePermissionService_ListNamespacePermissionGroups_Handler, - }, - { - MethodName: "ListNamespacePermissionUsers", - Handler: _NamespacePermissionService_ListNamespacePermissionUsers_Handler, - }, - { - MethodName: "SetNamespacePermission", - Handler: _NamespacePermissionService_SetNamespacePermission_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "namespaces.proto", -} diff --git a/pb/namespaces_grpc.pb.go b/pb/namespaces_grpc.pb.go new file mode 100644 index 0000000..e3570f6 --- /dev/null +++ b/pb/namespaces_grpc.pb.go @@ -0,0 +1,597 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: namespaces.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + NamespaceService_DeleteNamespace_FullMethodName = "/pomerium.dashboard.NamespaceService/DeleteNamespace" + NamespaceService_GetNamespace_FullMethodName = "/pomerium.dashboard.NamespaceService/GetNamespace" + NamespaceService_ListNamespaces_FullMethodName = "/pomerium.dashboard.NamespaceService/ListNamespaces" + NamespaceService_ListNamespaceResources_FullMethodName = "/pomerium.dashboard.NamespaceService/ListNamespaceResources" + NamespaceService_SetNamespace_FullMethodName = "/pomerium.dashboard.NamespaceService/SetNamespace" +) + +// NamespaceServiceClient is the client API for NamespaceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// NamespaceService manages namespaces +type NamespaceServiceClient interface { + // DeleteNamespace deletes a namespace + DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) + // GetNamespace retrieves a namespace + GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) + // ListNamespaces lists all namespaces + ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) + // ListNamespaceResources lists all the resources for a namespace. + ListNamespaceResources(ctx context.Context, in *ListNamespaceResourcesRequest, opts ...grpc.CallOption) (*ListNamespaceResourcesResponse, error) + // SetNamespace creates a namespace or, if the id is specified, updates an + // existing namespace + SetNamespace(ctx context.Context, in *SetNamespaceRequest, opts ...grpc.CallOption) (*SetNamespaceResponse, error) +} + +type namespaceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient { + return &namespaceServiceClient{cc} +} + +func (c *namespaceServiceClient) DeleteNamespace(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteNamespaceResponse) + err := c.cc.Invoke(ctx, NamespaceService_DeleteNamespace_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) GetNamespace(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetNamespaceResponse) + err := c.cc.Invoke(ctx, NamespaceService_GetNamespace_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) ListNamespaces(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNamespacesResponse) + err := c.cc.Invoke(ctx, NamespaceService_ListNamespaces_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) ListNamespaceResources(ctx context.Context, in *ListNamespaceResourcesRequest, opts ...grpc.CallOption) (*ListNamespaceResourcesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNamespaceResourcesResponse) + err := c.cc.Invoke(ctx, NamespaceService_ListNamespaceResources_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespaceServiceClient) SetNamespace(ctx context.Context, in *SetNamespaceRequest, opts ...grpc.CallOption) (*SetNamespaceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetNamespaceResponse) + err := c.cc.Invoke(ctx, NamespaceService_SetNamespace_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NamespaceServiceServer is the server API for NamespaceService service. +// All implementations should embed UnimplementedNamespaceServiceServer +// for forward compatibility. +// +// NamespaceService manages namespaces +type NamespaceServiceServer interface { + // DeleteNamespace deletes a namespace + DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) + // GetNamespace retrieves a namespace + GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) + // ListNamespaces lists all namespaces + ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error) + // ListNamespaceResources lists all the resources for a namespace. + ListNamespaceResources(context.Context, *ListNamespaceResourcesRequest) (*ListNamespaceResourcesResponse, error) + // SetNamespace creates a namespace or, if the id is specified, updates an + // existing namespace + SetNamespace(context.Context, *SetNamespaceRequest) (*SetNamespaceResponse, error) +} + +// UnimplementedNamespaceServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNamespaceServiceServer struct{} + +func (UnimplementedNamespaceServiceServer) DeleteNamespace(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) GetNamespace(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) ListNamespaces(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamespaces not implemented") +} +func (UnimplementedNamespaceServiceServer) ListNamespaceResources(context.Context, *ListNamespaceResourcesRequest) (*ListNamespaceResourcesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamespaceResources not implemented") +} +func (UnimplementedNamespaceServiceServer) SetNamespace(context.Context, *SetNamespaceRequest) (*SetNamespaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetNamespace not implemented") +} +func (UnimplementedNamespaceServiceServer) testEmbeddedByValue() {} + +// UnsafeNamespaceServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NamespaceServiceServer will +// result in compilation errors. +type UnsafeNamespaceServiceServer interface { + mustEmbedUnimplementedNamespaceServiceServer() +} + +func RegisterNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer) { + // If the following call pancis, it indicates UnimplementedNamespaceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&NamespaceService_ServiceDesc, srv) +} + +func _NamespaceService_DeleteNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).DeleteNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespaceService_DeleteNamespace_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).DeleteNamespace(ctx, req.(*DeleteNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_GetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).GetNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespaceService_GetNamespace_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).GetNamespace(ctx, req.(*GetNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_ListNamespaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNamespacesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).ListNamespaces(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespaceService_ListNamespaces_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).ListNamespaces(ctx, req.(*ListNamespacesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_ListNamespaceResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNamespaceResourcesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).ListNamespaceResources(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespaceService_ListNamespaceResources_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).ListNamespaceResources(ctx, req.(*ListNamespaceResourcesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespaceService_SetNamespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetNamespaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespaceServiceServer).SetNamespace(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespaceService_SetNamespace_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespaceServiceServer).SetNamespace(ctx, req.(*SetNamespaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// NamespaceService_ServiceDesc is the grpc.ServiceDesc for NamespaceService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var NamespaceService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.NamespaceService", + HandlerType: (*NamespaceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteNamespace", + Handler: _NamespaceService_DeleteNamespace_Handler, + }, + { + MethodName: "GetNamespace", + Handler: _NamespaceService_GetNamespace_Handler, + }, + { + MethodName: "ListNamespaces", + Handler: _NamespaceService_ListNamespaces_Handler, + }, + { + MethodName: "ListNamespaceResources", + Handler: _NamespaceService_ListNamespaceResources_Handler, + }, + { + MethodName: "SetNamespace", + Handler: _NamespaceService_SetNamespace_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "namespaces.proto", +} + +const ( + NamespacePermissionService_DeleteNamespacePermission_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/DeleteNamespacePermission" + NamespacePermissionService_GetNamespacePermission_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/GetNamespacePermission" + NamespacePermissionService_ListNamespacePermissions_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissions" + NamespacePermissionService_ListNamespacePermissionGroups_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionGroups" + NamespacePermissionService_ListNamespacePermissionUsers_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/ListNamespacePermissionUsers" + NamespacePermissionService_SetNamespacePermission_FullMethodName = "/pomerium.dashboard.NamespacePermissionService/SetNamespacePermission" +) + +// NamespacePermissionServiceClient is the client API for NamespacePermissionService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// NamespacePermissionService manages permissions set on namespaces +type NamespacePermissionServiceClient interface { + // DeleteNamespacePermission removes an existing permission definition + DeleteNamespacePermission(ctx context.Context, in *DeleteNamespacePermissionRequest, opts ...grpc.CallOption) (*DeleteNamespacePermissionResponse, error) + // GetNamespacePermission retrieves an existing permission definition + GetNamespacePermission(ctx context.Context, in *GetNamespacePermissionRequest, opts ...grpc.CallOption) (*GetNamespacePermissionResponse, error) + // ListNamespacePermissions retrieves existing permissions for all namespaces + ListNamespacePermissions(ctx context.Context, in *ListNamespacePermissionsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionsResponse, error) + // ListNamespacePermissionGroups retrieves existing group based permissions on + // a namespace + ListNamespacePermissionGroups(ctx context.Context, in *ListNamespacePermissionGroupsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionGroupsResponse, error) + // ListNamespacePermissionUsers retrieves existing user based permissions on a + // namespace + ListNamespacePermissionUsers(ctx context.Context, in *ListNamespacePermissionUsersRequest, opts ...grpc.CallOption) (*ListNamespacePermissionUsersResponse, error) + // SetNamespacePermission set a new permission definition on a namespace + SetNamespacePermission(ctx context.Context, in *SetNamespacePermissionRequest, opts ...grpc.CallOption) (*SetNamespacePermissionResponse, error) +} + +type namespacePermissionServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNamespacePermissionServiceClient(cc grpc.ClientConnInterface) NamespacePermissionServiceClient { + return &namespacePermissionServiceClient{cc} +} + +func (c *namespacePermissionServiceClient) DeleteNamespacePermission(ctx context.Context, in *DeleteNamespacePermissionRequest, opts ...grpc.CallOption) (*DeleteNamespacePermissionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteNamespacePermissionResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_DeleteNamespacePermission_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespacePermissionServiceClient) GetNamespacePermission(ctx context.Context, in *GetNamespacePermissionRequest, opts ...grpc.CallOption) (*GetNamespacePermissionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetNamespacePermissionResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_GetNamespacePermission_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespacePermissionServiceClient) ListNamespacePermissions(ctx context.Context, in *ListNamespacePermissionsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNamespacePermissionsResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_ListNamespacePermissions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespacePermissionServiceClient) ListNamespacePermissionGroups(ctx context.Context, in *ListNamespacePermissionGroupsRequest, opts ...grpc.CallOption) (*ListNamespacePermissionGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNamespacePermissionGroupsResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_ListNamespacePermissionGroups_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespacePermissionServiceClient) ListNamespacePermissionUsers(ctx context.Context, in *ListNamespacePermissionUsersRequest, opts ...grpc.CallOption) (*ListNamespacePermissionUsersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListNamespacePermissionUsersResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_ListNamespacePermissionUsers_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *namespacePermissionServiceClient) SetNamespacePermission(ctx context.Context, in *SetNamespacePermissionRequest, opts ...grpc.CallOption) (*SetNamespacePermissionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetNamespacePermissionResponse) + err := c.cc.Invoke(ctx, NamespacePermissionService_SetNamespacePermission_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NamespacePermissionServiceServer is the server API for NamespacePermissionService service. +// All implementations should embed UnimplementedNamespacePermissionServiceServer +// for forward compatibility. +// +// NamespacePermissionService manages permissions set on namespaces +type NamespacePermissionServiceServer interface { + // DeleteNamespacePermission removes an existing permission definition + DeleteNamespacePermission(context.Context, *DeleteNamespacePermissionRequest) (*DeleteNamespacePermissionResponse, error) + // GetNamespacePermission retrieves an existing permission definition + GetNamespacePermission(context.Context, *GetNamespacePermissionRequest) (*GetNamespacePermissionResponse, error) + // ListNamespacePermissions retrieves existing permissions for all namespaces + ListNamespacePermissions(context.Context, *ListNamespacePermissionsRequest) (*ListNamespacePermissionsResponse, error) + // ListNamespacePermissionGroups retrieves existing group based permissions on + // a namespace + ListNamespacePermissionGroups(context.Context, *ListNamespacePermissionGroupsRequest) (*ListNamespacePermissionGroupsResponse, error) + // ListNamespacePermissionUsers retrieves existing user based permissions on a + // namespace + ListNamespacePermissionUsers(context.Context, *ListNamespacePermissionUsersRequest) (*ListNamespacePermissionUsersResponse, error) + // SetNamespacePermission set a new permission definition on a namespace + SetNamespacePermission(context.Context, *SetNamespacePermissionRequest) (*SetNamespacePermissionResponse, error) +} + +// UnimplementedNamespacePermissionServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedNamespacePermissionServiceServer struct{} + +func (UnimplementedNamespacePermissionServiceServer) DeleteNamespacePermission(context.Context, *DeleteNamespacePermissionRequest) (*DeleteNamespacePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespacePermission not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) GetNamespacePermission(context.Context, *GetNamespacePermissionRequest) (*GetNamespacePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamespacePermission not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) ListNamespacePermissions(context.Context, *ListNamespacePermissionsRequest) (*ListNamespacePermissionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissions not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) ListNamespacePermissionGroups(context.Context, *ListNamespacePermissionGroupsRequest) (*ListNamespacePermissionGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissionGroups not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) ListNamespacePermissionUsers(context.Context, *ListNamespacePermissionUsersRequest) (*ListNamespacePermissionUsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamespacePermissionUsers not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) SetNamespacePermission(context.Context, *SetNamespacePermissionRequest) (*SetNamespacePermissionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetNamespacePermission not implemented") +} +func (UnimplementedNamespacePermissionServiceServer) testEmbeddedByValue() {} + +// UnsafeNamespacePermissionServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to NamespacePermissionServiceServer will +// result in compilation errors. +type UnsafeNamespacePermissionServiceServer interface { + mustEmbedUnimplementedNamespacePermissionServiceServer() +} + +func RegisterNamespacePermissionServiceServer(s grpc.ServiceRegistrar, srv NamespacePermissionServiceServer) { + // If the following call pancis, it indicates UnimplementedNamespacePermissionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&NamespacePermissionService_ServiceDesc, srv) +} + +func _NamespacePermissionService_DeleteNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNamespacePermissionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).DeleteNamespacePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_DeleteNamespacePermission_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).DeleteNamespacePermission(ctx, req.(*DeleteNamespacePermissionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespacePermissionService_GetNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNamespacePermissionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).GetNamespacePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_GetNamespacePermission_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).GetNamespacePermission(ctx, req.(*GetNamespacePermissionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespacePermissionService_ListNamespacePermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNamespacePermissionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_ListNamespacePermissions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissions(ctx, req.(*ListNamespacePermissionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespacePermissionService_ListNamespacePermissionGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNamespacePermissionGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissionGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_ListNamespacePermissionGroups_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissionGroups(ctx, req.(*ListNamespacePermissionGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespacePermissionService_ListNamespacePermissionUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNamespacePermissionUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissionUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_ListNamespacePermissionUsers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).ListNamespacePermissionUsers(ctx, req.(*ListNamespacePermissionUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NamespacePermissionService_SetNamespacePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetNamespacePermissionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NamespacePermissionServiceServer).SetNamespacePermission(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: NamespacePermissionService_SetNamespacePermission_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NamespacePermissionServiceServer).SetNamespacePermission(ctx, req.(*SetNamespacePermissionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// NamespacePermissionService_ServiceDesc is the grpc.ServiceDesc for NamespacePermissionService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var NamespacePermissionService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.NamespacePermissionService", + HandlerType: (*NamespacePermissionServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteNamespacePermission", + Handler: _NamespacePermissionService_DeleteNamespacePermission_Handler, + }, + { + MethodName: "GetNamespacePermission", + Handler: _NamespacePermissionService_GetNamespacePermission_Handler, + }, + { + MethodName: "ListNamespacePermissions", + Handler: _NamespacePermissionService_ListNamespacePermissions_Handler, + }, + { + MethodName: "ListNamespacePermissionGroups", + Handler: _NamespacePermissionService_ListNamespacePermissionGroups_Handler, + }, + { + MethodName: "ListNamespacePermissionUsers", + Handler: _NamespacePermissionService_ListNamespacePermissionUsers_Handler, + }, + { + MethodName: "SetNamespacePermission", + Handler: _NamespacePermissionService_SetNamespacePermission_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "namespaces.proto", +} diff --git a/pb/policy.pb.go b/pb/policy.pb.go index f80acb5..961373d 100644 --- a/pb/policy.pb.go +++ b/pb/policy.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: policy.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -779,7 +775,7 @@ func file_policy_proto_rawDescGZIP() []byte { } var file_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_policy_proto_goTypes = []interface{}{ +var file_policy_proto_goTypes = []any{ (*Policy)(nil), // 0: pomerium.dashboard.Policy (*DeletePolicyRequest)(nil), // 1: pomerium.dashboard.DeletePolicyRequest (*DeletePolicyResponse)(nil), // 2: pomerium.dashboard.DeletePolicyResponse @@ -826,7 +822,7 @@ func file_policy_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Policy); i { case 0: return &v.state @@ -838,7 +834,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*DeletePolicyRequest); i { case 0: return &v.state @@ -850,7 +846,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*DeletePolicyResponse); i { case 0: return &v.state @@ -862,7 +858,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GetPolicyRequest); i { case 0: return &v.state @@ -874,7 +870,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetPolicyResponse); i { case 0: return &v.state @@ -886,7 +882,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListPoliciesRequest); i { case 0: return &v.state @@ -898,7 +894,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ListPoliciesResponse); i { case 0: return &v.state @@ -910,7 +906,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*SetPolicyRequest); i { case 0: return &v.state @@ -922,7 +918,7 @@ func file_policy_proto_init() { return nil } } - file_policy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_policy_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*SetPolicyResponse); i { case 0: return &v.state @@ -935,7 +931,7 @@ func file_policy_proto_init() { } } } - file_policy_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_policy_proto_msgTypes[5].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -955,203 +951,3 @@ func file_policy_proto_init() { file_policy_proto_goTypes = nil file_policy_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// PolicyServiceClient is the client API for PolicyService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PolicyServiceClient interface { - // DeletePolicy deletes an existing policy - DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) - // GetPolicy retrieves an existing policy - GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) - // ListPolicies lists existing policies based on the ListPoliciesRequest - // parameters - ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) - // SetPolicy creates a new policy or, if the id is specified, updates an - // existing policy - SetPolicy(ctx context.Context, in *SetPolicyRequest, opts ...grpc.CallOption) (*SetPolicyResponse, error) -} - -type policyServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient { - return &policyServiceClient{cc} -} - -func (c *policyServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) { - out := new(DeletePolicyResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PolicyService/DeletePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *policyServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) { - out := new(GetPolicyResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PolicyService/GetPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *policyServiceClient) ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) { - out := new(ListPoliciesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PolicyService/ListPolicies", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *policyServiceClient) SetPolicy(ctx context.Context, in *SetPolicyRequest, opts ...grpc.CallOption) (*SetPolicyResponse, error) { - out := new(SetPolicyResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PolicyService/SetPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PolicyServiceServer is the server API for PolicyService service. -type PolicyServiceServer interface { - // DeletePolicy deletes an existing policy - DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) - // GetPolicy retrieves an existing policy - GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) - // ListPolicies lists existing policies based on the ListPoliciesRequest - // parameters - ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) - // SetPolicy creates a new policy or, if the id is specified, updates an - // existing policy - SetPolicy(context.Context, *SetPolicyRequest) (*SetPolicyResponse, error) -} - -// UnimplementedPolicyServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPolicyServiceServer struct { -} - -func (*UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePolicy not implemented") -} -func (*UnimplementedPolicyServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") -} -func (*UnimplementedPolicyServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPolicies not implemented") -} -func (*UnimplementedPolicyServiceServer) SetPolicy(context.Context, *SetPolicyRequest) (*SetPolicyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetPolicy not implemented") -} - -func RegisterPolicyServiceServer(s *grpc.Server, srv PolicyServiceServer) { - s.RegisterService(&_PolicyService_serviceDesc, srv) -} - -func _PolicyService_DeletePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeletePolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PolicyServiceServer).DeletePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PolicyService/DeletePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PolicyServiceServer).DeletePolicy(ctx, req.(*DeletePolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PolicyService_GetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PolicyServiceServer).GetPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PolicyService/GetPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PolicyServiceServer).GetPolicy(ctx, req.(*GetPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PolicyService_ListPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPoliciesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PolicyServiceServer).ListPolicies(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PolicyService/ListPolicies", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PolicyServiceServer).ListPolicies(ctx, req.(*ListPoliciesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PolicyService_SetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PolicyServiceServer).SetPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PolicyService/SetPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PolicyServiceServer).SetPolicy(ctx, req.(*SetPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PolicyService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.PolicyService", - HandlerType: (*PolicyServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeletePolicy", - Handler: _PolicyService_DeletePolicy_Handler, - }, - { - MethodName: "GetPolicy", - Handler: _PolicyService_GetPolicy_Handler, - }, - { - MethodName: "ListPolicies", - Handler: _PolicyService_ListPolicies_Handler, - }, - { - MethodName: "SetPolicy", - Handler: _PolicyService_SetPolicy_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "policy.proto", -} diff --git a/pb/policy_grpc.pb.go b/pb/policy_grpc.pb.go new file mode 100644 index 0000000..4e36509 --- /dev/null +++ b/pb/policy_grpc.pb.go @@ -0,0 +1,249 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: policy.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + PolicyService_DeletePolicy_FullMethodName = "/pomerium.dashboard.PolicyService/DeletePolicy" + PolicyService_GetPolicy_FullMethodName = "/pomerium.dashboard.PolicyService/GetPolicy" + PolicyService_ListPolicies_FullMethodName = "/pomerium.dashboard.PolicyService/ListPolicies" + PolicyService_SetPolicy_FullMethodName = "/pomerium.dashboard.PolicyService/SetPolicy" +) + +// PolicyServiceClient is the client API for PolicyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// PolicyService manages policy creation and definition +type PolicyServiceClient interface { + // DeletePolicy deletes an existing policy + DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) + // GetPolicy retrieves an existing policy + GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) + // ListPolicies lists existing policies based on the ListPoliciesRequest + // parameters + ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) + // SetPolicy creates a new policy or, if the id is specified, updates an + // existing policy + SetPolicy(ctx context.Context, in *SetPolicyRequest, opts ...grpc.CallOption) (*SetPolicyResponse, error) +} + +type policyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient { + return &policyServiceClient{cc} +} + +func (c *policyServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeletePolicyResponse) + err := c.cc.Invoke(ctx, PolicyService_DeletePolicy_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPolicyResponse) + err := c.cc.Invoke(ctx, PolicyService_GetPolicy_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListPoliciesResponse) + err := c.cc.Invoke(ctx, PolicyService_ListPolicies_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *policyServiceClient) SetPolicy(ctx context.Context, in *SetPolicyRequest, opts ...grpc.CallOption) (*SetPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetPolicyResponse) + err := c.cc.Invoke(ctx, PolicyService_SetPolicy_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PolicyServiceServer is the server API for PolicyService service. +// All implementations should embed UnimplementedPolicyServiceServer +// for forward compatibility. +// +// PolicyService manages policy creation and definition +type PolicyServiceServer interface { + // DeletePolicy deletes an existing policy + DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) + // GetPolicy retrieves an existing policy + GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) + // ListPolicies lists existing policies based on the ListPoliciesRequest + // parameters + ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) + // SetPolicy creates a new policy or, if the id is specified, updates an + // existing policy + SetPolicy(context.Context, *SetPolicyRequest) (*SetPolicyResponse, error) +} + +// UnimplementedPolicyServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPolicyServiceServer struct{} + +func (UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePolicy not implemented") +} +func (UnimplementedPolicyServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") +} +func (UnimplementedPolicyServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPolicies not implemented") +} +func (UnimplementedPolicyServiceServer) SetPolicy(context.Context, *SetPolicyRequest) (*SetPolicyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetPolicy not implemented") +} +func (UnimplementedPolicyServiceServer) testEmbeddedByValue() {} + +// UnsafePolicyServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PolicyServiceServer will +// result in compilation errors. +type UnsafePolicyServiceServer interface { + mustEmbedUnimplementedPolicyServiceServer() +} + +func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer) { + // If the following call pancis, it indicates UnimplementedPolicyServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PolicyService_ServiceDesc, srv) +} + +func _PolicyService_DeletePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletePolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).DeletePolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PolicyService_DeletePolicy_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).DeletePolicy(ctx, req.(*DeletePolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_GetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).GetPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PolicyService_GetPolicy_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).GetPolicy(ctx, req.(*GetPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_ListPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPoliciesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).ListPolicies(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PolicyService_ListPolicies_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).ListPolicies(ctx, req.(*ListPoliciesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PolicyService_SetPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPolicyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PolicyServiceServer).SetPolicy(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PolicyService_SetPolicy_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PolicyServiceServer).SetPolicy(ctx, req.(*SetPolicyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PolicyService_ServiceDesc is the grpc.ServiceDesc for PolicyService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PolicyService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.PolicyService", + HandlerType: (*PolicyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeletePolicy", + Handler: _PolicyService_DeletePolicy_Handler, + }, + { + MethodName: "GetPolicy", + Handler: _PolicyService_GetPolicy_Handler, + }, + { + MethodName: "ListPolicies", + Handler: _PolicyService_ListPolicies_Handler, + }, + { + MethodName: "SetPolicy", + Handler: _PolicyService_SetPolicy_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "policy.proto", +} diff --git a/pb/report.pb.go b/pb/report.pb.go index a0d1c9c..155c7a0 100644 --- a/pb/report.pb.go +++ b/pb/report.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: report.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -182,7 +178,7 @@ func file_report_proto_rawDescGZIP() []byte { } var file_report_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_report_proto_goTypes = []interface{}{ +var file_report_proto_goTypes = []any{ (*PolicyReportRequest)(nil), // 0: pomerium.dashboard.PolicyReportRequest (*PolicyReportResponse)(nil), // 1: pomerium.dashboard.PolicyReportResponse (*Route)(nil), // 2: pomerium.dashboard.Route @@ -208,7 +204,7 @@ func file_report_proto_init() { file_policy_proto_init() file_routes_proto_init() if !protoimpl.UnsafeEnabled { - file_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_report_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*PolicyReportRequest); i { case 0: return &v.state @@ -220,7 +216,7 @@ func file_report_proto_init() { return nil } } - file_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_report_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PolicyReportResponse); i { case 0: return &v.state @@ -252,85 +248,3 @@ func file_report_proto_init() { file_report_proto_goTypes = nil file_report_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ReportClient is the client API for Report service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ReportClient interface { - // PolicyReport generates a policy report - PolicyReport(ctx context.Context, in *PolicyReportRequest, opts ...grpc.CallOption) (*PolicyReportResponse, error) -} - -type reportClient struct { - cc grpc.ClientConnInterface -} - -func NewReportClient(cc grpc.ClientConnInterface) ReportClient { - return &reportClient{cc} -} - -func (c *reportClient) PolicyReport(ctx context.Context, in *PolicyReportRequest, opts ...grpc.CallOption) (*PolicyReportResponse, error) { - out := new(PolicyReportResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.Report/PolicyReport", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ReportServer is the server API for Report service. -type ReportServer interface { - // PolicyReport generates a policy report - PolicyReport(context.Context, *PolicyReportRequest) (*PolicyReportResponse, error) -} - -// UnimplementedReportServer can be embedded to have forward compatible implementations. -type UnimplementedReportServer struct { -} - -func (*UnimplementedReportServer) PolicyReport(context.Context, *PolicyReportRequest) (*PolicyReportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PolicyReport not implemented") -} - -func RegisterReportServer(s *grpc.Server, srv ReportServer) { - s.RegisterService(&_Report_serviceDesc, srv) -} - -func _Report_PolicyReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PolicyReportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ReportServer).PolicyReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.Report/PolicyReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ReportServer).PolicyReport(ctx, req.(*PolicyReportRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Report_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.Report", - HandlerType: (*ReportServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PolicyReport", - Handler: _Report_PolicyReport_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "report.proto", -} diff --git a/pb/report_grpc.pb.go b/pb/report_grpc.pb.go new file mode 100644 index 0000000..9b5c518 --- /dev/null +++ b/pb/report_grpc.pb.go @@ -0,0 +1,121 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: report.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Report_PolicyReport_FullMethodName = "/pomerium.dashboard.Report/PolicyReport" +) + +// ReportClient is the client API for Report service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ReportClient interface { + // PolicyReport generates a policy report + PolicyReport(ctx context.Context, in *PolicyReportRequest, opts ...grpc.CallOption) (*PolicyReportResponse, error) +} + +type reportClient struct { + cc grpc.ClientConnInterface +} + +func NewReportClient(cc grpc.ClientConnInterface) ReportClient { + return &reportClient{cc} +} + +func (c *reportClient) PolicyReport(ctx context.Context, in *PolicyReportRequest, opts ...grpc.CallOption) (*PolicyReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PolicyReportResponse) + err := c.cc.Invoke(ctx, Report_PolicyReport_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ReportServer is the server API for Report service. +// All implementations should embed UnimplementedReportServer +// for forward compatibility. +type ReportServer interface { + // PolicyReport generates a policy report + PolicyReport(context.Context, *PolicyReportRequest) (*PolicyReportResponse, error) +} + +// UnimplementedReportServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportServer struct{} + +func (UnimplementedReportServer) PolicyReport(context.Context, *PolicyReportRequest) (*PolicyReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PolicyReport not implemented") +} +func (UnimplementedReportServer) testEmbeddedByValue() {} + +// UnsafeReportServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ReportServer will +// result in compilation errors. +type UnsafeReportServer interface { + mustEmbedUnimplementedReportServer() +} + +func RegisterReportServer(s grpc.ServiceRegistrar, srv ReportServer) { + // If the following call pancis, it indicates UnimplementedReportServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Report_ServiceDesc, srv) +} + +func _Report_PolicyReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PolicyReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ReportServer).PolicyReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Report_PolicyReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ReportServer).PolicyReport(ctx, req.(*PolicyReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Report_ServiceDesc is the grpc.ServiceDesc for Report service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Report_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.Report", + HandlerType: (*ReportServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PolicyReport", + Handler: _Report_PolicyReport_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "report.proto", +} diff --git a/pb/routes.pb.go b/pb/routes.pb.go index 181dc61..be08c3f 100644 --- a/pb/routes.pb.go +++ b/pb/routes.pb.go @@ -1,18 +1,14 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: routes.proto package pb import ( - context "context" - v3 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" - v31 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" + v31 "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3" + v3 "github.com/envoyproxy/go-control-plane/envoy/config/route/v3" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" @@ -28,6 +24,56 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type IssuerFormat int32 + +const ( + // Issuer strings will be the hostname of the route, with no scheme or + // trailing slash. + IssuerFormat_IssuerHostOnly IssuerFormat = 0 + // Issuer strings will be a complete URI, including the scheme and ending + // with a trailing slash. + IssuerFormat_IssuerURI IssuerFormat = 1 +) + +// Enum value maps for IssuerFormat. +var ( + IssuerFormat_name = map[int32]string{ + 0: "IssuerHostOnly", + 1: "IssuerURI", + } + IssuerFormat_value = map[string]int32{ + "IssuerHostOnly": 0, + "IssuerURI": 1, + } +) + +func (x IssuerFormat) Enum() *IssuerFormat { + p := new(IssuerFormat) + *p = x + return p +} + +func (x IssuerFormat) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IssuerFormat) Descriptor() protoreflect.EnumDescriptor { + return file_routes_proto_enumTypes[0].Descriptor() +} + +func (IssuerFormat) Type() protoreflect.EnumType { + return &file_routes_proto_enumTypes[0] +} + +func (x IssuerFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IssuerFormat.Descriptor instead. +func (IssuerFormat) EnumDescriptor() ([]byte, []int) { + return file_routes_proto_rawDescGZIP(), []int{0} +} + type RouteRewriteHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -111,6 +157,61 @@ type RouteRewriteHeader_Prefix struct { func (*RouteRewriteHeader_Prefix) isRouteRewriteHeader_Matcher() {} +type RouteDirectResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` +} + +func (x *RouteDirectResponse) Reset() { + *x = RouteDirectResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_routes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RouteDirectResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RouteDirectResponse) ProtoMessage() {} + +func (x *RouteDirectResponse) ProtoReflect() protoreflect.Message { + mi := &file_routes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RouteDirectResponse.ProtoReflect.Descriptor instead. +func (*RouteDirectResponse) Descriptor() ([]byte, []int) { + return file_routes_proto_rawDescGZIP(), []int{1} +} + +func (x *RouteDirectResponse) GetStatus() uint32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *RouteDirectResponse) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + // Route defines a proxy route's settings and policy associations type Route struct { state protoimpl.MessageState @@ -127,6 +228,8 @@ type Route struct { StatName string `protobuf:"bytes,47,opt,name=stat_name,json=statName,proto3" json:"stat_name,omitempty"` From string `protobuf:"bytes,6,opt,name=from,proto3" json:"from,omitempty"` To []string `protobuf:"bytes,7,rep,name=to,proto3" json:"to,omitempty"` + Redirect *v3.RedirectAction `protobuf:"bytes,40,opt,name=redirect,proto3" json:"redirect,omitempty"` + Response *RouteDirectResponse `protobuf:"bytes,59,opt,name=response,proto3" json:"response,omitempty"` Prefix *string `protobuf:"bytes,8,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"` Path *string `protobuf:"bytes,9,opt,name=path,proto3,oneof" json:"path,omitempty"` Regex *string `protobuf:"bytes,10,opt,name=regex,proto3,oneof" json:"regex,omitempty"` @@ -156,9 +259,10 @@ type Route struct { PreserveHostHeader *bool `protobuf:"varint,25,opt,name=preserve_host_header,json=preserveHostHeader,proto3,oneof" json:"preserve_host_header,omitempty"` PassIdentityHeaders *bool `protobuf:"varint,26,opt,name=pass_identity_headers,json=passIdentityHeaders,proto3,oneof" json:"pass_identity_headers,omitempty"` KubernetesServiceAccountToken *string `protobuf:"bytes,27,opt,name=kubernetes_service_account_token,json=kubernetesServiceAccountToken,proto3,oneof" json:"kubernetes_service_account_token,omitempty"` - EnvoyOpts *v3.Cluster `protobuf:"bytes,39,opt,name=envoy_opts,json=envoyOpts,proto3" json:"envoy_opts,omitempty"` - Redirect *v31.RedirectAction `protobuf:"bytes,40,opt,name=redirect,proto3" json:"redirect,omitempty"` + KubernetesServiceAccountTokenFile *string `protobuf:"bytes,60,opt,name=kubernetes_service_account_token_file,json=kubernetesServiceAccountTokenFile,proto3,oneof" json:"kubernetes_service_account_token_file,omitempty"` + EnvoyOpts *v31.Cluster `protobuf:"bytes,39,opt,name=envoy_opts,json=envoyOpts,proto3" json:"envoy_opts,omitempty"` EnableGoogleCloudServerlessAuthentication bool `protobuf:"varint,46,opt,name=enable_google_cloud_serverless_authentication,json=enableGoogleCloudServerlessAuthentication,proto3" json:"enable_google_cloud_serverless_authentication,omitempty"` + JwtIssuerFormat IssuerFormat `protobuf:"varint,61,opt,name=jwt_issuer_format,json=jwtIssuerFormat,proto3,enum=pomerium.dashboard.IssuerFormat" json:"jwt_issuer_format,omitempty"` IdpClientId *string `protobuf:"bytes,57,opt,name=idp_client_id,json=idpClientId,proto3,oneof" json:"idp_client_id,omitempty"` IdpClientSecret *string `protobuf:"bytes,58,opt,name=idp_client_secret,json=idpClientSecret,proto3,oneof" json:"idp_client_secret,omitempty"` ShowErrorDetails bool `protobuf:"varint,53,opt,name=show_error_details,json=showErrorDetails,proto3" json:"show_error_details,omitempty"` @@ -174,7 +278,7 @@ type Route struct { func (x *Route) Reset() { *x = Route{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[1] + mi := &file_routes_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -187,7 +291,7 @@ func (x *Route) String() string { func (*Route) ProtoMessage() {} func (x *Route) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[1] + mi := &file_routes_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -200,7 +304,7 @@ func (x *Route) ProtoReflect() protoreflect.Message { // Deprecated: Use Route.ProtoReflect.Descriptor instead. func (*Route) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{1} + return file_routes_proto_rawDescGZIP(), []int{2} } func (x *Route) GetId() string { @@ -266,6 +370,20 @@ func (x *Route) GetTo() []string { return nil } +func (x *Route) GetRedirect() *v3.RedirectAction { + if x != nil { + return x.Redirect + } + return nil +} + +func (x *Route) GetResponse() *RouteDirectResponse { + if x != nil { + return x.Response + } + return nil +} + func (x *Route) GetPrefix() string { if x != nil && x.Prefix != nil { return *x.Prefix @@ -469,16 +587,16 @@ func (x *Route) GetKubernetesServiceAccountToken() string { return "" } -func (x *Route) GetEnvoyOpts() *v3.Cluster { - if x != nil { - return x.EnvoyOpts +func (x *Route) GetKubernetesServiceAccountTokenFile() string { + if x != nil && x.KubernetesServiceAccountTokenFile != nil { + return *x.KubernetesServiceAccountTokenFile } - return nil + return "" } -func (x *Route) GetRedirect() *v31.RedirectAction { +func (x *Route) GetEnvoyOpts() *v31.Cluster { if x != nil { - return x.Redirect + return x.EnvoyOpts } return nil } @@ -490,6 +608,13 @@ func (x *Route) GetEnableGoogleCloudServerlessAuthentication() bool { return false } +func (x *Route) GetJwtIssuerFormat() IssuerFormat { + if x != nil { + return x.JwtIssuerFormat + } + return IssuerFormat_IssuerHostOnly +} + func (x *Route) GetIdpClientId() string { if x != nil && x.IdpClientId != nil { return *x.IdpClientId @@ -553,7 +678,7 @@ type RouteWithPolicies struct { func (x *RouteWithPolicies) Reset() { *x = RouteWithPolicies{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[2] + mi := &file_routes_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -566,7 +691,7 @@ func (x *RouteWithPolicies) String() string { func (*RouteWithPolicies) ProtoMessage() {} func (x *RouteWithPolicies) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[2] + mi := &file_routes_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -579,7 +704,7 @@ func (x *RouteWithPolicies) ProtoReflect() protoreflect.Message { // Deprecated: Use RouteWithPolicies.ProtoReflect.Descriptor instead. func (*RouteWithPolicies) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{2} + return file_routes_proto_rawDescGZIP(), []int{3} } func (x *RouteWithPolicies) GetRoute() *Route { @@ -607,7 +732,7 @@ type DeleteRouteRequest struct { func (x *DeleteRouteRequest) Reset() { *x = DeleteRouteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[3] + mi := &file_routes_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -620,7 +745,7 @@ func (x *DeleteRouteRequest) String() string { func (*DeleteRouteRequest) ProtoMessage() {} func (x *DeleteRouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[3] + mi := &file_routes_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -633,7 +758,7 @@ func (x *DeleteRouteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRouteRequest.ProtoReflect.Descriptor instead. func (*DeleteRouteRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{3} + return file_routes_proto_rawDescGZIP(), []int{4} } func (x *DeleteRouteRequest) GetId() string { @@ -652,7 +777,7 @@ type DeleteRouteResponse struct { func (x *DeleteRouteResponse) Reset() { *x = DeleteRouteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[4] + mi := &file_routes_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -665,7 +790,7 @@ func (x *DeleteRouteResponse) String() string { func (*DeleteRouteResponse) ProtoMessage() {} func (x *DeleteRouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[4] + mi := &file_routes_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -678,7 +803,7 @@ func (x *DeleteRouteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRouteResponse.ProtoReflect.Descriptor instead. func (*DeleteRouteResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{4} + return file_routes_proto_rawDescGZIP(), []int{5} } type DeleteRoutesRequest struct { @@ -692,7 +817,7 @@ type DeleteRoutesRequest struct { func (x *DeleteRoutesRequest) Reset() { *x = DeleteRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[5] + mi := &file_routes_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -705,7 +830,7 @@ func (x *DeleteRoutesRequest) String() string { func (*DeleteRoutesRequest) ProtoMessage() {} func (x *DeleteRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[5] + mi := &file_routes_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -718,7 +843,7 @@ func (x *DeleteRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRoutesRequest.ProtoReflect.Descriptor instead. func (*DeleteRoutesRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{5} + return file_routes_proto_rawDescGZIP(), []int{6} } func (x *DeleteRoutesRequest) GetIds() []string { @@ -737,7 +862,7 @@ type DeleteRoutesResponse struct { func (x *DeleteRoutesResponse) Reset() { *x = DeleteRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[6] + mi := &file_routes_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -750,7 +875,7 @@ func (x *DeleteRoutesResponse) String() string { func (*DeleteRoutesResponse) ProtoMessage() {} func (x *DeleteRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[6] + mi := &file_routes_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -763,7 +888,7 @@ func (x *DeleteRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRoutesResponse.ProtoReflect.Descriptor instead. func (*DeleteRoutesResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{6} + return file_routes_proto_rawDescGZIP(), []int{7} } type GetRouteRequest struct { @@ -777,7 +902,7 @@ type GetRouteRequest struct { func (x *GetRouteRequest) Reset() { *x = GetRouteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[7] + mi := &file_routes_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -790,7 +915,7 @@ func (x *GetRouteRequest) String() string { func (*GetRouteRequest) ProtoMessage() {} func (x *GetRouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[7] + mi := &file_routes_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -803,7 +928,7 @@ func (x *GetRouteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRouteRequest.ProtoReflect.Descriptor instead. func (*GetRouteRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{7} + return file_routes_proto_rawDescGZIP(), []int{8} } func (x *GetRouteRequest) GetId() string { @@ -824,7 +949,7 @@ type GetRouteResponse struct { func (x *GetRouteResponse) Reset() { *x = GetRouteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[8] + mi := &file_routes_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -837,7 +962,7 @@ func (x *GetRouteResponse) String() string { func (*GetRouteResponse) ProtoMessage() {} func (x *GetRouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[8] + mi := &file_routes_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -850,7 +975,7 @@ func (x *GetRouteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRouteResponse.ProtoReflect.Descriptor instead. func (*GetRouteResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{8} + return file_routes_proto_rawDescGZIP(), []int{9} } func (x *GetRouteResponse) GetRoute() *Route { @@ -880,7 +1005,7 @@ type ListRoutesRequest struct { func (x *ListRoutesRequest) Reset() { *x = ListRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[9] + mi := &file_routes_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -893,7 +1018,7 @@ func (x *ListRoutesRequest) String() string { func (*ListRoutesRequest) ProtoMessage() {} func (x *ListRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[9] + mi := &file_routes_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -906,7 +1031,7 @@ func (x *ListRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRoutesRequest.ProtoReflect.Descriptor instead. func (*ListRoutesRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{9} + return file_routes_proto_rawDescGZIP(), []int{10} } func (x *ListRoutesRequest) GetNamespace() string { @@ -957,7 +1082,7 @@ type ListRoutesResponse struct { func (x *ListRoutesResponse) Reset() { *x = ListRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[10] + mi := &file_routes_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -970,7 +1095,7 @@ func (x *ListRoutesResponse) String() string { func (*ListRoutesResponse) ProtoMessage() {} func (x *ListRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[10] + mi := &file_routes_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -983,7 +1108,7 @@ func (x *ListRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRoutesResponse.ProtoReflect.Descriptor instead. func (*ListRoutesResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{10} + return file_routes_proto_rawDescGZIP(), []int{11} } func (x *ListRoutesResponse) GetRoutes() []*Route { @@ -1014,7 +1139,7 @@ type LoadRoutesRequest struct { func (x *LoadRoutesRequest) Reset() { *x = LoadRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[11] + mi := &file_routes_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1027,7 +1152,7 @@ func (x *LoadRoutesRequest) String() string { func (*LoadRoutesRequest) ProtoMessage() {} func (x *LoadRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[11] + mi := &file_routes_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1040,7 +1165,7 @@ func (x *LoadRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use LoadRoutesRequest.ProtoReflect.Descriptor instead. func (*LoadRoutesRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{11} + return file_routes_proto_rawDescGZIP(), []int{12} } func (x *LoadRoutesRequest) GetName() string { @@ -1070,7 +1195,7 @@ type LoadRoutesResponse struct { func (x *LoadRoutesResponse) Reset() { *x = LoadRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[12] + mi := &file_routes_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1083,7 +1208,7 @@ func (x *LoadRoutesResponse) String() string { func (*LoadRoutesResponse) ProtoMessage() {} func (x *LoadRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[12] + mi := &file_routes_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1096,7 +1221,7 @@ func (x *LoadRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use LoadRoutesResponse.ProtoReflect.Descriptor instead. func (*LoadRoutesResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{12} + return file_routes_proto_rawDescGZIP(), []int{13} } func (x *LoadRoutesResponse) GetRoutes() []*RouteWithPolicies { @@ -1117,7 +1242,7 @@ type SetRouteRequest struct { func (x *SetRouteRequest) Reset() { *x = SetRouteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[13] + mi := &file_routes_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1130,7 +1255,7 @@ func (x *SetRouteRequest) String() string { func (*SetRouteRequest) ProtoMessage() {} func (x *SetRouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[13] + mi := &file_routes_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1143,7 +1268,7 @@ func (x *SetRouteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetRouteRequest.ProtoReflect.Descriptor instead. func (*SetRouteRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{13} + return file_routes_proto_rawDescGZIP(), []int{14} } func (x *SetRouteRequest) GetRoute() *Route { @@ -1164,7 +1289,7 @@ type SetRouteResponse struct { func (x *SetRouteResponse) Reset() { *x = SetRouteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[14] + mi := &file_routes_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1177,7 +1302,7 @@ func (x *SetRouteResponse) String() string { func (*SetRouteResponse) ProtoMessage() {} func (x *SetRouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[14] + mi := &file_routes_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1190,7 +1315,7 @@ func (x *SetRouteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetRouteResponse.ProtoReflect.Descriptor instead. func (*SetRouteResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{14} + return file_routes_proto_rawDescGZIP(), []int{15} } func (x *SetRouteResponse) GetRoute() *Route { @@ -1211,7 +1336,7 @@ type SetRoutesRequest struct { func (x *SetRoutesRequest) Reset() { *x = SetRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[15] + mi := &file_routes_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1224,7 +1349,7 @@ func (x *SetRoutesRequest) String() string { func (*SetRoutesRequest) ProtoMessage() {} func (x *SetRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[15] + mi := &file_routes_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1237,7 +1362,7 @@ func (x *SetRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetRoutesRequest.ProtoReflect.Descriptor instead. func (*SetRoutesRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{15} + return file_routes_proto_rawDescGZIP(), []int{16} } func (x *SetRoutesRequest) GetRoutes() []*Route { @@ -1258,7 +1383,7 @@ type SetRoutesResponse struct { func (x *SetRoutesResponse) Reset() { *x = SetRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[16] + mi := &file_routes_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1271,7 +1396,7 @@ func (x *SetRoutesResponse) String() string { func (*SetRoutesResponse) ProtoMessage() {} func (x *SetRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[16] + mi := &file_routes_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1284,7 +1409,7 @@ func (x *SetRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetRoutesResponse.ProtoReflect.Descriptor instead. func (*SetRoutesResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{16} + return file_routes_proto_rawDescGZIP(), []int{17} } func (x *SetRoutesResponse) GetRoutes() []*Route { @@ -1306,7 +1431,7 @@ type MoveRoutesRequest struct { func (x *MoveRoutesRequest) Reset() { *x = MoveRoutesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[17] + mi := &file_routes_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1319,7 +1444,7 @@ func (x *MoveRoutesRequest) String() string { func (*MoveRoutesRequest) ProtoMessage() {} func (x *MoveRoutesRequest) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[17] + mi := &file_routes_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1332,7 +1457,7 @@ func (x *MoveRoutesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use MoveRoutesRequest.ProtoReflect.Descriptor instead. func (*MoveRoutesRequest) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{17} + return file_routes_proto_rawDescGZIP(), []int{18} } func (x *MoveRoutesRequest) GetRouteIds() []string { @@ -1358,7 +1483,7 @@ type MoveRoutesResponse struct { func (x *MoveRoutesResponse) Reset() { *x = MoveRoutesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_routes_proto_msgTypes[18] + mi := &file_routes_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1371,7 +1496,7 @@ func (x *MoveRoutesResponse) String() string { func (*MoveRoutesResponse) ProtoMessage() {} func (x *MoveRoutesResponse) ProtoReflect() protoreflect.Message { - mi := &file_routes_proto_msgTypes[18] + mi := &file_routes_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1384,7 +1509,7 @@ func (x *MoveRoutesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use MoveRoutesResponse.ProtoReflect.Descriptor instead. func (*MoveRoutesResponse) Descriptor() ([]byte, []int) { - return file_routes_proto_rawDescGZIP(), []int{18} + return file_routes_proto_rawDescGZIP(), []int{19} } var File_routes_proto protoreflect.FileDescriptor @@ -1409,346 +1534,370 @@ var file_routes_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x22, - 0xc2, 0x1a, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x2f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x02, 0x74, 0x6f, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x88, 0x01, - 0x01, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x72, 0x65, - 0x67, 0x65, 0x78, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x72, 0x65, 0x67, - 0x65, 0x78, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, - 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, - 0x0d, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x88, 0x01, - 0x01, 0x12, 0x37, 0x0a, 0x15, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x04, 0x52, 0x13, 0x72, 0x65, 0x67, 0x65, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x1a, 0x72, 0x65, - 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, - 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x26, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, - 0x52, 0x18, 0x72, 0x65, 0x67, 0x65, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x53, 0x75, - 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, - 0x0c, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x1e, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x07, 0x52, 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x49, 0x0a, 0x1f, 0x68, 0x6f, - 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x20, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x08, 0x52, 0x1b, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x41, 0x0a, 0x13, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, + 0x64, 0x79, 0x22, 0xd6, 0x1c, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x1d, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, + 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6d, 0x6f, 0x64, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x2f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x41, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x18, 0x28, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, + 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x76, + 0x33, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x43, 0x0a, 0x08, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x3b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, + 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1b, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x05, 0x72, 0x65, 0x67, 0x65, 0x78, 0x88, 0x01, 0x01, + 0x12, 0x2a, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x66, + 0x69, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x15, + 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x61, + 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x13, 0x72, 0x65, 0x67, 0x65, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, 0x74, 0x74, 0x65, - 0x72, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x53, 0x0a, 0x24, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, + 0x72, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x1a, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x26, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x18, 0x72, 0x65, 0x67, + 0x65, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x68, 0x6f, 0x73, 0x74, + 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, + 0x52, 0x0b, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x88, 0x01, 0x01, + 0x12, 0x33, 0x0a, 0x13, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, + 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x48, 0x07, 0x52, + 0x11, 0x68, 0x6f, 0x73, 0x74, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x49, 0x0a, 0x1f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x21, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x09, 0x52, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x65, 0x67, 0x65, 0x78, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x74, - 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x14, 0x72, 0x65, - 0x67, 0x65, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x18, 0x2d, 0x20, 0x01, 0x28, 0x03, 0x48, 0x0a, 0x52, 0x12, 0x72, 0x65, 0x67, 0x65, - 0x78, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x88, 0x01, - 0x01, 0x12, 0x38, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x0b, 0x52, - 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x0c, 0x69, - 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x30, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x0c, 0x52, 0x0b, - 0x69, 0x64, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2e, - 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, - 0x74, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0d, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x22, - 0x0a, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x70, 0x64, 0x79, 0x18, 0x31, 0x20, 0x01, - 0x28, 0x08, 0x48, 0x0e, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x70, 0x64, 0x79, 0x88, - 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0f, 0x52, 0x0d, 0x74, - 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x88, 0x01, 0x01, 0x12, - 0x3c, 0x0a, 0x18, 0x74, 0x6c, 0x73, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x33, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x10, 0x52, 0x15, 0x74, 0x6c, 0x73, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x40, 0x0a, - 0x1a, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x34, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x11, 0x52, 0x17, 0x74, 0x6c, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, - 0x3c, 0x0a, 0x19, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x61, - 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x29, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x12, 0x52, 0x14, 0x74, 0x6c, 0x73, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, - 0x61, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, - 0x16, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x13, 0x52, - 0x12, 0x74, 0x6c, 0x73, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, - 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x51, 0x0a, 0x24, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, - 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x63, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x2b, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x14, 0x52, 0x1e, 0x74, 0x6c, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x4b, 0x65, 0x79, - 0x50, 0x61, 0x69, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x20, 0x74, 0x6c, 0x73, - 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, - 0x72, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x37, 0x20, - 0x01, 0x28, 0x08, 0x48, 0x15, 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x60, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x17, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, - 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, - 0x63, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x38, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x12, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x73, 0x12, 0x60, 0x0a, 0x18, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, - 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x16, - 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x35, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x19, - 0x20, 0x01, 0x28, 0x08, 0x48, 0x16, 0x52, 0x12, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x48, 0x6f, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, - 0x15, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x17, 0x52, 0x13, - 0x70, 0x61, 0x73, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x20, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, - 0x65, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x18, 0x52, 0x1d, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x0a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x5f, 0x6f, 0x70, - 0x74, 0x73, 0x18, 0x27, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, - 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, - 0x76, 0x33, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x65, 0x6e, 0x76, 0x6f, - 0x79, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x08, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, - 0x74, 0x18, 0x28, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x76, 0x33, 0x2e, - 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, - 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x60, 0x0a, 0x2d, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, - 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x2e, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x29, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, 0x6c, 0x6f, - 0x75, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x6c, 0x65, 0x73, 0x73, 0x41, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0d, 0x69, 0x64, - 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x39, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x19, 0x52, 0x0b, 0x69, 0x64, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, - 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x3a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x1a, - 0x52, 0x0f, 0x69, 0x64, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x35, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x10, 0x73, 0x68, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x36, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x64, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x23, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x1a, 0x44, 0x0a, 0x16, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x45, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x42, 0x11, 0x0a, 0x0f, 0x5f, - 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x18, - 0x0a, 0x16, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x72, 0x65, 0x67, - 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, - 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x68, 0x6f, 0x73, 0x74, - 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x68, 0x6f, 0x73, - 0x74, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x42, 0x22, 0x0a, 0x20, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x72, - 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, - 0x74, 0x65, 0x72, 0x6e, 0x42, 0x27, 0x0a, 0x25, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x17, 0x0a, - 0x15, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x77, 0x65, - 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x5f, 0x73, 0x70, 0x64, 0x79, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x74, 0x6c, 0x73, 0x5f, - 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x42, 0x1b, 0x0a, 0x19, 0x5f, - 0x74, 0x6c, 0x73, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x74, 0x6c, 0x73, - 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x74, 0x6c, 0x73, 0x5f, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, - 0x69, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x19, 0x0a, 0x17, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, - 0x42, 0x27, 0x0a, 0x25, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, + 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x48, 0x08, + 0x52, 0x1b, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x67, 0x65, 0x78, 0x52, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x88, 0x01, 0x01, + 0x12, 0x53, 0x0a, 0x24, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x72, 0x65, + 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, + 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x48, 0x09, + 0x52, 0x20, 0x68, 0x6f, 0x73, 0x74, 0x50, 0x61, 0x74, 0x68, 0x52, 0x65, 0x67, 0x65, 0x78, 0x52, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x14, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x70, + 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x2d, 0x20, + 0x01, 0x28, 0x03, 0x48, 0x0a, 0x52, 0x12, 0x72, 0x65, 0x67, 0x65, 0x78, 0x50, 0x72, 0x69, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, 0x07, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x0b, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x30, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x0c, 0x52, 0x0b, 0x69, 0x64, 0x6c, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x10, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x08, 0x48, 0x0d, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x57, 0x65, 0x62, 0x73, + 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x73, 0x70, 0x64, 0x79, 0x18, 0x31, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0e, 0x52, + 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x70, 0x64, 0x79, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, + 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0f, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, + 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, 0x18, 0x74, 0x6c, + 0x73, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x33, 0x20, 0x01, 0x28, 0x09, 0x48, 0x10, 0x52, 0x15, + 0x74, 0x6c, 0x73, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x40, 0x0a, 0x1a, 0x74, 0x6c, 0x73, 0x5f, + 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x34, 0x20, 0x01, 0x28, 0x09, 0x48, 0x11, 0x52, 0x17, + 0x74, 0x6c, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, 0x19, 0x74, 0x6c, + 0x73, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x5f, + 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x29, 0x20, 0x01, 0x28, 0x09, 0x48, 0x12, 0x52, + 0x14, 0x74, 0x6c, 0x73, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x61, 0x4b, 0x65, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x16, 0x74, 0x6c, 0x73, 0x5f, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x13, 0x52, 0x12, 0x74, 0x6c, 0x73, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x51, 0x0a, 0x24, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x23, 0x0a, 0x21, 0x5f, 0x74, 0x6c, - 0x73, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x17, - 0x0a, 0x15, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x68, 0x6f, 0x73, 0x74, - 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x70, 0x61, 0x73, 0x73, + 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x14, 0x52, 0x1e, 0x74, 0x6c, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x49, + 0x64, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x20, 0x74, 0x6c, 0x73, 0x5f, 0x75, 0x70, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x67, + 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x37, 0x20, 0x01, 0x28, 0x08, 0x48, 0x15, + 0x52, 0x1d, 0x74, 0x6c, 0x73, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x6c, 0x6c, + 0x6f, 0x77, 0x52, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, + 0x01, 0x01, 0x12, 0x60, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x11, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x18, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x63, 0x0a, 0x14, 0x73, 0x65, + 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x18, 0x38, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x73, 0x65, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, + 0x60, 0x0a, 0x18, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x2c, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x16, 0x72, 0x65, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x73, 0x12, 0x35, 0x0a, 0x14, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x68, 0x6f, + 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x19, 0x20, 0x01, 0x28, 0x08, 0x48, + 0x16, 0x52, 0x12, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x48, 0x6f, 0x73, 0x74, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x15, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x42, 0x23, 0x0a, 0x21, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x69, 0x64, 0x70, 0x5f, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x69, 0x64, 0x70, - 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4a, 0x04, - 0x08, 0x32, 0x10, 0x33, 0x22, 0x7c, 0x0a, 0x11, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x57, 0x69, 0x74, - 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, + 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x17, 0x52, 0x13, 0x70, 0x61, 0x73, 0x73, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x4c, 0x0a, 0x20, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x48, 0x18, 0x52, 0x1d, 0x6b, + 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x12, + 0x55, 0x0a, 0x25, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x3c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x19, + 0x52, 0x21, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x46, + 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x0a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x5f, + 0x6f, 0x70, 0x74, 0x73, 0x18, 0x27, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6e, 0x76, + 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x65, 0x6e, + 0x76, 0x6f, 0x79, 0x4f, 0x70, 0x74, 0x73, 0x12, 0x60, 0x0a, 0x2d, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x2e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x29, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x6c, 0x65, 0x73, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x11, 0x6a, 0x77, 0x74, + 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x3d, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, + 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0f, 0x6a, 0x77, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, + 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x0d, 0x69, 0x64, 0x70, 0x5f, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x39, 0x20, 0x01, 0x28, 0x09, 0x48, 0x1a, + 0x52, 0x0b, 0x69, 0x64, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x3a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x1b, 0x52, 0x0f, 0x69, + 0x64, 0x70, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x35, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x73, + 0x68, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, + 0x23, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x36, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x49, 0x64, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x23, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x44, 0x0a, + 0x16, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x45, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, + 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x42, 0x08, + 0x0a, 0x06, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x18, 0x0a, 0x16, 0x5f, + 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x61, + 0x74, 0x74, 0x65, 0x72, 0x6e, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, + 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x72, 0x65, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x72, + 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x22, 0x0a, + 0x20, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x67, 0x65, + 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, + 0x6e, 0x42, 0x27, 0x0a, 0x25, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, + 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x72, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x75, + 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x72, + 0x65, 0x67, 0x65, 0x78, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, + 0x0f, 0x0a, 0x0d, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, + 0x73, 0x70, 0x64, 0x79, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x74, 0x6c, 0x73, + 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, + 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, + 0x69, 0x64, 0x42, 0x19, 0x0a, 0x17, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x27, 0x0a, + 0x25, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, + 0x61, 0x69, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x23, 0x0a, 0x21, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x75, + 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, + 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x17, 0x0a, 0x15, 0x5f, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x42, 0x23, + 0x0a, 0x21, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x42, 0x28, 0x0a, 0x26, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, + 0x65, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x10, 0x0a, + 0x0e, 0x5f, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x42, + 0x14, 0x0a, 0x12, 0x5f, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x4a, 0x04, 0x08, 0x32, 0x10, 0x33, 0x22, 0x7c, 0x0a, 0x11, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x12, 0x36, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, + 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x15, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, + 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x43, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, + 0xd0, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1b, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, + 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, + 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x42, 0x79, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, + 0x62, 0x79, 0x22, 0x68, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x43, 0x0a, 0x11, + 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0x53, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x06, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x42, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, - 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, - 0x65, 0x73, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x27, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x43, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x05, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x02, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, - 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x88, 0x01, 0x01, 0x42, - 0x08, 0x0a, 0x06, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0b, - 0x0a, 0x09, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x22, 0x68, 0x0a, 0x12, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, - 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x43, 0x0a, 0x11, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x53, 0x0a, 0x12, 0x4c, 0x6f, - 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3d, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x57, 0x69, 0x74, 0x68, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, - 0x42, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, - 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x22, 0x43, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0x45, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, - 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, - 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, - 0x46, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, - 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x11, 0x4d, 0x6f, 0x76, 0x65, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x65, 0x77, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf0, 0x05, 0x0a, 0x0c, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, - 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, - 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x6d, - 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, 0x43, 0x0a, 0x10, 0x53, 0x65, + 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, + 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x22, + 0x45, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, + 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x46, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x5a, + 0x0a, 0x11, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, + 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x6f, + 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2a, 0x31, 0x0a, 0x0c, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x4f, 0x6e, + 0x6c, 0x79, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x55, 0x52, + 0x49, 0x10, 0x01, 0x32, 0xf0, 0x05, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, - 0x08, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, - 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, - 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, + 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, + 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, + 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x4c, + 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, - 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x6f, 0x61, 0x64, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, - 0x0a, 0x08, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6d, - 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, - 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, + 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, + 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, + 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x58, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x70, + 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, - 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, - 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5b, 0x0a, 0x0a, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x2e, - 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, - 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, - 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, - 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0a, 0x4d, 0x6f, 0x76, + 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x4d, 0x6f, 0x76, + 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, + 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, + 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x70, + 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1763,76 +1912,81 @@ func file_routes_proto_rawDescGZIP() []byte { return file_routes_proto_rawDescData } -var file_routes_proto_msgTypes = make([]protoimpl.MessageInfo, 21) -var file_routes_proto_goTypes = []interface{}{ - (*RouteRewriteHeader)(nil), // 0: pomerium.dashboard.RouteRewriteHeader - (*Route)(nil), // 1: pomerium.dashboard.Route - (*RouteWithPolicies)(nil), // 2: pomerium.dashboard.RouteWithPolicies - (*DeleteRouteRequest)(nil), // 3: pomerium.dashboard.DeleteRouteRequest - (*DeleteRouteResponse)(nil), // 4: pomerium.dashboard.DeleteRouteResponse - (*DeleteRoutesRequest)(nil), // 5: pomerium.dashboard.DeleteRoutesRequest - (*DeleteRoutesResponse)(nil), // 6: pomerium.dashboard.DeleteRoutesResponse - (*GetRouteRequest)(nil), // 7: pomerium.dashboard.GetRouteRequest - (*GetRouteResponse)(nil), // 8: pomerium.dashboard.GetRouteResponse - (*ListRoutesRequest)(nil), // 9: pomerium.dashboard.ListRoutesRequest - (*ListRoutesResponse)(nil), // 10: pomerium.dashboard.ListRoutesResponse - (*LoadRoutesRequest)(nil), // 11: pomerium.dashboard.LoadRoutesRequest - (*LoadRoutesResponse)(nil), // 12: pomerium.dashboard.LoadRoutesResponse - (*SetRouteRequest)(nil), // 13: pomerium.dashboard.SetRouteRequest - (*SetRouteResponse)(nil), // 14: pomerium.dashboard.SetRouteResponse - (*SetRoutesRequest)(nil), // 15: pomerium.dashboard.SetRoutesRequest - (*SetRoutesResponse)(nil), // 16: pomerium.dashboard.SetRoutesResponse - (*MoveRoutesRequest)(nil), // 17: pomerium.dashboard.MoveRoutesRequest - (*MoveRoutesResponse)(nil), // 18: pomerium.dashboard.MoveRoutesResponse - nil, // 19: pomerium.dashboard.Route.SetRequestHeadersEntry - nil, // 20: pomerium.dashboard.Route.SetResponseHeadersEntry - (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 22: google.protobuf.Duration - (*v3.Cluster)(nil), // 23: envoy.config.cluster.v3.Cluster - (*v31.RedirectAction)(nil), // 24: envoy.config.route.v3.RedirectAction - (*Policy)(nil), // 25: pomerium.dashboard.Policy +var file_routes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_routes_proto_msgTypes = make([]protoimpl.MessageInfo, 22) +var file_routes_proto_goTypes = []any{ + (IssuerFormat)(0), // 0: pomerium.dashboard.IssuerFormat + (*RouteRewriteHeader)(nil), // 1: pomerium.dashboard.RouteRewriteHeader + (*RouteDirectResponse)(nil), // 2: pomerium.dashboard.RouteDirectResponse + (*Route)(nil), // 3: pomerium.dashboard.Route + (*RouteWithPolicies)(nil), // 4: pomerium.dashboard.RouteWithPolicies + (*DeleteRouteRequest)(nil), // 5: pomerium.dashboard.DeleteRouteRequest + (*DeleteRouteResponse)(nil), // 6: pomerium.dashboard.DeleteRouteResponse + (*DeleteRoutesRequest)(nil), // 7: pomerium.dashboard.DeleteRoutesRequest + (*DeleteRoutesResponse)(nil), // 8: pomerium.dashboard.DeleteRoutesResponse + (*GetRouteRequest)(nil), // 9: pomerium.dashboard.GetRouteRequest + (*GetRouteResponse)(nil), // 10: pomerium.dashboard.GetRouteResponse + (*ListRoutesRequest)(nil), // 11: pomerium.dashboard.ListRoutesRequest + (*ListRoutesResponse)(nil), // 12: pomerium.dashboard.ListRoutesResponse + (*LoadRoutesRequest)(nil), // 13: pomerium.dashboard.LoadRoutesRequest + (*LoadRoutesResponse)(nil), // 14: pomerium.dashboard.LoadRoutesResponse + (*SetRouteRequest)(nil), // 15: pomerium.dashboard.SetRouteRequest + (*SetRouteResponse)(nil), // 16: pomerium.dashboard.SetRouteResponse + (*SetRoutesRequest)(nil), // 17: pomerium.dashboard.SetRoutesRequest + (*SetRoutesResponse)(nil), // 18: pomerium.dashboard.SetRoutesResponse + (*MoveRoutesRequest)(nil), // 19: pomerium.dashboard.MoveRoutesRequest + (*MoveRoutesResponse)(nil), // 20: pomerium.dashboard.MoveRoutesResponse + nil, // 21: pomerium.dashboard.Route.SetRequestHeadersEntry + nil, // 22: pomerium.dashboard.Route.SetResponseHeadersEntry + (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp + (*v3.RedirectAction)(nil), // 24: envoy.config.route.v3.RedirectAction + (*durationpb.Duration)(nil), // 25: google.protobuf.Duration + (*v31.Cluster)(nil), // 26: envoy.config.cluster.v3.Cluster + (*Policy)(nil), // 27: pomerium.dashboard.Policy } var file_routes_proto_depIdxs = []int32{ - 21, // 0: pomerium.dashboard.Route.created_at:type_name -> google.protobuf.Timestamp - 21, // 1: pomerium.dashboard.Route.modified_at:type_name -> google.protobuf.Timestamp - 21, // 2: pomerium.dashboard.Route.deleted_at:type_name -> google.protobuf.Timestamp - 22, // 3: pomerium.dashboard.Route.timeout:type_name -> google.protobuf.Duration - 22, // 4: pomerium.dashboard.Route.idle_timeout:type_name -> google.protobuf.Duration - 19, // 5: pomerium.dashboard.Route.set_request_headers:type_name -> pomerium.dashboard.Route.SetRequestHeadersEntry - 20, // 6: pomerium.dashboard.Route.set_response_headers:type_name -> pomerium.dashboard.Route.SetResponseHeadersEntry - 0, // 7: pomerium.dashboard.Route.rewrite_response_headers:type_name -> pomerium.dashboard.RouteRewriteHeader - 23, // 8: pomerium.dashboard.Route.envoy_opts:type_name -> envoy.config.cluster.v3.Cluster - 24, // 9: pomerium.dashboard.Route.redirect:type_name -> envoy.config.route.v3.RedirectAction - 1, // 10: pomerium.dashboard.RouteWithPolicies.route:type_name -> pomerium.dashboard.Route - 25, // 11: pomerium.dashboard.RouteWithPolicies.policies:type_name -> pomerium.dashboard.Policy - 1, // 12: pomerium.dashboard.GetRouteResponse.route:type_name -> pomerium.dashboard.Route - 1, // 13: pomerium.dashboard.ListRoutesResponse.routes:type_name -> pomerium.dashboard.Route - 2, // 14: pomerium.dashboard.LoadRoutesResponse.routes:type_name -> pomerium.dashboard.RouteWithPolicies - 1, // 15: pomerium.dashboard.SetRouteRequest.route:type_name -> pomerium.dashboard.Route - 1, // 16: pomerium.dashboard.SetRouteResponse.route:type_name -> pomerium.dashboard.Route - 1, // 17: pomerium.dashboard.SetRoutesRequest.routes:type_name -> pomerium.dashboard.Route - 1, // 18: pomerium.dashboard.SetRoutesResponse.routes:type_name -> pomerium.dashboard.Route - 3, // 19: pomerium.dashboard.RouteService.DeleteRoute:input_type -> pomerium.dashboard.DeleteRouteRequest - 5, // 20: pomerium.dashboard.RouteService.DeleteRoutes:input_type -> pomerium.dashboard.DeleteRoutesRequest - 7, // 21: pomerium.dashboard.RouteService.GetRoute:input_type -> pomerium.dashboard.GetRouteRequest - 9, // 22: pomerium.dashboard.RouteService.ListRoutes:input_type -> pomerium.dashboard.ListRoutesRequest - 11, // 23: pomerium.dashboard.RouteService.LoadRoutes:input_type -> pomerium.dashboard.LoadRoutesRequest - 13, // 24: pomerium.dashboard.RouteService.SetRoute:input_type -> pomerium.dashboard.SetRouteRequest - 15, // 25: pomerium.dashboard.RouteService.SetRoutes:input_type -> pomerium.dashboard.SetRoutesRequest - 17, // 26: pomerium.dashboard.RouteService.MoveRoutes:input_type -> pomerium.dashboard.MoveRoutesRequest - 4, // 27: pomerium.dashboard.RouteService.DeleteRoute:output_type -> pomerium.dashboard.DeleteRouteResponse - 6, // 28: pomerium.dashboard.RouteService.DeleteRoutes:output_type -> pomerium.dashboard.DeleteRoutesResponse - 8, // 29: pomerium.dashboard.RouteService.GetRoute:output_type -> pomerium.dashboard.GetRouteResponse - 10, // 30: pomerium.dashboard.RouteService.ListRoutes:output_type -> pomerium.dashboard.ListRoutesResponse - 12, // 31: pomerium.dashboard.RouteService.LoadRoutes:output_type -> pomerium.dashboard.LoadRoutesResponse - 14, // 32: pomerium.dashboard.RouteService.SetRoute:output_type -> pomerium.dashboard.SetRouteResponse - 16, // 33: pomerium.dashboard.RouteService.SetRoutes:output_type -> pomerium.dashboard.SetRoutesResponse - 18, // 34: pomerium.dashboard.RouteService.MoveRoutes:output_type -> pomerium.dashboard.MoveRoutesResponse - 27, // [27:35] is the sub-list for method output_type - 19, // [19:27] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name + 23, // 0: pomerium.dashboard.Route.created_at:type_name -> google.protobuf.Timestamp + 23, // 1: pomerium.dashboard.Route.modified_at:type_name -> google.protobuf.Timestamp + 23, // 2: pomerium.dashboard.Route.deleted_at:type_name -> google.protobuf.Timestamp + 24, // 3: pomerium.dashboard.Route.redirect:type_name -> envoy.config.route.v3.RedirectAction + 2, // 4: pomerium.dashboard.Route.response:type_name -> pomerium.dashboard.RouteDirectResponse + 25, // 5: pomerium.dashboard.Route.timeout:type_name -> google.protobuf.Duration + 25, // 6: pomerium.dashboard.Route.idle_timeout:type_name -> google.protobuf.Duration + 21, // 7: pomerium.dashboard.Route.set_request_headers:type_name -> pomerium.dashboard.Route.SetRequestHeadersEntry + 22, // 8: pomerium.dashboard.Route.set_response_headers:type_name -> pomerium.dashboard.Route.SetResponseHeadersEntry + 1, // 9: pomerium.dashboard.Route.rewrite_response_headers:type_name -> pomerium.dashboard.RouteRewriteHeader + 26, // 10: pomerium.dashboard.Route.envoy_opts:type_name -> envoy.config.cluster.v3.Cluster + 0, // 11: pomerium.dashboard.Route.jwt_issuer_format:type_name -> pomerium.dashboard.IssuerFormat + 3, // 12: pomerium.dashboard.RouteWithPolicies.route:type_name -> pomerium.dashboard.Route + 27, // 13: pomerium.dashboard.RouteWithPolicies.policies:type_name -> pomerium.dashboard.Policy + 3, // 14: pomerium.dashboard.GetRouteResponse.route:type_name -> pomerium.dashboard.Route + 3, // 15: pomerium.dashboard.ListRoutesResponse.routes:type_name -> pomerium.dashboard.Route + 4, // 16: pomerium.dashboard.LoadRoutesResponse.routes:type_name -> pomerium.dashboard.RouteWithPolicies + 3, // 17: pomerium.dashboard.SetRouteRequest.route:type_name -> pomerium.dashboard.Route + 3, // 18: pomerium.dashboard.SetRouteResponse.route:type_name -> pomerium.dashboard.Route + 3, // 19: pomerium.dashboard.SetRoutesRequest.routes:type_name -> pomerium.dashboard.Route + 3, // 20: pomerium.dashboard.SetRoutesResponse.routes:type_name -> pomerium.dashboard.Route + 5, // 21: pomerium.dashboard.RouteService.DeleteRoute:input_type -> pomerium.dashboard.DeleteRouteRequest + 7, // 22: pomerium.dashboard.RouteService.DeleteRoutes:input_type -> pomerium.dashboard.DeleteRoutesRequest + 9, // 23: pomerium.dashboard.RouteService.GetRoute:input_type -> pomerium.dashboard.GetRouteRequest + 11, // 24: pomerium.dashboard.RouteService.ListRoutes:input_type -> pomerium.dashboard.ListRoutesRequest + 13, // 25: pomerium.dashboard.RouteService.LoadRoutes:input_type -> pomerium.dashboard.LoadRoutesRequest + 15, // 26: pomerium.dashboard.RouteService.SetRoute:input_type -> pomerium.dashboard.SetRouteRequest + 17, // 27: pomerium.dashboard.RouteService.SetRoutes:input_type -> pomerium.dashboard.SetRoutesRequest + 19, // 28: pomerium.dashboard.RouteService.MoveRoutes:input_type -> pomerium.dashboard.MoveRoutesRequest + 6, // 29: pomerium.dashboard.RouteService.DeleteRoute:output_type -> pomerium.dashboard.DeleteRouteResponse + 8, // 30: pomerium.dashboard.RouteService.DeleteRoutes:output_type -> pomerium.dashboard.DeleteRoutesResponse + 10, // 31: pomerium.dashboard.RouteService.GetRoute:output_type -> pomerium.dashboard.GetRouteResponse + 12, // 32: pomerium.dashboard.RouteService.ListRoutes:output_type -> pomerium.dashboard.ListRoutesResponse + 14, // 33: pomerium.dashboard.RouteService.LoadRoutes:output_type -> pomerium.dashboard.LoadRoutesResponse + 16, // 34: pomerium.dashboard.RouteService.SetRoute:output_type -> pomerium.dashboard.SetRouteResponse + 18, // 35: pomerium.dashboard.RouteService.SetRoutes:output_type -> pomerium.dashboard.SetRoutesResponse + 20, // 36: pomerium.dashboard.RouteService.MoveRoutes:output_type -> pomerium.dashboard.MoveRoutesResponse + 29, // [29:37] is the sub-list for method output_type + 21, // [21:29] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name } func init() { file_routes_proto_init() } @@ -1842,7 +1996,7 @@ func file_routes_proto_init() { } file_policy_proto_init() if !protoimpl.UnsafeEnabled { - file_routes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*RouteRewriteHeader); i { case 0: return &v.state @@ -1854,7 +2008,19 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*RouteDirectResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_routes_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Route); i { case 0: return &v.state @@ -1866,7 +2032,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*RouteWithPolicies); i { case 0: return &v.state @@ -1878,7 +2044,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*DeleteRouteRequest); i { case 0: return &v.state @@ -1890,7 +2056,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*DeleteRouteResponse); i { case 0: return &v.state @@ -1902,7 +2068,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*DeleteRoutesRequest); i { case 0: return &v.state @@ -1914,7 +2080,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*DeleteRoutesResponse); i { case 0: return &v.state @@ -1926,7 +2092,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*GetRouteRequest); i { case 0: return &v.state @@ -1938,7 +2104,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*GetRouteResponse); i { case 0: return &v.state @@ -1950,7 +2116,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ListRoutesRequest); i { case 0: return &v.state @@ -1962,7 +2128,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ListRoutesResponse); i { case 0: return &v.state @@ -1974,7 +2140,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*LoadRoutesRequest); i { case 0: return &v.state @@ -1986,7 +2152,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*LoadRoutesResponse); i { case 0: return &v.state @@ -1998,7 +2164,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*SetRouteRequest); i { case 0: return &v.state @@ -2010,7 +2176,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*SetRouteResponse); i { case 0: return &v.state @@ -2022,7 +2188,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*SetRoutesRequest); i { case 0: return &v.state @@ -2034,7 +2200,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*SetRoutesResponse); i { case 0: return &v.state @@ -2046,7 +2212,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*MoveRoutesRequest); i { case 0: return &v.state @@ -2058,7 +2224,7 @@ func file_routes_proto_init() { return nil } } - file_routes_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_routes_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*MoveRoutesResponse); i { case 0: return &v.state @@ -2071,23 +2237,24 @@ func file_routes_proto_init() { } } } - file_routes_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_routes_proto_msgTypes[0].OneofWrappers = []any{ (*RouteRewriteHeader_Prefix)(nil), } - file_routes_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_routes_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_routes_proto_msgTypes[2].OneofWrappers = []any{} + file_routes_proto_msgTypes[10].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_routes_proto_rawDesc, - NumEnums: 0, - NumMessages: 21, + NumEnums: 1, + NumMessages: 22, NumExtensions: 0, NumServices: 1, }, GoTypes: file_routes_proto_goTypes, DependencyIndexes: file_routes_proto_depIdxs, + EnumInfos: file_routes_proto_enumTypes, MessageInfos: file_routes_proto_msgTypes, }.Build() File_routes_proto = out.File @@ -2095,351 +2262,3 @@ func file_routes_proto_init() { file_routes_proto_goTypes = nil file_routes_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RouteServiceClient is the client API for RouteService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RouteServiceClient interface { - // DeleteRoute removes an existing route - DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*DeleteRouteResponse, error) - // DeleteRoutes removes existing routes. - DeleteRoutes(ctx context.Context, in *DeleteRoutesRequest, opts ...grpc.CallOption) (*DeleteRoutesResponse, error) - // GetRoute retrieves an existing route - GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*GetRouteResponse, error) - // ListRoutes lists routes based on ListRoutesRequest - ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesResponse, error) - // LoadRoutes imports routes from an existing OSS configuration - LoadRoutes(ctx context.Context, in *LoadRoutesRequest, opts ...grpc.CallOption) (*LoadRoutesResponse, error) - // SetRoute creates or, if id is defined, updates an existing route - SetRoute(ctx context.Context, in *SetRouteRequest, opts ...grpc.CallOption) (*SetRouteResponse, error) - // SetRoutes creates or, if id is defined, updates existing routes - SetRoutes(ctx context.Context, in *SetRoutesRequest, opts ...grpc.CallOption) (*SetRoutesResponse, error) - // MoveRoutes takes an array of routeIds and moves them to a new namespace - MoveRoutes(ctx context.Context, in *MoveRoutesRequest, opts ...grpc.CallOption) (*MoveRoutesResponse, error) -} - -type routeServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewRouteServiceClient(cc grpc.ClientConnInterface) RouteServiceClient { - return &routeServiceClient{cc} -} - -func (c *routeServiceClient) DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*DeleteRouteResponse, error) { - out := new(DeleteRouteResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/DeleteRoute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) DeleteRoutes(ctx context.Context, in *DeleteRoutesRequest, opts ...grpc.CallOption) (*DeleteRoutesResponse, error) { - out := new(DeleteRoutesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/DeleteRoutes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*GetRouteResponse, error) { - out := new(GetRouteResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/GetRoute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesResponse, error) { - out := new(ListRoutesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/ListRoutes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) LoadRoutes(ctx context.Context, in *LoadRoutesRequest, opts ...grpc.CallOption) (*LoadRoutesResponse, error) { - out := new(LoadRoutesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/LoadRoutes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) SetRoute(ctx context.Context, in *SetRouteRequest, opts ...grpc.CallOption) (*SetRouteResponse, error) { - out := new(SetRouteResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/SetRoute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) SetRoutes(ctx context.Context, in *SetRoutesRequest, opts ...grpc.CallOption) (*SetRoutesResponse, error) { - out := new(SetRoutesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/SetRoutes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *routeServiceClient) MoveRoutes(ctx context.Context, in *MoveRoutesRequest, opts ...grpc.CallOption) (*MoveRoutesResponse, error) { - out := new(MoveRoutesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.RouteService/MoveRoutes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RouteServiceServer is the server API for RouteService service. -type RouteServiceServer interface { - // DeleteRoute removes an existing route - DeleteRoute(context.Context, *DeleteRouteRequest) (*DeleteRouteResponse, error) - // DeleteRoutes removes existing routes. - DeleteRoutes(context.Context, *DeleteRoutesRequest) (*DeleteRoutesResponse, error) - // GetRoute retrieves an existing route - GetRoute(context.Context, *GetRouteRequest) (*GetRouteResponse, error) - // ListRoutes lists routes based on ListRoutesRequest - ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesResponse, error) - // LoadRoutes imports routes from an existing OSS configuration - LoadRoutes(context.Context, *LoadRoutesRequest) (*LoadRoutesResponse, error) - // SetRoute creates or, if id is defined, updates an existing route - SetRoute(context.Context, *SetRouteRequest) (*SetRouteResponse, error) - // SetRoutes creates or, if id is defined, updates existing routes - SetRoutes(context.Context, *SetRoutesRequest) (*SetRoutesResponse, error) - // MoveRoutes takes an array of routeIds and moves them to a new namespace - MoveRoutes(context.Context, *MoveRoutesRequest) (*MoveRoutesResponse, error) -} - -// UnimplementedRouteServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRouteServiceServer struct { -} - -func (*UnimplementedRouteServiceServer) DeleteRoute(context.Context, *DeleteRouteRequest) (*DeleteRouteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRoute not implemented") -} -func (*UnimplementedRouteServiceServer) DeleteRoutes(context.Context, *DeleteRoutesRequest) (*DeleteRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRoutes not implemented") -} -func (*UnimplementedRouteServiceServer) GetRoute(context.Context, *GetRouteRequest) (*GetRouteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRoute not implemented") -} -func (*UnimplementedRouteServiceServer) ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRoutes not implemented") -} -func (*UnimplementedRouteServiceServer) LoadRoutes(context.Context, *LoadRoutesRequest) (*LoadRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadRoutes not implemented") -} -func (*UnimplementedRouteServiceServer) SetRoute(context.Context, *SetRouteRequest) (*SetRouteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetRoute not implemented") -} -func (*UnimplementedRouteServiceServer) SetRoutes(context.Context, *SetRoutesRequest) (*SetRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetRoutes not implemented") -} -func (*UnimplementedRouteServiceServer) MoveRoutes(context.Context, *MoveRoutesRequest) (*MoveRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MoveRoutes not implemented") -} - -func RegisterRouteServiceServer(s *grpc.Server, srv RouteServiceServer) { - s.RegisterService(&_RouteService_serviceDesc, srv) -} - -func _RouteService_DeleteRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRouteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).DeleteRoute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/DeleteRoute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).DeleteRoute(ctx, req.(*DeleteRouteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_DeleteRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).DeleteRoutes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/DeleteRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).DeleteRoutes(ctx, req.(*DeleteRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_GetRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRouteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).GetRoute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/GetRoute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).GetRoute(ctx, req.(*GetRouteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_ListRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).ListRoutes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/ListRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).ListRoutes(ctx, req.(*ListRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_LoadRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).LoadRoutes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/LoadRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).LoadRoutes(ctx, req.(*LoadRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_SetRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetRouteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).SetRoute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/SetRoute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).SetRoute(ctx, req.(*SetRouteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_SetRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).SetRoutes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/SetRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).SetRoutes(ctx, req.(*SetRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RouteService_MoveRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MoveRoutesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RouteServiceServer).MoveRoutes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.RouteService/MoveRoutes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RouteServiceServer).MoveRoutes(ctx, req.(*MoveRoutesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RouteService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.RouteService", - HandlerType: (*RouteServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeleteRoute", - Handler: _RouteService_DeleteRoute_Handler, - }, - { - MethodName: "DeleteRoutes", - Handler: _RouteService_DeleteRoutes_Handler, - }, - { - MethodName: "GetRoute", - Handler: _RouteService_GetRoute_Handler, - }, - { - MethodName: "ListRoutes", - Handler: _RouteService_ListRoutes_Handler, - }, - { - MethodName: "LoadRoutes", - Handler: _RouteService_LoadRoutes_Handler, - }, - { - MethodName: "SetRoute", - Handler: _RouteService_SetRoute_Handler, - }, - { - MethodName: "SetRoutes", - Handler: _RouteService_SetRoutes_Handler, - }, - { - MethodName: "MoveRoutes", - Handler: _RouteService_MoveRoutes_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "routes.proto", -} diff --git a/pb/routes_grpc.pb.go b/pb/routes_grpc.pb.go new file mode 100644 index 0000000..c3c085b --- /dev/null +++ b/pb/routes_grpc.pb.go @@ -0,0 +1,405 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: routes.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + RouteService_DeleteRoute_FullMethodName = "/pomerium.dashboard.RouteService/DeleteRoute" + RouteService_DeleteRoutes_FullMethodName = "/pomerium.dashboard.RouteService/DeleteRoutes" + RouteService_GetRoute_FullMethodName = "/pomerium.dashboard.RouteService/GetRoute" + RouteService_ListRoutes_FullMethodName = "/pomerium.dashboard.RouteService/ListRoutes" + RouteService_LoadRoutes_FullMethodName = "/pomerium.dashboard.RouteService/LoadRoutes" + RouteService_SetRoute_FullMethodName = "/pomerium.dashboard.RouteService/SetRoute" + RouteService_SetRoutes_FullMethodName = "/pomerium.dashboard.RouteService/SetRoutes" + RouteService_MoveRoutes_FullMethodName = "/pomerium.dashboard.RouteService/MoveRoutes" +) + +// RouteServiceClient is the client API for RouteService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// RouteService manages proxy route definitions +type RouteServiceClient interface { + // DeleteRoute removes an existing route + DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*DeleteRouteResponse, error) + // DeleteRoutes removes existing routes. + DeleteRoutes(ctx context.Context, in *DeleteRoutesRequest, opts ...grpc.CallOption) (*DeleteRoutesResponse, error) + // GetRoute retrieves an existing route + GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*GetRouteResponse, error) + // ListRoutes lists routes based on ListRoutesRequest + ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesResponse, error) + // LoadRoutes imports routes from an existing OSS configuration + LoadRoutes(ctx context.Context, in *LoadRoutesRequest, opts ...grpc.CallOption) (*LoadRoutesResponse, error) + // SetRoute creates or, if id is defined, updates an existing route + SetRoute(ctx context.Context, in *SetRouteRequest, opts ...grpc.CallOption) (*SetRouteResponse, error) + // SetRoutes creates or, if id is defined, updates existing routes + SetRoutes(ctx context.Context, in *SetRoutesRequest, opts ...grpc.CallOption) (*SetRoutesResponse, error) + // MoveRoutes takes an array of routeIds and moves them to a new namespace + MoveRoutes(ctx context.Context, in *MoveRoutesRequest, opts ...grpc.CallOption) (*MoveRoutesResponse, error) +} + +type routeServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewRouteServiceClient(cc grpc.ClientConnInterface) RouteServiceClient { + return &routeServiceClient{cc} +} + +func (c *routeServiceClient) DeleteRoute(ctx context.Context, in *DeleteRouteRequest, opts ...grpc.CallOption) (*DeleteRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteRouteResponse) + err := c.cc.Invoke(ctx, RouteService_DeleteRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) DeleteRoutes(ctx context.Context, in *DeleteRoutesRequest, opts ...grpc.CallOption) (*DeleteRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteRoutesResponse) + err := c.cc.Invoke(ctx, RouteService_DeleteRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*GetRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetRouteResponse) + err := c.cc.Invoke(ctx, RouteService_GetRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListRoutesResponse) + err := c.cc.Invoke(ctx, RouteService_ListRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) LoadRoutes(ctx context.Context, in *LoadRoutesRequest, opts ...grpc.CallOption) (*LoadRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LoadRoutesResponse) + err := c.cc.Invoke(ctx, RouteService_LoadRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) SetRoute(ctx context.Context, in *SetRouteRequest, opts ...grpc.CallOption) (*SetRouteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetRouteResponse) + err := c.cc.Invoke(ctx, RouteService_SetRoute_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) SetRoutes(ctx context.Context, in *SetRoutesRequest, opts ...grpc.CallOption) (*SetRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetRoutesResponse) + err := c.cc.Invoke(ctx, RouteService_SetRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *routeServiceClient) MoveRoutes(ctx context.Context, in *MoveRoutesRequest, opts ...grpc.CallOption) (*MoveRoutesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(MoveRoutesResponse) + err := c.cc.Invoke(ctx, RouteService_MoveRoutes_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RouteServiceServer is the server API for RouteService service. +// All implementations should embed UnimplementedRouteServiceServer +// for forward compatibility. +// +// RouteService manages proxy route definitions +type RouteServiceServer interface { + // DeleteRoute removes an existing route + DeleteRoute(context.Context, *DeleteRouteRequest) (*DeleteRouteResponse, error) + // DeleteRoutes removes existing routes. + DeleteRoutes(context.Context, *DeleteRoutesRequest) (*DeleteRoutesResponse, error) + // GetRoute retrieves an existing route + GetRoute(context.Context, *GetRouteRequest) (*GetRouteResponse, error) + // ListRoutes lists routes based on ListRoutesRequest + ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesResponse, error) + // LoadRoutes imports routes from an existing OSS configuration + LoadRoutes(context.Context, *LoadRoutesRequest) (*LoadRoutesResponse, error) + // SetRoute creates or, if id is defined, updates an existing route + SetRoute(context.Context, *SetRouteRequest) (*SetRouteResponse, error) + // SetRoutes creates or, if id is defined, updates existing routes + SetRoutes(context.Context, *SetRoutesRequest) (*SetRoutesResponse, error) + // MoveRoutes takes an array of routeIds and moves them to a new namespace + MoveRoutes(context.Context, *MoveRoutesRequest) (*MoveRoutesResponse, error) +} + +// UnimplementedRouteServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRouteServiceServer struct{} + +func (UnimplementedRouteServiceServer) DeleteRoute(context.Context, *DeleteRouteRequest) (*DeleteRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteRoute not implemented") +} +func (UnimplementedRouteServiceServer) DeleteRoutes(context.Context, *DeleteRoutesRequest) (*DeleteRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteRoutes not implemented") +} +func (UnimplementedRouteServiceServer) GetRoute(context.Context, *GetRouteRequest) (*GetRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRoute not implemented") +} +func (UnimplementedRouteServiceServer) ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListRoutes not implemented") +} +func (UnimplementedRouteServiceServer) LoadRoutes(context.Context, *LoadRoutesRequest) (*LoadRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadRoutes not implemented") +} +func (UnimplementedRouteServiceServer) SetRoute(context.Context, *SetRouteRequest) (*SetRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetRoute not implemented") +} +func (UnimplementedRouteServiceServer) SetRoutes(context.Context, *SetRoutesRequest) (*SetRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetRoutes not implemented") +} +func (UnimplementedRouteServiceServer) MoveRoutes(context.Context, *MoveRoutesRequest) (*MoveRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MoveRoutes not implemented") +} +func (UnimplementedRouteServiceServer) testEmbeddedByValue() {} + +// UnsafeRouteServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RouteServiceServer will +// result in compilation errors. +type UnsafeRouteServiceServer interface { + mustEmbedUnimplementedRouteServiceServer() +} + +func RegisterRouteServiceServer(s grpc.ServiceRegistrar, srv RouteServiceServer) { + // If the following call pancis, it indicates UnimplementedRouteServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&RouteService_ServiceDesc, srv) +} + +func _RouteService_DeleteRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRouteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).DeleteRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_DeleteRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).DeleteRoute(ctx, req.(*DeleteRouteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_DeleteRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).DeleteRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_DeleteRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).DeleteRoutes(ctx, req.(*DeleteRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_GetRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRouteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).GetRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_GetRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).GetRoute(ctx, req.(*GetRouteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_ListRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).ListRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_ListRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).ListRoutes(ctx, req.(*ListRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_LoadRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).LoadRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_LoadRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).LoadRoutes(ctx, req.(*LoadRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_SetRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetRouteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).SetRoute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_SetRoute_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).SetRoute(ctx, req.(*SetRouteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_SetRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).SetRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_SetRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).SetRoutes(ctx, req.(*SetRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RouteService_MoveRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouteServiceServer).MoveRoutes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: RouteService_MoveRoutes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouteServiceServer).MoveRoutes(ctx, req.(*MoveRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// RouteService_ServiceDesc is the grpc.ServiceDesc for RouteService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var RouteService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.RouteService", + HandlerType: (*RouteServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeleteRoute", + Handler: _RouteService_DeleteRoute_Handler, + }, + { + MethodName: "DeleteRoutes", + Handler: _RouteService_DeleteRoutes_Handler, + }, + { + MethodName: "GetRoute", + Handler: _RouteService_GetRoute_Handler, + }, + { + MethodName: "ListRoutes", + Handler: _RouteService_ListRoutes_Handler, + }, + { + MethodName: "LoadRoutes", + Handler: _RouteService_LoadRoutes_Handler, + }, + { + MethodName: "SetRoute", + Handler: _RouteService_SetRoute_Handler, + }, + { + MethodName: "SetRoutes", + Handler: _RouteService_SetRoutes_Handler, + }, + { + MethodName: "MoveRoutes", + Handler: _RouteService_MoveRoutes_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "routes.proto", +} diff --git a/pb/settings.pb.go b/pb/settings.pb.go index 95455ad..8a9cbdf 100644 --- a/pb/settings.pb.go +++ b/pb/settings.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: settings.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" @@ -27,6 +23,61 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type ConsoleSettings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EnableFeedbackWidget bool `protobuf:"varint,1,opt,name=enable_feedback_widget,json=enableFeedbackWidget,proto3" json:"enable_feedback_widget,omitempty"` + UseChangesets bool `protobuf:"varint,2,opt,name=use_changesets,json=useChangesets,proto3" json:"use_changesets,omitempty"` +} + +func (x *ConsoleSettings) Reset() { + *x = ConsoleSettings{} + if protoimpl.UnsafeEnabled { + mi := &file_settings_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConsoleSettings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConsoleSettings) ProtoMessage() {} + +func (x *ConsoleSettings) ProtoReflect() protoreflect.Message { + mi := &file_settings_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConsoleSettings.ProtoReflect.Descriptor instead. +func (*ConsoleSettings) Descriptor() ([]byte, []int) { + return file_settings_proto_rawDescGZIP(), []int{0} +} + +func (x *ConsoleSettings) GetEnableFeedbackWidget() bool { + if x != nil { + return x.EnableFeedbackWidget + } + return false +} + +func (x *ConsoleSettings) GetUseChangesets() bool { + if x != nil { + return x.UseChangesets + } + return false +} + // Settings defines the global pomerium settings // Next id: 85. type Settings struct { @@ -112,7 +163,7 @@ type Settings struct { func (x *Settings) Reset() { *x = Settings{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[0] + mi := &file_settings_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -125,7 +176,7 @@ func (x *Settings) String() string { func (*Settings) ProtoMessage() {} func (x *Settings) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[0] + mi := &file_settings_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -138,7 +189,7 @@ func (x *Settings) ProtoReflect() protoreflect.Message { // Deprecated: Use Settings.ProtoReflect.Descriptor instead. func (*Settings) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{0} + return file_settings_proto_rawDescGZIP(), []int{1} } func (x *Settings) GetModifiedAt() *timestamppb.Timestamp { @@ -652,6 +703,91 @@ func (x *Settings) GetPassIdentityHeaders() bool { return false } +type GetConsoleSettingsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetConsoleSettingsRequest) Reset() { + *x = GetConsoleSettingsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_settings_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetConsoleSettingsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetConsoleSettingsRequest) ProtoMessage() {} + +func (x *GetConsoleSettingsRequest) ProtoReflect() protoreflect.Message { + mi := &file_settings_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetConsoleSettingsRequest.ProtoReflect.Descriptor instead. +func (*GetConsoleSettingsRequest) Descriptor() ([]byte, []int) { + return file_settings_proto_rawDescGZIP(), []int{2} +} + +type GetConsoleSettingsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConsoleSettings *ConsoleSettings `protobuf:"bytes,1,opt,name=console_settings,json=consoleSettings,proto3" json:"console_settings,omitempty"` +} + +func (x *GetConsoleSettingsResponse) Reset() { + *x = GetConsoleSettingsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_settings_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetConsoleSettingsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetConsoleSettingsResponse) ProtoMessage() {} + +func (x *GetConsoleSettingsResponse) ProtoReflect() protoreflect.Message { + mi := &file_settings_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetConsoleSettingsResponse.ProtoReflect.Descriptor instead. +func (*GetConsoleSettingsResponse) Descriptor() ([]byte, []int) { + return file_settings_proto_rawDescGZIP(), []int{3} +} + +func (x *GetConsoleSettingsResponse) GetConsoleSettings() *ConsoleSettings { + if x != nil { + return x.ConsoleSettings + } + return nil +} + type GetSettingsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -661,7 +797,7 @@ type GetSettingsRequest struct { func (x *GetSettingsRequest) Reset() { *x = GetSettingsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[1] + mi := &file_settings_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -674,7 +810,7 @@ func (x *GetSettingsRequest) String() string { func (*GetSettingsRequest) ProtoMessage() {} func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[1] + mi := &file_settings_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -687,7 +823,7 @@ func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead. func (*GetSettingsRequest) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{1} + return file_settings_proto_rawDescGZIP(), []int{4} } type GetSettingsResponse struct { @@ -701,7 +837,7 @@ type GetSettingsResponse struct { func (x *GetSettingsResponse) Reset() { *x = GetSettingsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[2] + mi := &file_settings_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -714,7 +850,7 @@ func (x *GetSettingsResponse) String() string { func (*GetSettingsResponse) ProtoMessage() {} func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[2] + mi := &file_settings_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -727,7 +863,7 @@ func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead. func (*GetSettingsResponse) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{2} + return file_settings_proto_rawDescGZIP(), []int{5} } func (x *GetSettingsResponse) GetSettings() *Settings { @@ -748,7 +884,7 @@ type SetSettingsRequest struct { func (x *SetSettingsRequest) Reset() { *x = SetSettingsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[3] + mi := &file_settings_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -761,7 +897,7 @@ func (x *SetSettingsRequest) String() string { func (*SetSettingsRequest) ProtoMessage() {} func (x *SetSettingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[3] + mi := &file_settings_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -774,7 +910,7 @@ func (x *SetSettingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSettingsRequest.ProtoReflect.Descriptor instead. func (*SetSettingsRequest) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{3} + return file_settings_proto_rawDescGZIP(), []int{6} } func (x *SetSettingsRequest) GetSettings() *Settings { @@ -795,7 +931,7 @@ type SetSettingsResponse struct { func (x *SetSettingsResponse) Reset() { *x = SetSettingsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[4] + mi := &file_settings_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -808,7 +944,7 @@ func (x *SetSettingsResponse) String() string { func (*SetSettingsResponse) ProtoMessage() {} func (x *SetSettingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[4] + mi := &file_settings_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -821,7 +957,7 @@ func (x *SetSettingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSettingsResponse.ProtoReflect.Descriptor instead. func (*SetSettingsResponse) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{4} + return file_settings_proto_rawDescGZIP(), []int{7} } func (x *SetSettingsResponse) GetSettings() *Settings { @@ -844,7 +980,7 @@ type Settings_Certificate struct { func (x *Settings_Certificate) Reset() { *x = Settings_Certificate{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[5] + mi := &file_settings_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -857,7 +993,7 @@ func (x *Settings_Certificate) String() string { func (*Settings_Certificate) ProtoMessage() {} func (x *Settings_Certificate) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[5] + mi := &file_settings_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -870,7 +1006,7 @@ func (x *Settings_Certificate) ProtoReflect() protoreflect.Message { // Deprecated: Use Settings_Certificate.ProtoReflect.Descriptor instead. func (*Settings_Certificate) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{0, 0} + return file_settings_proto_rawDescGZIP(), []int{1, 0} } func (x *Settings_Certificate) GetCertBytes() []byte { @@ -905,7 +1041,7 @@ type Settings_StringList struct { func (x *Settings_StringList) Reset() { *x = Settings_StringList{} if protoimpl.UnsafeEnabled { - mi := &file_settings_proto_msgTypes[6] + mi := &file_settings_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -918,7 +1054,7 @@ func (x *Settings_StringList) String() string { func (*Settings_StringList) ProtoMessage() {} func (x *Settings_StringList) ProtoReflect() protoreflect.Message { - mi := &file_settings_proto_msgTypes[6] + mi := &file_settings_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -931,7 +1067,7 @@ func (x *Settings_StringList) ProtoReflect() protoreflect.Message { // Deprecated: Use Settings_StringList.ProtoReflect.Descriptor instead. func (*Settings_StringList) Descriptor() ([]byte, []int) { - return file_settings_proto_rawDescGZIP(), []int{0, 1} + return file_settings_proto_rawDescGZIP(), []int{1, 1} } func (x *Settings_StringList) GetValues() []string { @@ -952,7 +1088,14 @@ var file_settings_proto_rawDesc = []byte{ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x30, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x65, + 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x75, 0x73, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x22, 0xed, 0x30, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, @@ -1343,42 +1486,58 @@ var file_settings_proto_rawDesc = []byte{ 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x4e, 0x0a, 0x12, 0x53, 0x65, - 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x38, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, - 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, - 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x4f, 0x0a, 0x13, 0x53, 0x65, - 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x38, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, - 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x32, 0xb9, 0x02, 0x0a, 0x0f, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x5e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, - 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, - 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x66, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x72, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, - 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x65, 0x72, 0x73, 0x22, 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x6c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, + 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x43, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x14, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x4e, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x08, 0x73, + 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x4f, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, + 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, + 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x08, 0x73, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x32, 0xae, 0x03, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x47, 0x65, + 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0b, 0x53, 0x65, + 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, + 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x42, 0x72, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x73, 0x12, 0x26, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, + 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x6f, 0x6d, 0x65, + 0x72, 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, + 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x73, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2d, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, + 0x69, 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, + 0x75, 0x6d, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x65, 0x74, + 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2f, 0x70, 0x6f, 0x6d, 0x65, 0x72, 0x69, 0x75, 0x6d, 0x2d, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, @@ -1397,54 +1556,60 @@ func file_settings_proto_rawDescGZIP() []byte { return file_settings_proto_rawDescData } -var file_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_settings_proto_goTypes = []interface{}{ - (*Settings)(nil), // 0: pomerium.dashboard.Settings - (*GetSettingsRequest)(nil), // 1: pomerium.dashboard.GetSettingsRequest - (*GetSettingsResponse)(nil), // 2: pomerium.dashboard.GetSettingsResponse - (*SetSettingsRequest)(nil), // 3: pomerium.dashboard.SetSettingsRequest - (*SetSettingsResponse)(nil), // 4: pomerium.dashboard.SetSettingsResponse - (*Settings_Certificate)(nil), // 5: pomerium.dashboard.Settings.Certificate - (*Settings_StringList)(nil), // 6: pomerium.dashboard.Settings.StringList - nil, // 7: pomerium.dashboard.Settings.RequestParamsEntry - nil, // 8: pomerium.dashboard.Settings.SetResponseHeadersEntry - nil, // 9: pomerium.dashboard.Settings.JwtClaimsHeadersEntry - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration - (*structpb.Struct)(nil), // 12: google.protobuf.Struct +var file_settings_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_settings_proto_goTypes = []any{ + (*ConsoleSettings)(nil), // 0: pomerium.dashboard.ConsoleSettings + (*Settings)(nil), // 1: pomerium.dashboard.Settings + (*GetConsoleSettingsRequest)(nil), // 2: pomerium.dashboard.GetConsoleSettingsRequest + (*GetConsoleSettingsResponse)(nil), // 3: pomerium.dashboard.GetConsoleSettingsResponse + (*GetSettingsRequest)(nil), // 4: pomerium.dashboard.GetSettingsRequest + (*GetSettingsResponse)(nil), // 5: pomerium.dashboard.GetSettingsResponse + (*SetSettingsRequest)(nil), // 6: pomerium.dashboard.SetSettingsRequest + (*SetSettingsResponse)(nil), // 7: pomerium.dashboard.SetSettingsResponse + (*Settings_Certificate)(nil), // 8: pomerium.dashboard.Settings.Certificate + (*Settings_StringList)(nil), // 9: pomerium.dashboard.Settings.StringList + nil, // 10: pomerium.dashboard.Settings.RequestParamsEntry + nil, // 11: pomerium.dashboard.Settings.SetResponseHeadersEntry + nil, // 12: pomerium.dashboard.Settings.JwtClaimsHeadersEntry + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 14: google.protobuf.Duration + (*structpb.Struct)(nil), // 15: google.protobuf.Struct } var file_settings_proto_depIdxs = []int32{ - 10, // 0: pomerium.dashboard.Settings.modified_at:type_name -> google.protobuf.Timestamp - 5, // 1: pomerium.dashboard.Settings.certificates:type_name -> pomerium.dashboard.Settings.Certificate - 11, // 2: pomerium.dashboard.Settings.timeout_read:type_name -> google.protobuf.Duration - 11, // 3: pomerium.dashboard.Settings.timeout_write:type_name -> google.protobuf.Duration - 11, // 4: pomerium.dashboard.Settings.timeout_idle:type_name -> google.protobuf.Duration - 11, // 5: pomerium.dashboard.Settings.cookie_expire:type_name -> google.protobuf.Duration - 11, // 6: pomerium.dashboard.Settings.idp_refresh_directory_timeout:type_name -> google.protobuf.Duration - 11, // 7: pomerium.dashboard.Settings.idp_refresh_directory_interval:type_name -> google.protobuf.Duration - 7, // 8: pomerium.dashboard.Settings.request_params:type_name -> pomerium.dashboard.Settings.RequestParamsEntry - 8, // 9: pomerium.dashboard.Settings.set_response_headers:type_name -> pomerium.dashboard.Settings.SetResponseHeadersEntry - 9, // 10: pomerium.dashboard.Settings.jwt_claims_headers:type_name -> pomerium.dashboard.Settings.JwtClaimsHeadersEntry - 11, // 11: pomerium.dashboard.Settings.default_upstream_timeout:type_name -> google.protobuf.Duration - 12, // 12: pomerium.dashboard.Settings.identity_provider_options:type_name -> google.protobuf.Struct - 11, // 13: pomerium.dashboard.Settings.identity_provider_refresh_interval:type_name -> google.protobuf.Duration - 11, // 14: pomerium.dashboard.Settings.identity_provider_refresh_timeout:type_name -> google.protobuf.Duration - 6, // 15: pomerium.dashboard.Settings.access_log_fields:type_name -> pomerium.dashboard.Settings.StringList - 6, // 16: pomerium.dashboard.Settings.authorize_log_fields:type_name -> pomerium.dashboard.Settings.StringList - 0, // 17: pomerium.dashboard.GetSettingsResponse.settings:type_name -> pomerium.dashboard.Settings - 0, // 18: pomerium.dashboard.SetSettingsRequest.settings:type_name -> pomerium.dashboard.Settings - 0, // 19: pomerium.dashboard.SetSettingsResponse.settings:type_name -> pomerium.dashboard.Settings - 1, // 20: pomerium.dashboard.SettingsService.GetSettings:input_type -> pomerium.dashboard.GetSettingsRequest - 3, // 21: pomerium.dashboard.SettingsService.SetSettings:input_type -> pomerium.dashboard.SetSettingsRequest - 1, // 22: pomerium.dashboard.SettingsService.GetBrandingSettings:input_type -> pomerium.dashboard.GetSettingsRequest - 2, // 23: pomerium.dashboard.SettingsService.GetSettings:output_type -> pomerium.dashboard.GetSettingsResponse - 4, // 24: pomerium.dashboard.SettingsService.SetSettings:output_type -> pomerium.dashboard.SetSettingsResponse - 2, // 25: pomerium.dashboard.SettingsService.GetBrandingSettings:output_type -> pomerium.dashboard.GetSettingsResponse - 23, // [23:26] is the sub-list for method output_type - 20, // [20:23] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name + 13, // 0: pomerium.dashboard.Settings.modified_at:type_name -> google.protobuf.Timestamp + 8, // 1: pomerium.dashboard.Settings.certificates:type_name -> pomerium.dashboard.Settings.Certificate + 14, // 2: pomerium.dashboard.Settings.timeout_read:type_name -> google.protobuf.Duration + 14, // 3: pomerium.dashboard.Settings.timeout_write:type_name -> google.protobuf.Duration + 14, // 4: pomerium.dashboard.Settings.timeout_idle:type_name -> google.protobuf.Duration + 14, // 5: pomerium.dashboard.Settings.cookie_expire:type_name -> google.protobuf.Duration + 14, // 6: pomerium.dashboard.Settings.idp_refresh_directory_timeout:type_name -> google.protobuf.Duration + 14, // 7: pomerium.dashboard.Settings.idp_refresh_directory_interval:type_name -> google.protobuf.Duration + 10, // 8: pomerium.dashboard.Settings.request_params:type_name -> pomerium.dashboard.Settings.RequestParamsEntry + 11, // 9: pomerium.dashboard.Settings.set_response_headers:type_name -> pomerium.dashboard.Settings.SetResponseHeadersEntry + 12, // 10: pomerium.dashboard.Settings.jwt_claims_headers:type_name -> pomerium.dashboard.Settings.JwtClaimsHeadersEntry + 14, // 11: pomerium.dashboard.Settings.default_upstream_timeout:type_name -> google.protobuf.Duration + 15, // 12: pomerium.dashboard.Settings.identity_provider_options:type_name -> google.protobuf.Struct + 14, // 13: pomerium.dashboard.Settings.identity_provider_refresh_interval:type_name -> google.protobuf.Duration + 14, // 14: pomerium.dashboard.Settings.identity_provider_refresh_timeout:type_name -> google.protobuf.Duration + 9, // 15: pomerium.dashboard.Settings.access_log_fields:type_name -> pomerium.dashboard.Settings.StringList + 9, // 16: pomerium.dashboard.Settings.authorize_log_fields:type_name -> pomerium.dashboard.Settings.StringList + 0, // 17: pomerium.dashboard.GetConsoleSettingsResponse.console_settings:type_name -> pomerium.dashboard.ConsoleSettings + 1, // 18: pomerium.dashboard.GetSettingsResponse.settings:type_name -> pomerium.dashboard.Settings + 1, // 19: pomerium.dashboard.SetSettingsRequest.settings:type_name -> pomerium.dashboard.Settings + 1, // 20: pomerium.dashboard.SetSettingsResponse.settings:type_name -> pomerium.dashboard.Settings + 4, // 21: pomerium.dashboard.SettingsService.GetSettings:input_type -> pomerium.dashboard.GetSettingsRequest + 6, // 22: pomerium.dashboard.SettingsService.SetSettings:input_type -> pomerium.dashboard.SetSettingsRequest + 4, // 23: pomerium.dashboard.SettingsService.GetBrandingSettings:input_type -> pomerium.dashboard.GetSettingsRequest + 2, // 24: pomerium.dashboard.SettingsService.GetConsoleSettings:input_type -> pomerium.dashboard.GetConsoleSettingsRequest + 5, // 25: pomerium.dashboard.SettingsService.GetSettings:output_type -> pomerium.dashboard.GetSettingsResponse + 7, // 26: pomerium.dashboard.SettingsService.SetSettings:output_type -> pomerium.dashboard.SetSettingsResponse + 5, // 27: pomerium.dashboard.SettingsService.GetBrandingSettings:output_type -> pomerium.dashboard.GetSettingsResponse + 3, // 28: pomerium.dashboard.SettingsService.GetConsoleSettings:output_type -> pomerium.dashboard.GetConsoleSettingsResponse + 25, // [25:29] is the sub-list for method output_type + 21, // [21:25] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name } func init() { file_settings_proto_init() } @@ -1453,7 +1618,19 @@ func file_settings_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_settings_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*ConsoleSettings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_settings_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Settings); i { case 0: return &v.state @@ -1465,7 +1642,31 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*GetConsoleSettingsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_settings_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*GetConsoleSettingsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_settings_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetSettingsRequest); i { case 0: return &v.state @@ -1477,7 +1678,7 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*GetSettingsResponse); i { case 0: return &v.state @@ -1489,7 +1690,7 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*SetSettingsRequest); i { case 0: return &v.state @@ -1501,7 +1702,7 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*SetSettingsResponse); i { case 0: return &v.state @@ -1513,7 +1714,7 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*Settings_Certificate); i { case 0: return &v.state @@ -1525,7 +1726,7 @@ func file_settings_proto_init() { return nil } } - file_settings_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_settings_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*Settings_StringList); i { case 0: return &v.state @@ -1538,14 +1739,14 @@ func file_settings_proto_init() { } } } - file_settings_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_settings_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_settings_proto_rawDesc, NumEnums: 0, - NumMessages: 10, + NumMessages: 13, NumExtensions: 0, NumServices: 1, }, @@ -1558,161 +1759,3 @@ func file_settings_proto_init() { file_settings_proto_goTypes = nil file_settings_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// SettingsServiceClient is the client API for SettingsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SettingsServiceClient interface { - // GetSettings retrieves the currently applied settings - GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) - // SetSettings applies new global settings - SetSettings(ctx context.Context, in *SetSettingsRequest, opts ...grpc.CallOption) (*SetSettingsResponse, error) - // GetBrandingSettings retrieves just the branding part of the settings - GetBrandingSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) -} - -type settingsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient { - return &settingsServiceClient{cc} -} - -func (c *settingsServiceClient) GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { - out := new(GetSettingsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.SettingsService/GetSettings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsServiceClient) SetSettings(ctx context.Context, in *SetSettingsRequest, opts ...grpc.CallOption) (*SetSettingsResponse, error) { - out := new(SetSettingsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.SettingsService/SetSettings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *settingsServiceClient) GetBrandingSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { - out := new(GetSettingsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.SettingsService/GetBrandingSettings", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SettingsServiceServer is the server API for SettingsService service. -type SettingsServiceServer interface { - // GetSettings retrieves the currently applied settings - GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) - // SetSettings applies new global settings - SetSettings(context.Context, *SetSettingsRequest) (*SetSettingsResponse, error) - // GetBrandingSettings retrieves just the branding part of the settings - GetBrandingSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) -} - -// UnimplementedSettingsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSettingsServiceServer struct { -} - -func (*UnimplementedSettingsServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetSettings not implemented") -} -func (*UnimplementedSettingsServiceServer) SetSettings(context.Context, *SetSettingsRequest) (*SetSettingsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetSettings not implemented") -} -func (*UnimplementedSettingsServiceServer) GetBrandingSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBrandingSettings not implemented") -} - -func RegisterSettingsServiceServer(s *grpc.Server, srv SettingsServiceServer) { - s.RegisterService(&_SettingsService_serviceDesc, srv) -} - -func _SettingsService_GetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSettingsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServiceServer).GetSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.SettingsService/GetSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServiceServer).GetSettings(ctx, req.(*GetSettingsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SettingsService_SetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetSettingsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServiceServer).SetSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.SettingsService/SetSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServiceServer).SetSettings(ctx, req.(*SetSettingsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SettingsService_GetBrandingSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetSettingsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SettingsServiceServer).GetBrandingSettings(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.SettingsService/GetBrandingSettings", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SettingsServiceServer).GetBrandingSettings(ctx, req.(*GetSettingsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _SettingsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.SettingsService", - HandlerType: (*SettingsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetSettings", - Handler: _SettingsService_GetSettings_Handler, - }, - { - MethodName: "SetSettings", - Handler: _SettingsService_SetSettings_Handler, - }, - { - MethodName: "GetBrandingSettings", - Handler: _SettingsService_GetBrandingSettings_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "settings.proto", -} diff --git a/pb/settings_grpc.pb.go b/pb/settings_grpc.pb.go new file mode 100644 index 0000000..2863673 --- /dev/null +++ b/pb/settings_grpc.pb.go @@ -0,0 +1,245 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: settings.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + SettingsService_GetSettings_FullMethodName = "/pomerium.dashboard.SettingsService/GetSettings" + SettingsService_SetSettings_FullMethodName = "/pomerium.dashboard.SettingsService/SetSettings" + SettingsService_GetBrandingSettings_FullMethodName = "/pomerium.dashboard.SettingsService/GetBrandingSettings" + SettingsService_GetConsoleSettings_FullMethodName = "/pomerium.dashboard.SettingsService/GetConsoleSettings" +) + +// SettingsServiceClient is the client API for SettingsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// SettingsService manages global pomerium settings +type SettingsServiceClient interface { + // GetSettings retrieves the currently applied settings + GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) + // SetSettings applies new global settings + SetSettings(ctx context.Context, in *SetSettingsRequest, opts ...grpc.CallOption) (*SetSettingsResponse, error) + // GetBrandingSettings retrieves just the branding part of the settings + GetBrandingSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) + // GetConsoleSettings retrieves the console settings. + GetConsoleSettings(ctx context.Context, in *GetConsoleSettingsRequest, opts ...grpc.CallOption) (*GetConsoleSettingsResponse, error) +} + +type settingsServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSettingsServiceClient(cc grpc.ClientConnInterface) SettingsServiceClient { + return &settingsServiceClient{cc} +} + +func (c *settingsServiceClient) GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetSettingsResponse) + err := c.cc.Invoke(ctx, SettingsService_GetSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) SetSettings(ctx context.Context, in *SetSettingsRequest, opts ...grpc.CallOption) (*SetSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetSettingsResponse) + err := c.cc.Invoke(ctx, SettingsService_SetSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) GetBrandingSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetSettingsResponse) + err := c.cc.Invoke(ctx, SettingsService_GetBrandingSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *settingsServiceClient) GetConsoleSettings(ctx context.Context, in *GetConsoleSettingsRequest, opts ...grpc.CallOption) (*GetConsoleSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetConsoleSettingsResponse) + err := c.cc.Invoke(ctx, SettingsService_GetConsoleSettings_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SettingsServiceServer is the server API for SettingsService service. +// All implementations should embed UnimplementedSettingsServiceServer +// for forward compatibility. +// +// SettingsService manages global pomerium settings +type SettingsServiceServer interface { + // GetSettings retrieves the currently applied settings + GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) + // SetSettings applies new global settings + SetSettings(context.Context, *SetSettingsRequest) (*SetSettingsResponse, error) + // GetBrandingSettings retrieves just the branding part of the settings + GetBrandingSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) + // GetConsoleSettings retrieves the console settings. + GetConsoleSettings(context.Context, *GetConsoleSettingsRequest) (*GetConsoleSettingsResponse, error) +} + +// UnimplementedSettingsServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSettingsServiceServer struct{} + +func (UnimplementedSettingsServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetSettings not implemented") +} +func (UnimplementedSettingsServiceServer) SetSettings(context.Context, *SetSettingsRequest) (*SetSettingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetSettings not implemented") +} +func (UnimplementedSettingsServiceServer) GetBrandingSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBrandingSettings not implemented") +} +func (UnimplementedSettingsServiceServer) GetConsoleSettings(context.Context, *GetConsoleSettingsRequest) (*GetConsoleSettingsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetConsoleSettings not implemented") +} +func (UnimplementedSettingsServiceServer) testEmbeddedByValue() {} + +// UnsafeSettingsServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SettingsServiceServer will +// result in compilation errors. +type UnsafeSettingsServiceServer interface { + mustEmbedUnimplementedSettingsServiceServer() +} + +func RegisterSettingsServiceServer(s grpc.ServiceRegistrar, srv SettingsServiceServer) { + // If the following call pancis, it indicates UnimplementedSettingsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&SettingsService_ServiceDesc, srv) +} + +func _SettingsService_GetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).GetSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingsService_GetSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).GetSettings(ctx, req.(*GetSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_SetSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).SetSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingsService_SetSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).SetSettings(ctx, req.(*SetSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_GetBrandingSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).GetBrandingSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingsService_GetBrandingSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).GetBrandingSettings(ctx, req.(*GetSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SettingsService_GetConsoleSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetConsoleSettingsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SettingsServiceServer).GetConsoleSettings(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SettingsService_GetConsoleSettings_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SettingsServiceServer).GetConsoleSettings(ctx, req.(*GetConsoleSettingsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SettingsService_ServiceDesc is the grpc.ServiceDesc for SettingsService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SettingsService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.SettingsService", + HandlerType: (*SettingsServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetSettings", + Handler: _SettingsService_GetSettings_Handler, + }, + { + MethodName: "SetSettings", + Handler: _SettingsService_SetSettings_Handler, + }, + { + MethodName: "GetBrandingSettings", + Handler: _SettingsService_GetBrandingSettings_Handler, + }, + { + MethodName: "GetConsoleSettings", + Handler: _SettingsService_GetConsoleSettings_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "settings.proto", +} diff --git a/pb/tsdb.pb.go b/pb/tsdb.pb.go index 322ce46..09a6711 100644 --- a/pb/tsdb.pb.go +++ b/pb/tsdb.pb.go @@ -1,17 +1,13 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: tsdb.proto package pb import ( - context "context" _ "github.com/envoyproxy/protoc-gen-validate/validate" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" @@ -3014,7 +3010,7 @@ func file_tsdb_proto_rawDescGZIP() []byte { var file_tsdb_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_tsdb_proto_msgTypes = make([]protoimpl.MessageInfo, 37) -var file_tsdb_proto_goTypes = []interface{}{ +var file_tsdb_proto_goTypes = []any{ (Rate)(0), // 0: pomerium.dashboard.Rate (Metric)(0), // 1: pomerium.dashboard.Metric (Component)(0), // 2: pomerium.dashboard.Component @@ -3151,7 +3147,7 @@ func file_tsdb_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_tsdb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Range); i { case 0: return &v.state @@ -3163,7 +3159,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*RouteMatcher); i { case 0: return &v.state @@ -3175,7 +3171,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*String); i { case 0: return &v.state @@ -3187,7 +3183,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Scalar); i { case 0: return &v.state @@ -3199,7 +3195,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*TimeSeries); i { case 0: return &v.state @@ -3211,7 +3207,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Matrix); i { case 0: return &v.state @@ -3223,7 +3219,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*Sample); i { case 0: return &v.state @@ -3235,7 +3231,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*Vector); i { case 0: return &v.state @@ -3247,7 +3243,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*RouteMetricSeriesRequest); i { case 0: return &v.state @@ -3259,7 +3255,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*RouteMetricSeriesHistogramRequest); i { case 0: return &v.state @@ -3271,7 +3267,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ServerMetricSeriesRequest); i { case 0: return &v.state @@ -3283,7 +3279,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ServerMetricRequest); i { case 0: return &v.state @@ -3295,7 +3291,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*ConsoleMetricRequest); i { case 0: return &v.state @@ -3307,7 +3303,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*ConsoleMetricSeriesRequest); i { case 0: return &v.state @@ -3319,7 +3315,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*LastErrorRequest); i { case 0: return &v.state @@ -3331,7 +3327,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*LastErrorResponse); i { case 0: return &v.state @@ -3343,7 +3339,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*RouteMetricChangeRequest); i { case 0: return &v.state @@ -3355,7 +3351,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*TimeSeriesResponse); i { case 0: return &v.state @@ -3367,7 +3363,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*TimeSeriesResponseMulti); i { case 0: return &v.state @@ -3379,7 +3375,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*ScalarBuckets); i { case 0: return &v.state @@ -3391,7 +3387,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*UptimeRequest); i { case 0: return &v.state @@ -3403,7 +3399,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*UptimeResponse); i { case 0: return &v.state @@ -3415,7 +3411,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*GetInstancesRequest); i { case 0: return &v.state @@ -3427,7 +3423,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*Instances); i { case 0: return &v.state @@ -3439,7 +3435,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*GetInstanceInfoRequest); i { case 0: return &v.state @@ -3451,7 +3447,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*GetStatusRequest); i { case 0: return &v.state @@ -3463,7 +3459,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*GetStatusResponse); i { case 0: return &v.state @@ -3475,7 +3471,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*UsageReportRequest); i { case 0: return &v.state @@ -3487,7 +3483,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*UsageReportResponse); i { case 0: return &v.state @@ -3499,7 +3495,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*Labels); i { case 0: return &v.state @@ -3511,7 +3507,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*ScalarBuckets_Bucket); i { case 0: return &v.state @@ -3523,7 +3519,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*UptimeResponse_Summary); i { case 0: return &v.state @@ -3535,7 +3531,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*Instances_Instance); i { case 0: return &v.state @@ -3547,7 +3543,7 @@ func file_tsdb_proto_init() { return nil } } - file_tsdb_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_tsdb_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*GetStatusResponse_Target); i { case 0: return &v.state @@ -3560,12 +3556,12 @@ func file_tsdb_proto_init() { } } } - file_tsdb_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_tsdb_proto_msgTypes[1].OneofWrappers = []any{ (*RouteMatcher_RouteId)(nil), (*RouteMatcher_NamespaceId)(nil), (*RouteMatcher_ExtDataSourceId)(nil), } - file_tsdb_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_tsdb_proto_msgTypes[26].OneofWrappers = []any{ (*GetStatusResponse_Ok)(nil), (*GetStatusResponse_LastError)(nil), } @@ -3589,503 +3585,3 @@ func file_tsdb_proto_init() { file_tsdb_proto_goTypes = nil file_tsdb_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// TimeSeriesDBClient is the client API for TimeSeriesDB service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type TimeSeriesDBClient interface { - // returns metric change for a period of time - GetRouteMetricChange(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*Scalar, error) - // returns buckets of values for a given metric - GetRouteMetricChangeHistogram(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*ScalarBuckets, error) - // returns metric change as time series - GetRouteMetricSeries(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) - // returns metric change as time series - GetRouteMetricSeriesHistogram(ctx context.Context, in *RouteMetricSeriesHistogramRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) - // returns multiple annotated time series - GetRouteMetricSeriesMulti(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponseMulti, error) - // returns service uptime statistics - GetUptime(ctx context.Context, in *UptimeRequest, opts ...grpc.CallOption) (*UptimeResponse, error) - // returns list of system services with metrics - GetInstances(ctx context.Context, in *GetInstancesRequest, opts ...grpc.CallOption) (*Instances, error) - // returns server queries - GetServerMetricSeries(ctx context.Context, in *ServerMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) - // returns current metric value - GetServerMetric(ctx context.Context, in *ServerMetricRequest, opts ...grpc.CallOption) (*Sample, error) - // returns current status of scraping targets - GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) - // returns last known error for a metric, if available - GetLastMetricError(ctx context.Context, in *LastErrorRequest, opts ...grpc.CallOption) (*LastErrorResponse, error) - // returns usage report - GetUsageReport(ctx context.Context, in *UsageReportRequest, opts ...grpc.CallOption) (*UsageReportResponse, error) -} - -type timeSeriesDBClient struct { - cc grpc.ClientConnInterface -} - -func NewTimeSeriesDBClient(cc grpc.ClientConnInterface) TimeSeriesDBClient { - return &timeSeriesDBClient{cc} -} - -func (c *timeSeriesDBClient) GetRouteMetricChange(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*Scalar, error) { - out := new(Scalar) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChange", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetRouteMetricChangeHistogram(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*ScalarBuckets, error) { - out := new(ScalarBuckets) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChangeHistogram", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetRouteMetricSeries(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { - out := new(TimeSeriesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeries", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetRouteMetricSeriesHistogram(ctx context.Context, in *RouteMetricSeriesHistogramRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { - out := new(TimeSeriesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesHistogram", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetRouteMetricSeriesMulti(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponseMulti, error) { - out := new(TimeSeriesResponseMulti) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesMulti", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetUptime(ctx context.Context, in *UptimeRequest, opts ...grpc.CallOption) (*UptimeResponse, error) { - out := new(UptimeResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetUptime", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetInstances(ctx context.Context, in *GetInstancesRequest, opts ...grpc.CallOption) (*Instances, error) { - out := new(Instances) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetInstances", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetServerMetricSeries(ctx context.Context, in *ServerMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { - out := new(TimeSeriesResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetServerMetricSeries", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetServerMetric(ctx context.Context, in *ServerMetricRequest, opts ...grpc.CallOption) (*Sample, error) { - out := new(Sample) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetServerMetric", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) { - out := new(GetStatusResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetLastMetricError(ctx context.Context, in *LastErrorRequest, opts ...grpc.CallOption) (*LastErrorResponse, error) { - out := new(LastErrorResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetLastMetricError", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *timeSeriesDBClient) GetUsageReport(ctx context.Context, in *UsageReportRequest, opts ...grpc.CallOption) (*UsageReportResponse, error) { - out := new(UsageReportResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.TimeSeriesDB/GetUsageReport", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// TimeSeriesDBServer is the server API for TimeSeriesDB service. -type TimeSeriesDBServer interface { - // returns metric change for a period of time - GetRouteMetricChange(context.Context, *RouteMetricChangeRequest) (*Scalar, error) - // returns buckets of values for a given metric - GetRouteMetricChangeHistogram(context.Context, *RouteMetricChangeRequest) (*ScalarBuckets, error) - // returns metric change as time series - GetRouteMetricSeries(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponse, error) - // returns metric change as time series - GetRouteMetricSeriesHistogram(context.Context, *RouteMetricSeriesHistogramRequest) (*TimeSeriesResponse, error) - // returns multiple annotated time series - GetRouteMetricSeriesMulti(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponseMulti, error) - // returns service uptime statistics - GetUptime(context.Context, *UptimeRequest) (*UptimeResponse, error) - // returns list of system services with metrics - GetInstances(context.Context, *GetInstancesRequest) (*Instances, error) - // returns server queries - GetServerMetricSeries(context.Context, *ServerMetricSeriesRequest) (*TimeSeriesResponse, error) - // returns current metric value - GetServerMetric(context.Context, *ServerMetricRequest) (*Sample, error) - // returns current status of scraping targets - GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) - // returns last known error for a metric, if available - GetLastMetricError(context.Context, *LastErrorRequest) (*LastErrorResponse, error) - // returns usage report - GetUsageReport(context.Context, *UsageReportRequest) (*UsageReportResponse, error) -} - -// UnimplementedTimeSeriesDBServer can be embedded to have forward compatible implementations. -type UnimplementedTimeSeriesDBServer struct { -} - -func (*UnimplementedTimeSeriesDBServer) GetRouteMetricChange(context.Context, *RouteMetricChangeRequest) (*Scalar, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricChange not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetRouteMetricChangeHistogram(context.Context, *RouteMetricChangeRequest) (*ScalarBuckets, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricChangeHistogram not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetRouteMetricSeries(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeries not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetRouteMetricSeriesHistogram(context.Context, *RouteMetricSeriesHistogramRequest) (*TimeSeriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeriesHistogram not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetRouteMetricSeriesMulti(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponseMulti, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeriesMulti not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetUptime(context.Context, *UptimeRequest) (*UptimeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUptime not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetInstances(context.Context, *GetInstancesRequest) (*Instances, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetInstances not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetServerMetricSeries(context.Context, *ServerMetricSeriesRequest) (*TimeSeriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServerMetricSeries not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetServerMetric(context.Context, *ServerMetricRequest) (*Sample, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServerMetric not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetLastMetricError(context.Context, *LastErrorRequest) (*LastErrorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLastMetricError not implemented") -} -func (*UnimplementedTimeSeriesDBServer) GetUsageReport(context.Context, *UsageReportRequest) (*UsageReportResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUsageReport not implemented") -} - -func RegisterTimeSeriesDBServer(s *grpc.Server, srv TimeSeriesDBServer) { - s.RegisterService(&_TimeSeriesDB_serviceDesc, srv) -} - -func _TimeSeriesDB_GetRouteMetricChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RouteMetricChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetRouteMetricChange(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChange", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetRouteMetricChange(ctx, req.(*RouteMetricChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetRouteMetricChangeHistogram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RouteMetricChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetRouteMetricChangeHistogram(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChangeHistogram", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetRouteMetricChangeHistogram(ctx, req.(*RouteMetricChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetRouteMetricSeries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RouteMetricSeriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetRouteMetricSeries(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeries", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetRouteMetricSeries(ctx, req.(*RouteMetricSeriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetRouteMetricSeriesHistogram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RouteMetricSeriesHistogramRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetRouteMetricSeriesHistogram(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesHistogram", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetRouteMetricSeriesHistogram(ctx, req.(*RouteMetricSeriesHistogramRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetRouteMetricSeriesMulti_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RouteMetricSeriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetRouteMetricSeriesMulti(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesMulti", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetRouteMetricSeriesMulti(ctx, req.(*RouteMetricSeriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetUptime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UptimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetUptime(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetUptime", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetUptime(ctx, req.(*UptimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetInstancesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetInstances(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetInstances", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetInstances(ctx, req.(*GetInstancesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetServerMetricSeries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ServerMetricSeriesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetServerMetricSeries(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetServerMetricSeries", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetServerMetricSeries(ctx, req.(*ServerMetricSeriesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetServerMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ServerMetricRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetServerMetric(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetServerMetric", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetServerMetric(ctx, req.(*ServerMetricRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetStatus(ctx, req.(*GetStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetLastMetricError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LastErrorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetLastMetricError(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetLastMetricError", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetLastMetricError(ctx, req.(*LastErrorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _TimeSeriesDB_GetUsageReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UsageReportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TimeSeriesDBServer).GetUsageReport(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.TimeSeriesDB/GetUsageReport", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TimeSeriesDBServer).GetUsageReport(ctx, req.(*UsageReportRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _TimeSeriesDB_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.TimeSeriesDB", - HandlerType: (*TimeSeriesDBServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetRouteMetricChange", - Handler: _TimeSeriesDB_GetRouteMetricChange_Handler, - }, - { - MethodName: "GetRouteMetricChangeHistogram", - Handler: _TimeSeriesDB_GetRouteMetricChangeHistogram_Handler, - }, - { - MethodName: "GetRouteMetricSeries", - Handler: _TimeSeriesDB_GetRouteMetricSeries_Handler, - }, - { - MethodName: "GetRouteMetricSeriesHistogram", - Handler: _TimeSeriesDB_GetRouteMetricSeriesHistogram_Handler, - }, - { - MethodName: "GetRouteMetricSeriesMulti", - Handler: _TimeSeriesDB_GetRouteMetricSeriesMulti_Handler, - }, - { - MethodName: "GetUptime", - Handler: _TimeSeriesDB_GetUptime_Handler, - }, - { - MethodName: "GetInstances", - Handler: _TimeSeriesDB_GetInstances_Handler, - }, - { - MethodName: "GetServerMetricSeries", - Handler: _TimeSeriesDB_GetServerMetricSeries_Handler, - }, - { - MethodName: "GetServerMetric", - Handler: _TimeSeriesDB_GetServerMetric_Handler, - }, - { - MethodName: "GetStatus", - Handler: _TimeSeriesDB_GetStatus_Handler, - }, - { - MethodName: "GetLastMetricError", - Handler: _TimeSeriesDB_GetLastMetricError_Handler, - }, - { - MethodName: "GetUsageReport", - Handler: _TimeSeriesDB_GetUsageReport_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "tsdb.proto", -} diff --git a/pb/tsdb_grpc.pb.go b/pb/tsdb_grpc.pb.go new file mode 100644 index 0000000..cbbfaa1 --- /dev/null +++ b/pb/tsdb_grpc.pb.go @@ -0,0 +1,571 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: tsdb.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + TimeSeriesDB_GetRouteMetricChange_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChange" + TimeSeriesDB_GetRouteMetricChangeHistogram_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricChangeHistogram" + TimeSeriesDB_GetRouteMetricSeries_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeries" + TimeSeriesDB_GetRouteMetricSeriesHistogram_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesHistogram" + TimeSeriesDB_GetRouteMetricSeriesMulti_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetRouteMetricSeriesMulti" + TimeSeriesDB_GetUptime_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetUptime" + TimeSeriesDB_GetInstances_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetInstances" + TimeSeriesDB_GetServerMetricSeries_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetServerMetricSeries" + TimeSeriesDB_GetServerMetric_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetServerMetric" + TimeSeriesDB_GetStatus_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetStatus" + TimeSeriesDB_GetLastMetricError_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetLastMetricError" + TimeSeriesDB_GetUsageReport_FullMethodName = "/pomerium.dashboard.TimeSeriesDB/GetUsageReport" +) + +// TimeSeriesDBClient is the client API for TimeSeriesDB service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// TimeSeriesDB is a generic service that is meant to be able to query for +// historical metrics and should provide a sufficient abstraction between the UI +// and underlying time series service, would it be Prometheus, embedded TSDB or +// other 3rd party provider +type TimeSeriesDBClient interface { + // returns metric change for a period of time + GetRouteMetricChange(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*Scalar, error) + // returns buckets of values for a given metric + GetRouteMetricChangeHistogram(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*ScalarBuckets, error) + // returns metric change as time series + GetRouteMetricSeries(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) + // returns metric change as time series + GetRouteMetricSeriesHistogram(ctx context.Context, in *RouteMetricSeriesHistogramRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) + // returns multiple annotated time series + GetRouteMetricSeriesMulti(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponseMulti, error) + // returns service uptime statistics + GetUptime(ctx context.Context, in *UptimeRequest, opts ...grpc.CallOption) (*UptimeResponse, error) + // returns list of system services with metrics + GetInstances(ctx context.Context, in *GetInstancesRequest, opts ...grpc.CallOption) (*Instances, error) + // returns server queries + GetServerMetricSeries(ctx context.Context, in *ServerMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) + // returns current metric value + GetServerMetric(ctx context.Context, in *ServerMetricRequest, opts ...grpc.CallOption) (*Sample, error) + // returns current status of scraping targets + GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) + // returns last known error for a metric, if available + GetLastMetricError(ctx context.Context, in *LastErrorRequest, opts ...grpc.CallOption) (*LastErrorResponse, error) + // returns usage report + GetUsageReport(ctx context.Context, in *UsageReportRequest, opts ...grpc.CallOption) (*UsageReportResponse, error) +} + +type timeSeriesDBClient struct { + cc grpc.ClientConnInterface +} + +func NewTimeSeriesDBClient(cc grpc.ClientConnInterface) TimeSeriesDBClient { + return &timeSeriesDBClient{cc} +} + +func (c *timeSeriesDBClient) GetRouteMetricChange(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*Scalar, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Scalar) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetRouteMetricChange_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetRouteMetricChangeHistogram(ctx context.Context, in *RouteMetricChangeRequest, opts ...grpc.CallOption) (*ScalarBuckets, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ScalarBuckets) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetRouteMetricChangeHistogram_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetRouteMetricSeries(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(TimeSeriesResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetRouteMetricSeries_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetRouteMetricSeriesHistogram(ctx context.Context, in *RouteMetricSeriesHistogramRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(TimeSeriesResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetRouteMetricSeriesHistogram_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetRouteMetricSeriesMulti(ctx context.Context, in *RouteMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponseMulti, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(TimeSeriesResponseMulti) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetRouteMetricSeriesMulti_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetUptime(ctx context.Context, in *UptimeRequest, opts ...grpc.CallOption) (*UptimeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UptimeResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetUptime_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetInstances(ctx context.Context, in *GetInstancesRequest, opts ...grpc.CallOption) (*Instances, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Instances) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetInstances_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetServerMetricSeries(ctx context.Context, in *ServerMetricSeriesRequest, opts ...grpc.CallOption) (*TimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(TimeSeriesResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetServerMetricSeries_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetServerMetric(ctx context.Context, in *ServerMetricRequest, opts ...grpc.CallOption) (*Sample, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(Sample) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetServerMetric_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetStatusResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetLastMetricError(ctx context.Context, in *LastErrorRequest, opts ...grpc.CallOption) (*LastErrorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LastErrorResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetLastMetricError_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *timeSeriesDBClient) GetUsageReport(ctx context.Context, in *UsageReportRequest, opts ...grpc.CallOption) (*UsageReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UsageReportResponse) + err := c.cc.Invoke(ctx, TimeSeriesDB_GetUsageReport_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TimeSeriesDBServer is the server API for TimeSeriesDB service. +// All implementations should embed UnimplementedTimeSeriesDBServer +// for forward compatibility. +// +// TimeSeriesDB is a generic service that is meant to be able to query for +// historical metrics and should provide a sufficient abstraction between the UI +// and underlying time series service, would it be Prometheus, embedded TSDB or +// other 3rd party provider +type TimeSeriesDBServer interface { + // returns metric change for a period of time + GetRouteMetricChange(context.Context, *RouteMetricChangeRequest) (*Scalar, error) + // returns buckets of values for a given metric + GetRouteMetricChangeHistogram(context.Context, *RouteMetricChangeRequest) (*ScalarBuckets, error) + // returns metric change as time series + GetRouteMetricSeries(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponse, error) + // returns metric change as time series + GetRouteMetricSeriesHistogram(context.Context, *RouteMetricSeriesHistogramRequest) (*TimeSeriesResponse, error) + // returns multiple annotated time series + GetRouteMetricSeriesMulti(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponseMulti, error) + // returns service uptime statistics + GetUptime(context.Context, *UptimeRequest) (*UptimeResponse, error) + // returns list of system services with metrics + GetInstances(context.Context, *GetInstancesRequest) (*Instances, error) + // returns server queries + GetServerMetricSeries(context.Context, *ServerMetricSeriesRequest) (*TimeSeriesResponse, error) + // returns current metric value + GetServerMetric(context.Context, *ServerMetricRequest) (*Sample, error) + // returns current status of scraping targets + GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) + // returns last known error for a metric, if available + GetLastMetricError(context.Context, *LastErrorRequest) (*LastErrorResponse, error) + // returns usage report + GetUsageReport(context.Context, *UsageReportRequest) (*UsageReportResponse, error) +} + +// UnimplementedTimeSeriesDBServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTimeSeriesDBServer struct{} + +func (UnimplementedTimeSeriesDBServer) GetRouteMetricChange(context.Context, *RouteMetricChangeRequest) (*Scalar, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricChange not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetRouteMetricChangeHistogram(context.Context, *RouteMetricChangeRequest) (*ScalarBuckets, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricChangeHistogram not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetRouteMetricSeries(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeries not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetRouteMetricSeriesHistogram(context.Context, *RouteMetricSeriesHistogramRequest) (*TimeSeriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeriesHistogram not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetRouteMetricSeriesMulti(context.Context, *RouteMetricSeriesRequest) (*TimeSeriesResponseMulti, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetRouteMetricSeriesMulti not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetUptime(context.Context, *UptimeRequest) (*UptimeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUptime not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetInstances(context.Context, *GetInstancesRequest) (*Instances, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetInstances not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetServerMetricSeries(context.Context, *ServerMetricSeriesRequest) (*TimeSeriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetServerMetricSeries not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetServerMetric(context.Context, *ServerMetricRequest) (*Sample, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetServerMetric not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetLastMetricError(context.Context, *LastErrorRequest) (*LastErrorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLastMetricError not implemented") +} +func (UnimplementedTimeSeriesDBServer) GetUsageReport(context.Context, *UsageReportRequest) (*UsageReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUsageReport not implemented") +} +func (UnimplementedTimeSeriesDBServer) testEmbeddedByValue() {} + +// UnsafeTimeSeriesDBServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TimeSeriesDBServer will +// result in compilation errors. +type UnsafeTimeSeriesDBServer interface { + mustEmbedUnimplementedTimeSeriesDBServer() +} + +func RegisterTimeSeriesDBServer(s grpc.ServiceRegistrar, srv TimeSeriesDBServer) { + // If the following call pancis, it indicates UnimplementedTimeSeriesDBServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&TimeSeriesDB_ServiceDesc, srv) +} + +func _TimeSeriesDB_GetRouteMetricChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RouteMetricChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetRouteMetricChange(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetRouteMetricChange_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetRouteMetricChange(ctx, req.(*RouteMetricChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetRouteMetricChangeHistogram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RouteMetricChangeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetRouteMetricChangeHistogram(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetRouteMetricChangeHistogram_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetRouteMetricChangeHistogram(ctx, req.(*RouteMetricChangeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetRouteMetricSeries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RouteMetricSeriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetRouteMetricSeries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetRouteMetricSeries_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetRouteMetricSeries(ctx, req.(*RouteMetricSeriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetRouteMetricSeriesHistogram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RouteMetricSeriesHistogramRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetRouteMetricSeriesHistogram(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetRouteMetricSeriesHistogram_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetRouteMetricSeriesHistogram(ctx, req.(*RouteMetricSeriesHistogramRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetRouteMetricSeriesMulti_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RouteMetricSeriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetRouteMetricSeriesMulti(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetRouteMetricSeriesMulti_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetRouteMetricSeriesMulti(ctx, req.(*RouteMetricSeriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetUptime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UptimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetUptime(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetUptime_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetUptime(ctx, req.(*UptimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetInstances_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetInstances(ctx, req.(*GetInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetServerMetricSeries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerMetricSeriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetServerMetricSeries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetServerMetricSeries_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetServerMetricSeries(ctx, req.(*ServerMetricSeriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetServerMetric_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ServerMetricRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetServerMetric(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetServerMetric_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetServerMetric(ctx, req.(*ServerMetricRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetStatus(ctx, req.(*GetStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetLastMetricError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LastErrorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetLastMetricError(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetLastMetricError_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetLastMetricError(ctx, req.(*LastErrorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _TimeSeriesDB_GetUsageReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UsageReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TimeSeriesDBServer).GetUsageReport(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TimeSeriesDB_GetUsageReport_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TimeSeriesDBServer).GetUsageReport(ctx, req.(*UsageReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// TimeSeriesDB_ServiceDesc is the grpc.ServiceDesc for TimeSeriesDB service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TimeSeriesDB_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.TimeSeriesDB", + HandlerType: (*TimeSeriesDBServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetRouteMetricChange", + Handler: _TimeSeriesDB_GetRouteMetricChange_Handler, + }, + { + MethodName: "GetRouteMetricChangeHistogram", + Handler: _TimeSeriesDB_GetRouteMetricChangeHistogram_Handler, + }, + { + MethodName: "GetRouteMetricSeries", + Handler: _TimeSeriesDB_GetRouteMetricSeries_Handler, + }, + { + MethodName: "GetRouteMetricSeriesHistogram", + Handler: _TimeSeriesDB_GetRouteMetricSeriesHistogram_Handler, + }, + { + MethodName: "GetRouteMetricSeriesMulti", + Handler: _TimeSeriesDB_GetRouteMetricSeriesMulti_Handler, + }, + { + MethodName: "GetUptime", + Handler: _TimeSeriesDB_GetUptime_Handler, + }, + { + MethodName: "GetInstances", + Handler: _TimeSeriesDB_GetInstances_Handler, + }, + { + MethodName: "GetServerMetricSeries", + Handler: _TimeSeriesDB_GetServerMetricSeries_Handler, + }, + { + MethodName: "GetServerMetric", + Handler: _TimeSeriesDB_GetServerMetric_Handler, + }, + { + MethodName: "GetStatus", + Handler: _TimeSeriesDB_GetStatus_Handler, + }, + { + MethodName: "GetLastMetricError", + Handler: _TimeSeriesDB_GetLastMetricError_Handler, + }, + { + MethodName: "GetUsageReport", + Handler: _TimeSeriesDB_GetUsageReport_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "tsdb.proto", +} diff --git a/pb/users.pb.go b/pb/users.pb.go index 777c0fe..18ce697 100644 --- a/pb/users.pb.go +++ b/pb/users.pb.go @@ -1,16 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.24.4 +// protoc-gen-go v1.34.2 +// protoc v3.20.3 // source: users.proto package pb import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" @@ -2195,7 +2191,7 @@ func file_users_proto_rawDescGZIP() []byte { } var file_users_proto_msgTypes = make([]protoimpl.MessageInfo, 33) -var file_users_proto_goTypes = []interface{}{ +var file_users_proto_goTypes = []any{ (*RecoveryToken)(nil), // 0: pomerium.dashboard.RecoveryToken (*GroupInfo)(nil), // 1: pomerium.dashboard.GroupInfo (*UserInfo)(nil), // 2: pomerium.dashboard.UserInfo @@ -2296,7 +2292,7 @@ func file_users_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*RecoveryToken); i { case 0: return &v.state @@ -2308,7 +2304,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*GroupInfo); i { case 0: return &v.state @@ -2320,7 +2316,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*UserInfo); i { case 0: return &v.state @@ -2332,7 +2328,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GetUserInfoRequest); i { case 0: return &v.state @@ -2344,7 +2340,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GetUserInfoResponse); i { case 0: return &v.state @@ -2356,7 +2352,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*QueryGroupsRequest); i { case 0: return &v.state @@ -2368,7 +2364,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*QueryGroupsResponse); i { case 0: return &v.state @@ -2380,7 +2376,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*QueryUsersRequest); i { case 0: return &v.state @@ -2392,7 +2388,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*QueryUsersResponse); i { case 0: return &v.state @@ -2404,7 +2400,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*PomeriumServiceAccount); i { case 0: return &v.state @@ -2416,7 +2412,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*AddPomeriumServiceAccountRequest); i { case 0: return &v.state @@ -2428,7 +2424,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*AddPomeriumServiceAccountResponse); i { case 0: return &v.state @@ -2440,7 +2436,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*DeletePomeriumServiceAccountRequest); i { case 0: return &v.state @@ -2452,7 +2448,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*DeletePomeriumServiceAccountResponse); i { case 0: return &v.state @@ -2464,7 +2460,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*GetPomeriumServiceAccountRequest); i { case 0: return &v.state @@ -2476,7 +2472,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*GetPomeriumServiceAccountResponse); i { case 0: return &v.state @@ -2488,7 +2484,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*ListPomeriumServiceAccountsRequest); i { case 0: return &v.state @@ -2500,7 +2496,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*ListPomeriumServiceAccountsResponse); i { case 0: return &v.state @@ -2512,7 +2508,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*SetPomeriumServiceAccountRequest); i { case 0: return &v.state @@ -2524,7 +2520,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*SetPomeriumServiceAccountResponse); i { case 0: return &v.state @@ -2536,7 +2532,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*PomeriumSession); i { case 0: return &v.state @@ -2548,7 +2544,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*DeletePomeriumSessionRequest); i { case 0: return &v.state @@ -2560,7 +2556,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*DeletePomeriumSessionResponse); i { case 0: return &v.state @@ -2572,7 +2568,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*GetPomeriumSessionRequest); i { case 0: return &v.state @@ -2584,7 +2580,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*GetPomeriumSessionResponse); i { case 0: return &v.state @@ -2596,7 +2592,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*ListPomeriumSessionsRequest); i { case 0: return &v.state @@ -2608,7 +2604,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*ListPomeriumSessionsResponse); i { case 0: return &v.state @@ -2620,7 +2616,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*ImpersonateRequest); i { case 0: return &v.state @@ -2632,7 +2628,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*ImpersonateResponse); i { case 0: return &v.state @@ -2644,7 +2640,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*PomeriumSession_Group); i { case 0: return &v.state @@ -2656,7 +2652,7 @@ func file_users_proto_init() { return nil } } - file_users_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_users_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*PomeriumSession_User); i { case 0: return &v.state @@ -2669,9 +2665,9 @@ func file_users_proto_init() { } } } - file_users_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_users_proto_msgTypes[9].OneofWrappers = []interface{}{} - file_users_proto_msgTypes[25].OneofWrappers = []interface{}{} + file_users_proto_msgTypes[3].OneofWrappers = []any{} + file_users_proto_msgTypes[9].OneofWrappers = []any{} + file_users_proto_msgTypes[25].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ @@ -2691,583 +2687,3 @@ func file_users_proto_init() { file_users_proto_goTypes = nil file_users_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// UserServiceClient is the client API for UserService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type UserServiceClient interface { - // GetUserInfo retrieves identity information and permission mappings for a - // user - GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) - // QueryGroups retrieves groups from the databroker based on - // QueryGroupsRequest parameters - QueryGroups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) - // QueryUsers retrieves users from the databroker based on QueryUsersRequest - // parameters - QueryUsers(ctx context.Context, in *QueryUsersRequest, opts ...grpc.CallOption) (*QueryUsersResponse, error) -} - -type userServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { - return &userServiceClient{cc} -} - -func (c *userServiceClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) { - out := new(GetUserInfoResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.UserService/GetUserInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userServiceClient) QueryGroups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) { - out := new(QueryGroupsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.UserService/QueryGroups", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *userServiceClient) QueryUsers(ctx context.Context, in *QueryUsersRequest, opts ...grpc.CallOption) (*QueryUsersResponse, error) { - out := new(QueryUsersResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.UserService/QueryUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// UserServiceServer is the server API for UserService service. -type UserServiceServer interface { - // GetUserInfo retrieves identity information and permission mappings for a - // user - GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) - // QueryGroups retrieves groups from the databroker based on - // QueryGroupsRequest parameters - QueryGroups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) - // QueryUsers retrieves users from the databroker based on QueryUsersRequest - // parameters - QueryUsers(context.Context, *QueryUsersRequest) (*QueryUsersResponse, error) -} - -// UnimplementedUserServiceServer can be embedded to have forward compatible implementations. -type UnimplementedUserServiceServer struct { -} - -func (*UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") -} -func (*UnimplementedUserServiceServer) QueryGroups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryGroups not implemented") -} -func (*UnimplementedUserServiceServer) QueryUsers(context.Context, *QueryUsersRequest) (*QueryUsersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method QueryUsers not implemented") -} - -func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) { - s.RegisterService(&_UserService_serviceDesc, srv) -} - -func _UserService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserServiceServer).GetUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.UserService/GetUserInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserServiceServer).GetUserInfo(ctx, req.(*GetUserInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserService_QueryGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGroupsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserServiceServer).QueryGroups(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.UserService/QueryGroups", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserServiceServer).QueryGroups(ctx, req.(*QueryGroupsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _UserService_QueryUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryUsersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UserServiceServer).QueryUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.UserService/QueryUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserServiceServer).QueryUsers(ctx, req.(*QueryUsersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _UserService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.UserService", - HandlerType: (*UserServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetUserInfo", - Handler: _UserService_GetUserInfo_Handler, - }, - { - MethodName: "QueryGroups", - Handler: _UserService_QueryGroups_Handler, - }, - { - MethodName: "QueryUsers", - Handler: _UserService_QueryUsers_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "users.proto", -} - -// PomeriumServiceAccountServiceClient is the client API for PomeriumServiceAccountService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PomeriumServiceAccountServiceClient interface { - // AddPomeriumServiceAccount creates a new service account - AddPomeriumServiceAccount(ctx context.Context, in *AddPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*AddPomeriumServiceAccountResponse, error) - // DeletePomeriumServiceAccount removes an existing service account - DeletePomeriumServiceAccount(ctx context.Context, in *DeletePomeriumServiceAccountRequest, opts ...grpc.CallOption) (*DeletePomeriumServiceAccountResponse, error) - // GetPomeriumServiceAccount retrieves an existing service account - GetPomeriumServiceAccount(ctx context.Context, in *GetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*GetPomeriumServiceAccountResponse, error) - // ListPomeriumServiceAccounts lists service accounts based on the parameters - // in ListPomeriumServiceAccountsRequest - ListPomeriumServiceAccounts(ctx context.Context, in *ListPomeriumServiceAccountsRequest, opts ...grpc.CallOption) (*ListPomeriumServiceAccountsResponse, error) - SetPomeriumServiceAccount(ctx context.Context, in *SetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*SetPomeriumServiceAccountResponse, error) -} - -type pomeriumServiceAccountServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPomeriumServiceAccountServiceClient(cc grpc.ClientConnInterface) PomeriumServiceAccountServiceClient { - return &pomeriumServiceAccountServiceClient{cc} -} - -func (c *pomeriumServiceAccountServiceClient) AddPomeriumServiceAccount(ctx context.Context, in *AddPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*AddPomeriumServiceAccountResponse, error) { - out := new(AddPomeriumServiceAccountResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumServiceAccountService/AddPomeriumServiceAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumServiceAccountServiceClient) DeletePomeriumServiceAccount(ctx context.Context, in *DeletePomeriumServiceAccountRequest, opts ...grpc.CallOption) (*DeletePomeriumServiceAccountResponse, error) { - out := new(DeletePomeriumServiceAccountResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumServiceAccountService/DeletePomeriumServiceAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumServiceAccountServiceClient) GetPomeriumServiceAccount(ctx context.Context, in *GetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*GetPomeriumServiceAccountResponse, error) { - out := new(GetPomeriumServiceAccountResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumServiceAccountService/GetPomeriumServiceAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumServiceAccountServiceClient) ListPomeriumServiceAccounts(ctx context.Context, in *ListPomeriumServiceAccountsRequest, opts ...grpc.CallOption) (*ListPomeriumServiceAccountsResponse, error) { - out := new(ListPomeriumServiceAccountsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumServiceAccountService/ListPomeriumServiceAccounts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumServiceAccountServiceClient) SetPomeriumServiceAccount(ctx context.Context, in *SetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*SetPomeriumServiceAccountResponse, error) { - out := new(SetPomeriumServiceAccountResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumServiceAccountService/SetPomeriumServiceAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PomeriumServiceAccountServiceServer is the server API for PomeriumServiceAccountService service. -type PomeriumServiceAccountServiceServer interface { - // AddPomeriumServiceAccount creates a new service account - AddPomeriumServiceAccount(context.Context, *AddPomeriumServiceAccountRequest) (*AddPomeriumServiceAccountResponse, error) - // DeletePomeriumServiceAccount removes an existing service account - DeletePomeriumServiceAccount(context.Context, *DeletePomeriumServiceAccountRequest) (*DeletePomeriumServiceAccountResponse, error) - // GetPomeriumServiceAccount retrieves an existing service account - GetPomeriumServiceAccount(context.Context, *GetPomeriumServiceAccountRequest) (*GetPomeriumServiceAccountResponse, error) - // ListPomeriumServiceAccounts lists service accounts based on the parameters - // in ListPomeriumServiceAccountsRequest - ListPomeriumServiceAccounts(context.Context, *ListPomeriumServiceAccountsRequest) (*ListPomeriumServiceAccountsResponse, error) - SetPomeriumServiceAccount(context.Context, *SetPomeriumServiceAccountRequest) (*SetPomeriumServiceAccountResponse, error) -} - -// UnimplementedPomeriumServiceAccountServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPomeriumServiceAccountServiceServer struct { -} - -func (*UnimplementedPomeriumServiceAccountServiceServer) AddPomeriumServiceAccount(context.Context, *AddPomeriumServiceAccountRequest) (*AddPomeriumServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddPomeriumServiceAccount not implemented") -} -func (*UnimplementedPomeriumServiceAccountServiceServer) DeletePomeriumServiceAccount(context.Context, *DeletePomeriumServiceAccountRequest) (*DeletePomeriumServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePomeriumServiceAccount not implemented") -} -func (*UnimplementedPomeriumServiceAccountServiceServer) GetPomeriumServiceAccount(context.Context, *GetPomeriumServiceAccountRequest) (*GetPomeriumServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPomeriumServiceAccount not implemented") -} -func (*UnimplementedPomeriumServiceAccountServiceServer) ListPomeriumServiceAccounts(context.Context, *ListPomeriumServiceAccountsRequest) (*ListPomeriumServiceAccountsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPomeriumServiceAccounts not implemented") -} -func (*UnimplementedPomeriumServiceAccountServiceServer) SetPomeriumServiceAccount(context.Context, *SetPomeriumServiceAccountRequest) (*SetPomeriumServiceAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetPomeriumServiceAccount not implemented") -} - -func RegisterPomeriumServiceAccountServiceServer(s *grpc.Server, srv PomeriumServiceAccountServiceServer) { - s.RegisterService(&_PomeriumServiceAccountService_serviceDesc, srv) -} - -func _PomeriumServiceAccountService_AddPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddPomeriumServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumServiceAccountServiceServer).AddPomeriumServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumServiceAccountService/AddPomeriumServiceAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumServiceAccountServiceServer).AddPomeriumServiceAccount(ctx, req.(*AddPomeriumServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumServiceAccountService_DeletePomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeletePomeriumServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumServiceAccountServiceServer).DeletePomeriumServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumServiceAccountService/DeletePomeriumServiceAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumServiceAccountServiceServer).DeletePomeriumServiceAccount(ctx, req.(*DeletePomeriumServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumServiceAccountService_GetPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPomeriumServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumServiceAccountServiceServer).GetPomeriumServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumServiceAccountService/GetPomeriumServiceAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumServiceAccountServiceServer).GetPomeriumServiceAccount(ctx, req.(*GetPomeriumServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumServiceAccountService_ListPomeriumServiceAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPomeriumServiceAccountsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumServiceAccountServiceServer).ListPomeriumServiceAccounts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumServiceAccountService/ListPomeriumServiceAccounts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumServiceAccountServiceServer).ListPomeriumServiceAccounts(ctx, req.(*ListPomeriumServiceAccountsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumServiceAccountService_SetPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPomeriumServiceAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumServiceAccountServiceServer).SetPomeriumServiceAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumServiceAccountService/SetPomeriumServiceAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumServiceAccountServiceServer).SetPomeriumServiceAccount(ctx, req.(*SetPomeriumServiceAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PomeriumServiceAccountService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.PomeriumServiceAccountService", - HandlerType: (*PomeriumServiceAccountServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddPomeriumServiceAccount", - Handler: _PomeriumServiceAccountService_AddPomeriumServiceAccount_Handler, - }, - { - MethodName: "DeletePomeriumServiceAccount", - Handler: _PomeriumServiceAccountService_DeletePomeriumServiceAccount_Handler, - }, - { - MethodName: "GetPomeriumServiceAccount", - Handler: _PomeriumServiceAccountService_GetPomeriumServiceAccount_Handler, - }, - { - MethodName: "ListPomeriumServiceAccounts", - Handler: _PomeriumServiceAccountService_ListPomeriumServiceAccounts_Handler, - }, - { - MethodName: "SetPomeriumServiceAccount", - Handler: _PomeriumServiceAccountService_SetPomeriumServiceAccount_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "users.proto", -} - -// PomeriumSessionServiceClient is the client API for PomeriumSessionService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PomeriumSessionServiceClient interface { - // DeletePomeriumSession clears an existing user session - DeletePomeriumSession(ctx context.Context, in *DeletePomeriumSessionRequest, opts ...grpc.CallOption) (*DeletePomeriumSessionResponse, error) - // GetPomeriumSession retrieves information about an existing user session - GetPomeriumSession(ctx context.Context, in *GetPomeriumSessionRequest, opts ...grpc.CallOption) (*GetPomeriumSessionResponse, error) - // Impersonate updates an existing session to impersonate another identity - Impersonate(ctx context.Context, in *ImpersonateRequest, opts ...grpc.CallOption) (*ImpersonateResponse, error) - // ListPomeriumSessions lists existing sessions based on the parameters of - // ListPomeriumSessionsRequest - ListPomeriumSessions(ctx context.Context, in *ListPomeriumSessionsRequest, opts ...grpc.CallOption) (*ListPomeriumSessionsResponse, error) -} - -type pomeriumSessionServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewPomeriumSessionServiceClient(cc grpc.ClientConnInterface) PomeriumSessionServiceClient { - return &pomeriumSessionServiceClient{cc} -} - -func (c *pomeriumSessionServiceClient) DeletePomeriumSession(ctx context.Context, in *DeletePomeriumSessionRequest, opts ...grpc.CallOption) (*DeletePomeriumSessionResponse, error) { - out := new(DeletePomeriumSessionResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumSessionService/DeletePomeriumSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumSessionServiceClient) GetPomeriumSession(ctx context.Context, in *GetPomeriumSessionRequest, opts ...grpc.CallOption) (*GetPomeriumSessionResponse, error) { - out := new(GetPomeriumSessionResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumSessionService/GetPomeriumSession", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumSessionServiceClient) Impersonate(ctx context.Context, in *ImpersonateRequest, opts ...grpc.CallOption) (*ImpersonateResponse, error) { - out := new(ImpersonateResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumSessionService/Impersonate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *pomeriumSessionServiceClient) ListPomeriumSessions(ctx context.Context, in *ListPomeriumSessionsRequest, opts ...grpc.CallOption) (*ListPomeriumSessionsResponse, error) { - out := new(ListPomeriumSessionsResponse) - err := c.cc.Invoke(ctx, "/pomerium.dashboard.PomeriumSessionService/ListPomeriumSessions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PomeriumSessionServiceServer is the server API for PomeriumSessionService service. -type PomeriumSessionServiceServer interface { - // DeletePomeriumSession clears an existing user session - DeletePomeriumSession(context.Context, *DeletePomeriumSessionRequest) (*DeletePomeriumSessionResponse, error) - // GetPomeriumSession retrieves information about an existing user session - GetPomeriumSession(context.Context, *GetPomeriumSessionRequest) (*GetPomeriumSessionResponse, error) - // Impersonate updates an existing session to impersonate another identity - Impersonate(context.Context, *ImpersonateRequest) (*ImpersonateResponse, error) - // ListPomeriumSessions lists existing sessions based on the parameters of - // ListPomeriumSessionsRequest - ListPomeriumSessions(context.Context, *ListPomeriumSessionsRequest) (*ListPomeriumSessionsResponse, error) -} - -// UnimplementedPomeriumSessionServiceServer can be embedded to have forward compatible implementations. -type UnimplementedPomeriumSessionServiceServer struct { -} - -func (*UnimplementedPomeriumSessionServiceServer) DeletePomeriumSession(context.Context, *DeletePomeriumSessionRequest) (*DeletePomeriumSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePomeriumSession not implemented") -} -func (*UnimplementedPomeriumSessionServiceServer) GetPomeriumSession(context.Context, *GetPomeriumSessionRequest) (*GetPomeriumSessionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPomeriumSession not implemented") -} -func (*UnimplementedPomeriumSessionServiceServer) Impersonate(context.Context, *ImpersonateRequest) (*ImpersonateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Impersonate not implemented") -} -func (*UnimplementedPomeriumSessionServiceServer) ListPomeriumSessions(context.Context, *ListPomeriumSessionsRequest) (*ListPomeriumSessionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPomeriumSessions not implemented") -} - -func RegisterPomeriumSessionServiceServer(s *grpc.Server, srv PomeriumSessionServiceServer) { - s.RegisterService(&_PomeriumSessionService_serviceDesc, srv) -} - -func _PomeriumSessionService_DeletePomeriumSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeletePomeriumSessionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumSessionServiceServer).DeletePomeriumSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumSessionService/DeletePomeriumSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumSessionServiceServer).DeletePomeriumSession(ctx, req.(*DeletePomeriumSessionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumSessionService_GetPomeriumSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPomeriumSessionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumSessionServiceServer).GetPomeriumSession(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumSessionService/GetPomeriumSession", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumSessionServiceServer).GetPomeriumSession(ctx, req.(*GetPomeriumSessionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumSessionService_Impersonate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ImpersonateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumSessionServiceServer).Impersonate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumSessionService/Impersonate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumSessionServiceServer).Impersonate(ctx, req.(*ImpersonateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PomeriumSessionService_ListPomeriumSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPomeriumSessionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PomeriumSessionServiceServer).ListPomeriumSessions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pomerium.dashboard.PomeriumSessionService/ListPomeriumSessions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PomeriumSessionServiceServer).ListPomeriumSessions(ctx, req.(*ListPomeriumSessionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _PomeriumSessionService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "pomerium.dashboard.PomeriumSessionService", - HandlerType: (*PomeriumSessionServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "DeletePomeriumSession", - Handler: _PomeriumSessionService_DeletePomeriumSession_Handler, - }, - { - MethodName: "GetPomeriumSession", - Handler: _PomeriumSessionService_GetPomeriumSession_Handler, - }, - { - MethodName: "Impersonate", - Handler: _PomeriumSessionService_Impersonate_Handler, - }, - { - MethodName: "ListPomeriumSessions", - Handler: _PomeriumSessionService_ListPomeriumSessions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "users.proto", -} diff --git a/pb/users_grpc.pb.go b/pb/users_grpc.pb.go new file mode 100644 index 0000000..45605d7 --- /dev/null +++ b/pb/users_grpc.pb.go @@ -0,0 +1,707 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.20.3 +// source: users.proto + +package pb + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + UserService_GetUserInfo_FullMethodName = "/pomerium.dashboard.UserService/GetUserInfo" + UserService_QueryGroups_FullMethodName = "/pomerium.dashboard.UserService/QueryGroups" + UserService_QueryUsers_FullMethodName = "/pomerium.dashboard.UserService/QueryUsers" +) + +// UserServiceClient is the client API for UserService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// UserService supports querying directory data from the databroker +type UserServiceClient interface { + // GetUserInfo retrieves identity information and permission mappings for a + // user + GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) + // QueryGroups retrieves groups from the databroker based on + // QueryGroupsRequest parameters + QueryGroups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) + // QueryUsers retrieves users from the databroker based on QueryUsersRequest + // parameters + QueryUsers(ctx context.Context, in *QueryUsersRequest, opts ...grpc.CallOption) (*QueryUsersResponse, error) +} + +type userServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { + return &userServiceClient{cc} +} + +func (c *userServiceClient) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUserInfoResponse) + err := c.cc.Invoke(ctx, UserService_GetUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) QueryGroups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryGroupsResponse) + err := c.cc.Invoke(ctx, UserService_QueryGroups_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userServiceClient) QueryUsers(ctx context.Context, in *QueryUsersRequest, opts ...grpc.CallOption) (*QueryUsersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(QueryUsersResponse) + err := c.cc.Invoke(ctx, UserService_QueryUsers_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserServiceServer is the server API for UserService service. +// All implementations should embed UnimplementedUserServiceServer +// for forward compatibility. +// +// UserService supports querying directory data from the databroker +type UserServiceServer interface { + // GetUserInfo retrieves identity information and permission mappings for a + // user + GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) + // QueryGroups retrieves groups from the databroker based on + // QueryGroupsRequest parameters + QueryGroups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) + // QueryUsers retrieves users from the databroker based on QueryUsersRequest + // parameters + QueryUsers(context.Context, *QueryUsersRequest) (*QueryUsersResponse, error) +} + +// UnimplementedUserServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedUserServiceServer struct{} + +func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") +} +func (UnimplementedUserServiceServer) QueryGroups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryGroups not implemented") +} +func (UnimplementedUserServiceServer) QueryUsers(context.Context, *QueryUsersRequest) (*QueryUsersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryUsers not implemented") +} +func (UnimplementedUserServiceServer) testEmbeddedByValue() {} + +// UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to UserServiceServer will +// result in compilation errors. +type UnsafeUserServiceServer interface { + mustEmbedUnimplementedUserServiceServer() +} + +func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) { + // If the following call pancis, it indicates UnimplementedUserServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&UserService_ServiceDesc, srv) +} + +func _UserService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).GetUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: UserService_GetUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).GetUserInfo(ctx, req.(*GetUserInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_QueryGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).QueryGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: UserService_QueryGroups_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).QueryGroups(ctx, req.(*QueryGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserService_QueryUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryUsersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserServiceServer).QueryUsers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: UserService_QueryUsers_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserServiceServer).QueryUsers(ctx, req.(*QueryUsersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var UserService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.UserService", + HandlerType: (*UserServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetUserInfo", + Handler: _UserService_GetUserInfo_Handler, + }, + { + MethodName: "QueryGroups", + Handler: _UserService_QueryGroups_Handler, + }, + { + MethodName: "QueryUsers", + Handler: _UserService_QueryUsers_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "users.proto", +} + +const ( + PomeriumServiceAccountService_AddPomeriumServiceAccount_FullMethodName = "/pomerium.dashboard.PomeriumServiceAccountService/AddPomeriumServiceAccount" + PomeriumServiceAccountService_DeletePomeriumServiceAccount_FullMethodName = "/pomerium.dashboard.PomeriumServiceAccountService/DeletePomeriumServiceAccount" + PomeriumServiceAccountService_GetPomeriumServiceAccount_FullMethodName = "/pomerium.dashboard.PomeriumServiceAccountService/GetPomeriumServiceAccount" + PomeriumServiceAccountService_ListPomeriumServiceAccounts_FullMethodName = "/pomerium.dashboard.PomeriumServiceAccountService/ListPomeriumServiceAccounts" + PomeriumServiceAccountService_SetPomeriumServiceAccount_FullMethodName = "/pomerium.dashboard.PomeriumServiceAccountService/SetPomeriumServiceAccount" +) + +// PomeriumServiceAccountServiceClient is the client API for PomeriumServiceAccountService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// PomeriumServiceAccountService manages service accounts for use with the +// pomerium console API +type PomeriumServiceAccountServiceClient interface { + // AddPomeriumServiceAccount creates a new service account + AddPomeriumServiceAccount(ctx context.Context, in *AddPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*AddPomeriumServiceAccountResponse, error) + // DeletePomeriumServiceAccount removes an existing service account + DeletePomeriumServiceAccount(ctx context.Context, in *DeletePomeriumServiceAccountRequest, opts ...grpc.CallOption) (*DeletePomeriumServiceAccountResponse, error) + // GetPomeriumServiceAccount retrieves an existing service account + GetPomeriumServiceAccount(ctx context.Context, in *GetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*GetPomeriumServiceAccountResponse, error) + // ListPomeriumServiceAccounts lists service accounts based on the parameters + // in ListPomeriumServiceAccountsRequest + ListPomeriumServiceAccounts(ctx context.Context, in *ListPomeriumServiceAccountsRequest, opts ...grpc.CallOption) (*ListPomeriumServiceAccountsResponse, error) + SetPomeriumServiceAccount(ctx context.Context, in *SetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*SetPomeriumServiceAccountResponse, error) +} + +type pomeriumServiceAccountServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPomeriumServiceAccountServiceClient(cc grpc.ClientConnInterface) PomeriumServiceAccountServiceClient { + return &pomeriumServiceAccountServiceClient{cc} +} + +func (c *pomeriumServiceAccountServiceClient) AddPomeriumServiceAccount(ctx context.Context, in *AddPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*AddPomeriumServiceAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddPomeriumServiceAccountResponse) + err := c.cc.Invoke(ctx, PomeriumServiceAccountService_AddPomeriumServiceAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumServiceAccountServiceClient) DeletePomeriumServiceAccount(ctx context.Context, in *DeletePomeriumServiceAccountRequest, opts ...grpc.CallOption) (*DeletePomeriumServiceAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeletePomeriumServiceAccountResponse) + err := c.cc.Invoke(ctx, PomeriumServiceAccountService_DeletePomeriumServiceAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumServiceAccountServiceClient) GetPomeriumServiceAccount(ctx context.Context, in *GetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*GetPomeriumServiceAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPomeriumServiceAccountResponse) + err := c.cc.Invoke(ctx, PomeriumServiceAccountService_GetPomeriumServiceAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumServiceAccountServiceClient) ListPomeriumServiceAccounts(ctx context.Context, in *ListPomeriumServiceAccountsRequest, opts ...grpc.CallOption) (*ListPomeriumServiceAccountsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListPomeriumServiceAccountsResponse) + err := c.cc.Invoke(ctx, PomeriumServiceAccountService_ListPomeriumServiceAccounts_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumServiceAccountServiceClient) SetPomeriumServiceAccount(ctx context.Context, in *SetPomeriumServiceAccountRequest, opts ...grpc.CallOption) (*SetPomeriumServiceAccountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetPomeriumServiceAccountResponse) + err := c.cc.Invoke(ctx, PomeriumServiceAccountService_SetPomeriumServiceAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PomeriumServiceAccountServiceServer is the server API for PomeriumServiceAccountService service. +// All implementations should embed UnimplementedPomeriumServiceAccountServiceServer +// for forward compatibility. +// +// PomeriumServiceAccountService manages service accounts for use with the +// pomerium console API +type PomeriumServiceAccountServiceServer interface { + // AddPomeriumServiceAccount creates a new service account + AddPomeriumServiceAccount(context.Context, *AddPomeriumServiceAccountRequest) (*AddPomeriumServiceAccountResponse, error) + // DeletePomeriumServiceAccount removes an existing service account + DeletePomeriumServiceAccount(context.Context, *DeletePomeriumServiceAccountRequest) (*DeletePomeriumServiceAccountResponse, error) + // GetPomeriumServiceAccount retrieves an existing service account + GetPomeriumServiceAccount(context.Context, *GetPomeriumServiceAccountRequest) (*GetPomeriumServiceAccountResponse, error) + // ListPomeriumServiceAccounts lists service accounts based on the parameters + // in ListPomeriumServiceAccountsRequest + ListPomeriumServiceAccounts(context.Context, *ListPomeriumServiceAccountsRequest) (*ListPomeriumServiceAccountsResponse, error) + SetPomeriumServiceAccount(context.Context, *SetPomeriumServiceAccountRequest) (*SetPomeriumServiceAccountResponse, error) +} + +// UnimplementedPomeriumServiceAccountServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPomeriumServiceAccountServiceServer struct{} + +func (UnimplementedPomeriumServiceAccountServiceServer) AddPomeriumServiceAccount(context.Context, *AddPomeriumServiceAccountRequest) (*AddPomeriumServiceAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddPomeriumServiceAccount not implemented") +} +func (UnimplementedPomeriumServiceAccountServiceServer) DeletePomeriumServiceAccount(context.Context, *DeletePomeriumServiceAccountRequest) (*DeletePomeriumServiceAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePomeriumServiceAccount not implemented") +} +func (UnimplementedPomeriumServiceAccountServiceServer) GetPomeriumServiceAccount(context.Context, *GetPomeriumServiceAccountRequest) (*GetPomeriumServiceAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPomeriumServiceAccount not implemented") +} +func (UnimplementedPomeriumServiceAccountServiceServer) ListPomeriumServiceAccounts(context.Context, *ListPomeriumServiceAccountsRequest) (*ListPomeriumServiceAccountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPomeriumServiceAccounts not implemented") +} +func (UnimplementedPomeriumServiceAccountServiceServer) SetPomeriumServiceAccount(context.Context, *SetPomeriumServiceAccountRequest) (*SetPomeriumServiceAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetPomeriumServiceAccount not implemented") +} +func (UnimplementedPomeriumServiceAccountServiceServer) testEmbeddedByValue() {} + +// UnsafePomeriumServiceAccountServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PomeriumServiceAccountServiceServer will +// result in compilation errors. +type UnsafePomeriumServiceAccountServiceServer interface { + mustEmbedUnimplementedPomeriumServiceAccountServiceServer() +} + +func RegisterPomeriumServiceAccountServiceServer(s grpc.ServiceRegistrar, srv PomeriumServiceAccountServiceServer) { + // If the following call pancis, it indicates UnimplementedPomeriumServiceAccountServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PomeriumServiceAccountService_ServiceDesc, srv) +} + +func _PomeriumServiceAccountService_AddPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddPomeriumServiceAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumServiceAccountServiceServer).AddPomeriumServiceAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumServiceAccountService_AddPomeriumServiceAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumServiceAccountServiceServer).AddPomeriumServiceAccount(ctx, req.(*AddPomeriumServiceAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumServiceAccountService_DeletePomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletePomeriumServiceAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumServiceAccountServiceServer).DeletePomeriumServiceAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumServiceAccountService_DeletePomeriumServiceAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumServiceAccountServiceServer).DeletePomeriumServiceAccount(ctx, req.(*DeletePomeriumServiceAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumServiceAccountService_GetPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPomeriumServiceAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumServiceAccountServiceServer).GetPomeriumServiceAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumServiceAccountService_GetPomeriumServiceAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumServiceAccountServiceServer).GetPomeriumServiceAccount(ctx, req.(*GetPomeriumServiceAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumServiceAccountService_ListPomeriumServiceAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPomeriumServiceAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumServiceAccountServiceServer).ListPomeriumServiceAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumServiceAccountService_ListPomeriumServiceAccounts_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumServiceAccountServiceServer).ListPomeriumServiceAccounts(ctx, req.(*ListPomeriumServiceAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumServiceAccountService_SetPomeriumServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPomeriumServiceAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumServiceAccountServiceServer).SetPomeriumServiceAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumServiceAccountService_SetPomeriumServiceAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumServiceAccountServiceServer).SetPomeriumServiceAccount(ctx, req.(*SetPomeriumServiceAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PomeriumServiceAccountService_ServiceDesc is the grpc.ServiceDesc for PomeriumServiceAccountService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PomeriumServiceAccountService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.PomeriumServiceAccountService", + HandlerType: (*PomeriumServiceAccountServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AddPomeriumServiceAccount", + Handler: _PomeriumServiceAccountService_AddPomeriumServiceAccount_Handler, + }, + { + MethodName: "DeletePomeriumServiceAccount", + Handler: _PomeriumServiceAccountService_DeletePomeriumServiceAccount_Handler, + }, + { + MethodName: "GetPomeriumServiceAccount", + Handler: _PomeriumServiceAccountService_GetPomeriumServiceAccount_Handler, + }, + { + MethodName: "ListPomeriumServiceAccounts", + Handler: _PomeriumServiceAccountService_ListPomeriumServiceAccounts_Handler, + }, + { + MethodName: "SetPomeriumServiceAccount", + Handler: _PomeriumServiceAccountService_SetPomeriumServiceAccount_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "users.proto", +} + +const ( + PomeriumSessionService_DeletePomeriumSession_FullMethodName = "/pomerium.dashboard.PomeriumSessionService/DeletePomeriumSession" + PomeriumSessionService_GetPomeriumSession_FullMethodName = "/pomerium.dashboard.PomeriumSessionService/GetPomeriumSession" + PomeriumSessionService_Impersonate_FullMethodName = "/pomerium.dashboard.PomeriumSessionService/Impersonate" + PomeriumSessionService_ListPomeriumSessions_FullMethodName = "/pomerium.dashboard.PomeriumSessionService/ListPomeriumSessions" +) + +// PomeriumSessionServiceClient is the client API for PomeriumSessionService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// PomeriumSessionService manages user sessions inside the databroker +type PomeriumSessionServiceClient interface { + // DeletePomeriumSession clears an existing user session + DeletePomeriumSession(ctx context.Context, in *DeletePomeriumSessionRequest, opts ...grpc.CallOption) (*DeletePomeriumSessionResponse, error) + // GetPomeriumSession retrieves information about an existing user session + GetPomeriumSession(ctx context.Context, in *GetPomeriumSessionRequest, opts ...grpc.CallOption) (*GetPomeriumSessionResponse, error) + // Impersonate updates an existing session to impersonate another identity + Impersonate(ctx context.Context, in *ImpersonateRequest, opts ...grpc.CallOption) (*ImpersonateResponse, error) + // ListPomeriumSessions lists existing sessions based on the parameters of + // ListPomeriumSessionsRequest + ListPomeriumSessions(ctx context.Context, in *ListPomeriumSessionsRequest, opts ...grpc.CallOption) (*ListPomeriumSessionsResponse, error) +} + +type pomeriumSessionServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPomeriumSessionServiceClient(cc grpc.ClientConnInterface) PomeriumSessionServiceClient { + return &pomeriumSessionServiceClient{cc} +} + +func (c *pomeriumSessionServiceClient) DeletePomeriumSession(ctx context.Context, in *DeletePomeriumSessionRequest, opts ...grpc.CallOption) (*DeletePomeriumSessionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeletePomeriumSessionResponse) + err := c.cc.Invoke(ctx, PomeriumSessionService_DeletePomeriumSession_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumSessionServiceClient) GetPomeriumSession(ctx context.Context, in *GetPomeriumSessionRequest, opts ...grpc.CallOption) (*GetPomeriumSessionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetPomeriumSessionResponse) + err := c.cc.Invoke(ctx, PomeriumSessionService_GetPomeriumSession_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumSessionServiceClient) Impersonate(ctx context.Context, in *ImpersonateRequest, opts ...grpc.CallOption) (*ImpersonateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ImpersonateResponse) + err := c.cc.Invoke(ctx, PomeriumSessionService_Impersonate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *pomeriumSessionServiceClient) ListPomeriumSessions(ctx context.Context, in *ListPomeriumSessionsRequest, opts ...grpc.CallOption) (*ListPomeriumSessionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListPomeriumSessionsResponse) + err := c.cc.Invoke(ctx, PomeriumSessionService_ListPomeriumSessions_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PomeriumSessionServiceServer is the server API for PomeriumSessionService service. +// All implementations should embed UnimplementedPomeriumSessionServiceServer +// for forward compatibility. +// +// PomeriumSessionService manages user sessions inside the databroker +type PomeriumSessionServiceServer interface { + // DeletePomeriumSession clears an existing user session + DeletePomeriumSession(context.Context, *DeletePomeriumSessionRequest) (*DeletePomeriumSessionResponse, error) + // GetPomeriumSession retrieves information about an existing user session + GetPomeriumSession(context.Context, *GetPomeriumSessionRequest) (*GetPomeriumSessionResponse, error) + // Impersonate updates an existing session to impersonate another identity + Impersonate(context.Context, *ImpersonateRequest) (*ImpersonateResponse, error) + // ListPomeriumSessions lists existing sessions based on the parameters of + // ListPomeriumSessionsRequest + ListPomeriumSessions(context.Context, *ListPomeriumSessionsRequest) (*ListPomeriumSessionsResponse, error) +} + +// UnimplementedPomeriumSessionServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPomeriumSessionServiceServer struct{} + +func (UnimplementedPomeriumSessionServiceServer) DeletePomeriumSession(context.Context, *DeletePomeriumSessionRequest) (*DeletePomeriumSessionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeletePomeriumSession not implemented") +} +func (UnimplementedPomeriumSessionServiceServer) GetPomeriumSession(context.Context, *GetPomeriumSessionRequest) (*GetPomeriumSessionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPomeriumSession not implemented") +} +func (UnimplementedPomeriumSessionServiceServer) Impersonate(context.Context, *ImpersonateRequest) (*ImpersonateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Impersonate not implemented") +} +func (UnimplementedPomeriumSessionServiceServer) ListPomeriumSessions(context.Context, *ListPomeriumSessionsRequest) (*ListPomeriumSessionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListPomeriumSessions not implemented") +} +func (UnimplementedPomeriumSessionServiceServer) testEmbeddedByValue() {} + +// UnsafePomeriumSessionServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PomeriumSessionServiceServer will +// result in compilation errors. +type UnsafePomeriumSessionServiceServer interface { + mustEmbedUnimplementedPomeriumSessionServiceServer() +} + +func RegisterPomeriumSessionServiceServer(s grpc.ServiceRegistrar, srv PomeriumSessionServiceServer) { + // If the following call pancis, it indicates UnimplementedPomeriumSessionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PomeriumSessionService_ServiceDesc, srv) +} + +func _PomeriumSessionService_DeletePomeriumSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletePomeriumSessionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumSessionServiceServer).DeletePomeriumSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumSessionService_DeletePomeriumSession_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumSessionServiceServer).DeletePomeriumSession(ctx, req.(*DeletePomeriumSessionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumSessionService_GetPomeriumSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetPomeriumSessionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumSessionServiceServer).GetPomeriumSession(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumSessionService_GetPomeriumSession_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumSessionServiceServer).GetPomeriumSession(ctx, req.(*GetPomeriumSessionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumSessionService_Impersonate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ImpersonateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumSessionServiceServer).Impersonate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumSessionService_Impersonate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumSessionServiceServer).Impersonate(ctx, req.(*ImpersonateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PomeriumSessionService_ListPomeriumSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListPomeriumSessionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PomeriumSessionServiceServer).ListPomeriumSessions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PomeriumSessionService_ListPomeriumSessions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PomeriumSessionServiceServer).ListPomeriumSessions(ctx, req.(*ListPomeriumSessionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PomeriumSessionService_ServiceDesc is the grpc.ServiceDesc for PomeriumSessionService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PomeriumSessionService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "pomerium.dashboard.PomeriumSessionService", + HandlerType: (*PomeriumSessionServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "DeletePomeriumSession", + Handler: _PomeriumSessionService_DeletePomeriumSession_Handler, + }, + { + MethodName: "GetPomeriumSession", + Handler: _PomeriumSessionService_GetPomeriumSession_Handler, + }, + { + MethodName: "Impersonate", + Handler: _PomeriumSessionService_Impersonate_Handler, + }, + { + MethodName: "ListPomeriumSessions", + Handler: _PomeriumSessionService_ListPomeriumSessions_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "users.proto", +}