refact: to use go-dbw CreateItems, DeleteItems (#4974)

* refact: to use go-dbw CreateItems, DeleteItems

Latest version of go-dbw updated the signature of
CreateItems(...) and DeleteItems(...) on a happy
note this latest version of go-dbw actually does
batch inserts and updates for this functions.

* all: regenerate protos with new protoc-gen-go version
This commit is contained in:
Jim authored and GitHub committed 2024-08-01 11:18:53 -04:00
1 parent b24f6dcee8
commit 28b465e4b8
167 files changed
+2254 -2248

No files matched your search

+18 -20
View File
@@ -7,7 +7,7 @@ replace github.com/hashicorp/boundary/api => ./api
replace github.com/hashicorp/boundary/sdk => ./sdk
require (
github.com/fatih/color v1.16.0
github.com/fatih/color v1.17.0
github.com/fatih/structs v1.1.0
github.com/favadi/protoc-go-inject-tag v1.4.0
github.com/godbus/dbus/v5 v5.1.0 // indirect
@@ -46,7 +46,6 @@ require (
github.com/hashicorp/vault/api v1.12.0
github.com/iancoleman/strcase v0.3.0
github.com/jackc/pgconn v1.14.3
github.com/jackc/pgx/v4 v4.18.3 // indirect
github.com/jefferai/keyring v1.1.7-0.20220316160357-58a74bb55891
github.com/kr/pretty v0.3.1
github.com/kr/text v0.2.0
@@ -67,22 +66,22 @@ require (
github.com/stretchr/testify v1.9.0
github.com/zalando/go-keyring v0.2.3
go.uber.org/atomic v1.11.0
golang.org/x/crypto v0.21.0
golang.org/x/sync v0.6.0
golang.org/x/sys v0.20.0
golang.org/x/term v0.18.0
golang.org/x/tools v0.17.0
golang.org/x/crypto v0.25.0
golang.org/x/sync v0.7.0
golang.org/x/sys v0.22.0
golang.org/x/term v0.22.0
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d
google.golang.org/genproto v0.0.0-20240205150955-31a09d347014
google.golang.org/grpc v1.61.1
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0
google.golang.org/protobuf v1.33.0
gorm.io/driver/postgres v1.5.7
gorm.io/gorm v1.25.7 // indirect
google.golang.org/protobuf v1.34.2
gorm.io/driver/postgres v1.5.9
gorm.io/gorm v1.25.11 // indirect
mvdan.cc/gofumpt v0.5.0
nhooyr.io/websocket v1.8.10
)
require github.com/hashicorp/go-dbw v0.1.3-0.20240312210008-7ed943176e5b
require github.com/hashicorp/go-dbw v0.1.4
require (
github.com/DATA-DOG/go-sqlmock v1.5.2
@@ -96,7 +95,7 @@ require (
github.com/hashicorp/go-rate v0.0.0-20231204194614-cc8d401f70ab
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/nodeenrollment v0.2.13
github.com/jackc/pgx/v5 v5.5.5
github.com/jackc/pgx/v5 v5.6.0
github.com/jimlambrt/gldap v0.1.10
github.com/kelseyhightower/envconfig v1.4.0
github.com/miekg/dns v1.1.58
@@ -104,13 +103,13 @@ require (
github.com/mitchellh/go-homedir v1.1.0
github.com/sevlyar/go-daemon v0.1.6
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3
golang.org/x/net v0.23.0
golang.org/x/net v0.25.0
google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014
)
require (
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/mattn/go-sqlite3 v2.0.1+incompatible // indirect
github.com/mattn/go-sqlite3 v1.14.22 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
modernc.org/libc v1.41.0 // indirect
modernc.org/mathutil v1.6.0 // indirect
@@ -137,7 +136,7 @@ require (
go.opentelemetry.io/otel/metric v1.23.1 // indirect
go.opentelemetry.io/otel/sdk v1.23.1 // indirect
go.opentelemetry.io/otel/trace v1.23.1 // indirect
gorm.io/driver/sqlite v1.5.5 // indirect
gorm.io/driver/sqlite v1.5.6 // indirect
)
require (
@@ -189,8 +188,7 @@ require (
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
github.com/jackc/pgtype v1.14.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jefferai/go-libsecret v0.0.0-20210525195240-b53481abef97 // indirect
github.com/jefferai/isbadcipher v0.0.0-20190226160619-51d2077c035f // indirect
github.com/jinzhu/gorm v1.9.16 // indirect
@@ -222,10 +220,10 @@ require (
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/xo/dburl v0.21.1 // indirect
golang.org/x/mod v0.15.0 // indirect
github.com/xo/dburl v0.23.1 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
golang.org/x/text v0.14.0
golang.org/x/text v0.16.0
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect
+36 -127
View File
@@ -63,20 +63,15 @@ github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
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/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo=
github.com/coreos/go-oidc/v3 v3.9.0 h1:0J/ogVOd4y8P0f0xUh8l9t07xRP/d8tccvjHl2dcsSo=
github.com/coreos/go-oidc/v3 v3.9.0/go.mod h1:rTKz2PYwftcrtoCzV5g5kvfJoWcm0Mk8AF8y1iAQro4=
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM=
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/creack/pty v1.1.21 h1:1/QdRyBaHHJP61QkWMXlOIBfsgdDeeKfK8SYVUWJKf0=
github.com/creack/pty v1.1.21/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
@@ -112,8 +107,8 @@ github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 h1:Yzb9+7DP
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod h1:a2zkGnVExMxdzMo3M0Hi/3sEU+cWnZpSni0O6/Yb/P0=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
github.com/favadi/protoc-go-inject-tag v1.4.0 h1:K3KXxbgRw5WT4f43LbglARGz/8jVsDOS7uMjG4oNvXY=
@@ -151,8 +146,6 @@ github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncV
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-migrate/migrate/v4 v4.17.0 h1:rd40H3QXU0AA4IoLllFcEAEo9dYKRHYND2gB4p7xcaU=
@@ -178,7 +171,6 @@ 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/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ=
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
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.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -209,8 +201,8 @@ github.com/hashicorp/go-bexpr v0.1.13 h1:HNwp7vZrMpRq8VZXj8VF90LbZpRjQQpim1oJF0D
github.com/hashicorp/go-bexpr v0.1.13/go.mod h1:gN7hRKB3s7yT+YvTdnhZVLTENejvhlkZ8UE4YVBS+Q8=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-dbw v0.1.3-0.20240312210008-7ed943176e5b h1:DKThhRxpCyHtmzCwdZUPTSM+DRSOHCUv7eBs+AqIJ7c=
github.com/hashicorp/go-dbw v0.1.3-0.20240312210008-7ed943176e5b/go.mod h1:dEiD86O4U0CNjS6p4xgRLjXCyMfj1DUQtpsnG/ORU38=
github.com/hashicorp/go-dbw v0.1.4 h1:FipsEg7UbWiB8hBQylTYWJobG6jVr0LNoRdo9IClGs4=
github.com/hashicorp/go-dbw v0.1.4/go.mod h1:/YHbfK7mgG9k09aB74Imw3fEOwno0eTtlFTTYGZ7SFk=
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-kms-wrapping/extras/kms/v2 v2.0.0-20231219183231-6bac757bb482 h1:1DqTnLaNk658AEenlF4PNGYd9b1hXE/+0jSOBIGOAms=
@@ -290,55 +282,23 @@ github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=
github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA=
github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE=
github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s=
github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o=
github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY=
github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=
github.com/jackc/pgconn v1.14.3 h1:bVoTr12EGANZz66nZPkMInAV/KHD2TxH9npjXXgiB3w=
github.com/jackc/pgconn v1.14.3/go.mod h1:RZbme4uasqzybK2RK5c65VsHxoyaml09lx3tXOcO/VM=
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=
github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c=
github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc=
github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg=
github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=
github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=
github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgproto3/v2 v2.3.3 h1:1HLSx5H+tXR9pW3in3zaztoEwQYRC9SQaYUHjTSUOag=
github.com/jackc/pgproto3/v2 v2.3.3/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E=
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA=
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg=
github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc=
github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw=
github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM=
github.com/jackc/pgtype v1.14.2 h1:QBdZQTKpPdBlw2AdKwHEyqUcm/lrl2cwWAHjCMyln/o=
github.com/jackc/pgtype v1.14.2/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4=
github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y=
github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM=
github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc=
github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs=
github.com/jackc/pgx/v4 v4.18.3 h1:dE2/TrEsGX3RBprb3qryqSV9Y60iZN1C6i8IrmW9/BA=
github.com/jackc/pgx/v4 v4.18.3/go.mod h1:Ey4Oru5tH5sB6tV7hDmfWFahwF15Eb7DNXlRKx2CkVw=
github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw=
github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A=
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgx/v5 v5.6.0 h1:SWJzexBzPL5jb0GEsrPMLIsi/3jOo7RHlzTjcAeDrPY=
github.com/jackc/pgx/v5 v5.6.0/go.mod h1:DNZ/vlrUnhWCoFGxHAG8U2ljioxukquj7utPDgtQdTw=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jefferai/go-libsecret v0.0.0-20210525195240-b53481abef97 h1:/jVRo4KmyL3FgEYAqFe+S8nxo6xRkFLm+CvIV0qG7PU=
@@ -370,7 +330,6 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kisielk/sqlstruct v0.0.0-20201105191214-5f3e10d3ab46/go.mod h1:yyMNCyc/Ib3bDTKd379tNMpB/7/H5TjM2Y9QJ5THLbE=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
@@ -383,24 +342,18 @@ github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.1.1/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
@@ -408,8 +361,8 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/
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/mattn/go-sqlite3 v1.14.0/go.mod h1:JIl7NbARA7phWnGvh0LKTyg7S9BA+6gx71ShQilpsus=
github.com/mattn/go-sqlite3 v2.0.1+incompatible h1:xQ15muvnzGBHpIpdrNi1DA5x0+TcBZzsIDwmw9uTHzw=
github.com/mattn/go-sqlite3 v2.0.1+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b h1:j7+1HpAFS1zy5+Q4qx1fWh90gTKwiN4QCGoY9TWyyO4=
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
github.com/miekg/dns v1.1.58 h1:ca2Hdkz+cDg/7eNF6V56jjzuZ4aCAE+DbVkILdQWG/4=
@@ -489,31 +442,24 @@ github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3c
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/rogpeppe/fastuuid v1.1.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk=
github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/sethvargo/go-diceware v0.3.0 h1:UVVEfmN/uF50JfWAN7nbY6CiAlp5xeSx+5U0lWKkMCQ=
github.com/sethvargo/go-diceware v0.3.0/go.mod h1:lH5Q/oSPMivseNdhMERAC7Ti5oOPqsaVddU1BcN1CY0=
github.com/sevlyar/go-daemon v0.1.6 h1:EUh1MDjEM4BI109Jign0EaknA2izkOyi0LV3ro3QQGs=
github.com/sevlyar/go-daemon v0.1.6/go.mod h1:6dJpPatBT9eUwM5VCw9Bt6CdX9Tk6UWvhW3MebLDRKE=
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
@@ -525,7 +471,6 @@ github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
@@ -557,14 +502,13 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo
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/xo/dburl v0.21.1 h1:n5mfH1fh51RQbvuaKKykGslodt8pZqyZJMNohVo2zK0=
github.com/xo/dburl v0.21.1/go.mod h1:B7/G9FGungw6ighV8xJNwWYQPMfn3gsi2sn5SE8Bzco=
github.com/xo/dburl v0.23.1 h1:PX1RgQaaJV1S5iADcM1TT39OLrg5daeV6Hp7RYwVoYw=
github.com/xo/dburl v0.23.1/go.mod h1:B7/G9FGungw6ighV8xJNwWYQPMfn3gsi2sn5SE8Bzco=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/zalando/go-keyring v0.2.3 h1:v9CUu9phlABObO4LPWycf+zwMG7nlbb3t/B5wa97yms=
github.com/zalando/go-keyring v0.2.3/go.mod h1:HL4k+OXQfJUWaMnqyuSOc0drfGPX2b51Du6K+MRgZMk=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 h1:doUP+ExOpH3spVTLS0FcWGLnQrPct/hD/bCPbDRUEAU=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0/go.mod h1:rdENBZMT2OE6Ne/KLwpiXudnAsbdrdBaqBvTN8M8BgA=
go.opentelemetry.io/otel v1.23.1 h1:Za4UzOqJYS+MUczKI320AtqZHZb7EqxO00jAHE0jmQY=
@@ -581,10 +525,6 @@ go.opentelemetry.io/otel/trace v1.23.1 h1:4LrmmEd8AU2rFvU1zegmvqW7+kWarxtNOPyeL6
go.opentelemetry.io/otel/trace v1.23.1/go.mod h1:4IpnpJFwr1mo/6HL8XIPJaE9y0+u1KcVmuW7dwFSVrI=
go.opentelemetry.io/proto/otlp v1.1.0 h1:2Di21piLrCqJ3U3eXGCTPHE9R8Nh+0uglSnOyxikMeI=
go.opentelemetry.io/proto/otlp v1.1.0/go.mod h1:GpBHCBWiqvVLDqmHZsoMM3C5ySeKTC7ej/RNTae6MdY=
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
@@ -592,36 +532,23 @@ go.uber.org/goleak v1.0.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191205180655-e7c4368fe9dd/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 h1:/RIbNt/Zr7rVhIkQhooTxCxFcdWLGIKnZA4IXNFSrvo=
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08=
@@ -630,7 +557,6 @@ golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvx
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
@@ -638,8 +564,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20211102181907-3a5865c02020/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8=
golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -648,7 +574,6 @@ golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73r
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
@@ -658,8 +583,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
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.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ=
golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA=
@@ -670,18 +595,14 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -704,9 +625,8 @@ golang.org/x/sys v0.7.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.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
golang.org/x/sys v0.22.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-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
@@ -715,46 +635,37 @@ golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk=
golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
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.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210101214203-2dba1e4ea05c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -783,8 +694,8 @@ google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -793,7 +704,6 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=
gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
@@ -809,17 +719,16 @@ gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gorm.io/driver/postgres v1.5.7 h1:8ptbNJTDbEmhdr62uReG5BGkdQyeasu/FZHxI0IMGnM=
gorm.io/driver/postgres v1.5.7/go.mod h1:3e019WlBaYI5o5LIdNV+LyxCMNtLOQETBXL2h4chKpA=
gorm.io/driver/sqlite v1.5.5 h1:7MDMtUZhV065SilG62E0MquljeArQZNfJnjd9i9gx3E=
gorm.io/driver/sqlite v1.5.5/go.mod h1:6NgQ7sQWAIFsPrJJl1lSNSu2TABh0ZZ/zm5fosATavE=
gorm.io/gorm v1.25.7 h1:VsD6acwRjz2zFxGO50gPO6AkNs7KKnvfzUjHQhZDz/A=
gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gorm.io/driver/postgres v1.5.9 h1:DkegyItji119OlcaLjqN11kHoUgZ/j13E0jkJZgD6A8=
gorm.io/driver/postgres v1.5.9/go.mod h1:DX3GReXH+3FPWGrrgffdvCk3DQ1dwDPdmbenSkweRGI=
gorm.io/driver/sqlite v1.5.6 h1:fO/X46qn5NUEEOZtnjJRWRzZMe8nqJiQ9E+0hi+hKQE=
gorm.io/driver/sqlite v1.5.6/go.mod h1:U+J8craQU6Fzkcvu8oLeAQmi50TkwPEhHDEjQZXDah4=
gorm.io/gorm v1.25.11 h1:/Wfyg1B/je1hnDx3sMkX+gAlxrlZpn6X0BXRlwXlvHg=
gorm.io/gorm v1.25.11/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
gotest.tools/v3 v3.3.0 h1:MfDY1b1/0xN1CyMlQDac0ziEy9zJQd9CXBRRDHw2jJo=
gotest.tools/v3 v3.3.0/go.mod h1:Mcr9QNxkg0uMvy/YElmo4SpXgJKWgQvYrT7Kw5RzJ1A=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
modernc.org/libc v1.41.0 h1:g9YAc6BkKlgORsUWj+JwqoB1wU3o4DE3bM3yvA3k+Gk=
modernc.org/libc v1.41.0/go.mod h1:w0eszPsiXoOnoMJgrXjglgLuDy/bt5RR4y3QzUUeodY=
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/alias/target/store/v1/alias.proto
@@ -241,7 +241,7 @@ func file_controller_storage_alias_target_store_v1_alias_proto_rawDescGZIP() []b
}
var file_controller_storage_alias_target_store_v1_alias_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_alias_target_store_v1_alias_proto_goTypes = []interface{}{
var file_controller_storage_alias_target_store_v1_alias_proto_goTypes = []any{
(*Alias)(nil), // 0: controller.storage.alias.target.store.v1.Alias
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -261,7 +261,7 @@ func file_controller_storage_alias_target_store_v1_alias_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_alias_target_store_v1_alias_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_alias_target_store_v1_alias_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Alias); i {
case 0:
return &v.state
+39 -39
View File
@@ -141,14 +141,14 @@ func (am *AuthMethod) oplog(ctx context.Context, opType oplog.OpType) (oplog.Met
}
type convertedValues struct {
Urls []any
Certs []any
UserEntrySearchConf any
GroupEntrySearchConf any
ClientCertificate any
BindCredential any
AccountAttributeMaps []any
DerefAliases any
Urls []*Url
Certs []*Certificate
UserEntrySearchConf *UserEntrySearchConf
GroupEntrySearchConf *GroupEntrySearchConf
ClientCertificate *ClientCertificate
BindCredential *BindCredential
AccountAttributeMaps []*AccountAttributeMap
DerefAliases *DerefAliases
}
// convertValueObjects converts the embedded value objects. It will return an
@@ -199,15 +199,15 @@ func (am *AuthMethod) convertValueObjects(ctx context.Context) (*convertedValues
return converted, nil
}
// convertCertificates converts any embedded URLs from []string
// to []any where each slice element is a *Url. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertUrls(ctx context.Context) ([]any, error) {
// convertUrls converts any embedded URLs from []string to []*Url where each
// slice element is a *Url. It will return an error if the AuthMethod's public
// id is not set.
func (am *AuthMethod) convertUrls(ctx context.Context) ([]*Url, error) {
const op = "ldap.(AuthMethod).convertUrls"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newValObjs := make([]any, 0, len(am.Urls))
newValObjs := make([]*Url, 0, len(am.Urls))
for priority, u := range am.Urls {
parsed, err := url.Parse(u)
if err != nil {
@@ -223,14 +223,14 @@ func (am *AuthMethod) convertUrls(ctx context.Context) ([]any, error) {
}
// convertCertificates converts any embedded certificates from []string
// to []any where each slice element is a *Certificate. It will return an error
// if the AuthMethod's public id is not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
// to []*Certificate. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]*Certificate, error) {
const op = "ldap.(AuthMethod).convertCertificates"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newValObjs := make([]any, 0, len(am.Certificates))
newValObjs := make([]*Certificate, 0, len(am.Certificates))
for _, cert := range am.Certificates {
obj, err := NewCertificate(ctx, am.PublicId, cert)
if err != nil {
@@ -242,9 +242,9 @@ func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
}
// convertUserEntrySearchConf converts an embedded user entry search fields
// into an any type. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (any, error) {
// into an *UserEntrySearchConf type. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (*UserEntrySearchConf, error) {
const op = "ldap.(AuthMethod).convertUserEntrySearchConf"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
@@ -257,9 +257,9 @@ func (am *AuthMethod) convertUserEntrySearchConf(ctx context.Context) (any, erro
}
// convertGroupEntrySearchConf converts an embedded group entry search fields
// into an any type. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (any, error) {
// into an *GroupEntrySearchConf type. It will return an error if the
// AuthMethod's public id is not set.
func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (*GroupEntrySearchConf, error) {
const op = "ldap.(AuthMethod).convertGroupEntrySearchConf"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
@@ -272,9 +272,9 @@ func (am *AuthMethod) convertGroupEntrySearchConf(ctx context.Context) (any, err
}
// convertClientCertificate converts an embedded client certificate entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertClientCertificate(ctx context.Context) (any, error) {
// an *ClientCertificate type. It will return an error if the AuthMethod's
// public id is not set.
func (am *AuthMethod) convertClientCertificate(ctx context.Context) (*ClientCertificate, error) {
const op = "ldap.(AuthMethod).convertClientCertificate"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -287,9 +287,9 @@ func (am *AuthMethod) convertClientCertificate(ctx context.Context) (any, error)
}
// convertBindCredential converts an embedded bind credential entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertBindCredential(ctx context.Context) (any, error) {
// an *BindCredential type. It will return an error if the AuthMethod's public
// id is not set.
func (am *AuthMethod) convertBindCredential(ctx context.Context) (*BindCredential, error) {
const op = "ldap.(AuthMethod).convertBindCredentials"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -302,9 +302,9 @@ func (am *AuthMethod) convertBindCredential(ctx context.Context) (any, error) {
}
// convertDerefAliases converts an embedded deref aliases entry into
// an any type. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertDerefAliases(ctx context.Context) (any, error) {
// an *DerefAliases type. It will return an error if the AuthMethod's public id
// is not set.
func (am *AuthMethod) convertDerefAliases(ctx context.Context) (*DerefAliases, error) {
const op = "ldap.(AuthMethod).convertDerefAliases"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing auth method id")
@@ -317,15 +317,15 @@ func (am *AuthMethod) convertDerefAliases(ctx context.Context) (any, error) {
}
// convertAccountAttributeMaps converts the embedded account attribute maps from
// []string to []interface{} where each slice element is a *AccountAttributeMap. It
// will return an error if the AuthMethod's public id is not set or it can
// convert the account attribute maps.
func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]any, error) {
// []string to []*AccountAttributeMap. It will return an error if the
// AuthMethod's public id is not set or it can convert the account attribute
// maps.
func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]*AccountAttributeMap, error) {
const op = "ldap.(AuthMethod).convertAccountAttributeMaps"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AccountAttributeMaps))
acctAttribMaps := make([]*AccountAttributeMap, 0, len(am.AccountAttributeMaps))
const (
from = 0
to = 1
@@ -343,7 +343,7 @@ func (am *AuthMethod) convertAccountAttributeMaps(ctx context.Context) ([]any, e
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
acctAttribMaps = append(acctAttribMaps, obj)
}
return newInterfaces, nil
return acctAttribMaps, nil
}
+22 -5
View File
@@ -348,9 +348,9 @@ func Test_convertValueObjects(t *testing.T) {
testCerts := []string{pem}
c, err := NewCertificate(testCtx, testPublicId, pem)
require.NoError(t, err)
testCertificates := []any{c}
testCertificates := []*Certificate{c}
testUrls := make([]any, 0, len(testLdapServers))
testUrls := make([]*Url, 0, len(testLdapServers))
for priority, uu := range TestConvertToUrls(t, testLdapServers...) {
u, err := NewUrl(testCtx, testPublicId, priority+1, uu)
require.NoError(t, err)
@@ -358,7 +358,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testAttrMaps := []string{"email_address=email", "display_name=fullName"}
testAccountAttributeMaps := make([]any, 0, len(testAttrMaps))
testAccountAttributeMaps := make([]*AccountAttributeMap, 0, len(testAttrMaps))
acms, err := ParseAccountAttributeMaps(testCtx, testAttrMaps...)
require.NoError(t, err)
for _, m := range acms {
@@ -618,6 +618,23 @@ func (a converted) Less(i, j int) bool {
}
func testSortConverted(t *testing.T, c *convertedValues) {
sort.Sort(converted(c.Urls))
sort.Sort(converted(c.Certs))
t.Helper()
sort.Sort(sortableUrls(c.Urls))
sort.Sort(sortableCerts(c.Certs))
}
type sortableUrls []*Url
func (u sortableUrls) Len() int { return len(u) }
func (u sortableUrls) Swap(i, j int) { u[i], u[j] = u[j], u[i] }
func (u sortableUrls) Less(i, j int) bool {
return u[i].GetServerUrl() < u[j].GetServerUrl()
}
type sortableCerts []*Certificate
func (c sortableCerts) Len() int { return len(c) }
func (c sortableCerts) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
func (c sortableCerts) Less(i, j int) bool {
return c[i].GetCert() < c[j].GetCert()
}
@@ -68,20 +68,12 @@ func (r *Repository) CreateAuthMethod(ctx context.Context, am *AuthMethod, opt .
}
if cv.BindCredential != nil {
bc, ok := cv.BindCredential.(*BindCredential)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, fmt.Sprintf("invalid type (%T) is not a bind credential", cv.BindCredential))
}
if err := bc.encrypt(ctx, dbWrapper); err != nil {
if err := cv.BindCredential.encrypt(ctx, dbWrapper); err != nil {
return nil, errors.Wrap(ctx, err, op, errors.WithMsg("failed to encrypt bind credential"))
}
}
if cv.ClientCertificate != nil {
cc, ok := cv.ClientCertificate.(*ClientCertificate)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, fmt.Sprintf("invalid type (%T) is not a client certificate", cv.ClientCertificate))
}
if err := cc.encrypt(ctx, dbWrapper); err != nil {
if err := cv.ClientCertificate.encrypt(ctx, dbWrapper); err != nil {
return nil, errors.Wrap(ctx, err, op, errors.WithMsg("failed to encrypt client certificate"))
}
}
@@ -155,18 +155,42 @@ func (r *Repository) UpdateAuthMethod(ctx context.Context, am *AuthMethod, versi
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to get database wrapper"))
}
addUrls, deleteUrls, err := valueObjectChanges(ctx, origAm.PublicId, UrlVO, am.Urls, origAm.Urls, dbMask, nullFields)
au, du, err := valueObjectChanges(ctx, origAm.PublicId, UrlVO, am.Urls, origAm.Urls, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update urls"))
}
addCerts, deleteCerts, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
addUrls := []*Url{}
for _, u := range au {
addUrls = append(addUrls, u.(*Url))
}
deleteUrls := []*Url{}
for _, u := range du {
deleteUrls = append(deleteUrls, u.(*Url))
}
ac, dc, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update certificates"))
}
addMaps, deleteMaps, err := valueObjectChanges(ctx, origAm.PublicId, AccountAttributeMapsVO, am.AccountAttributeMaps, origAm.AccountAttributeMaps, dbMask, nullFields)
deleteCerts := []*Certificate{}
for _, c := range dc {
deleteCerts = append(deleteCerts, c.(*Certificate))
}
addCerts := []*Certificate{}
for _, c := range ac {
addCerts = append(addCerts, c.(*Certificate))
}
addM, deleteM, err := valueObjectChanges(ctx, origAm.PublicId, AccountAttributeMapsVO, am.AccountAttributeMaps, origAm.AccountAttributeMaps, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg("unable to update account attribute maps"))
}
addMaps := []*AccountAttributeMap{}
for _, m := range addM {
addMaps = append(addMaps, m.(*AccountAttributeMap))
}
deleteMaps := []*AccountAttributeMap{}
for _, m := range deleteM {
deleteMaps = append(deleteMaps, m.(*AccountAttributeMap))
}
combinedMasks := append(dbMask, nullFields...)
@@ -117,18 +117,13 @@ func (r *Repository) Authenticate(ctx context.Context, authMethodId, loginName,
}
for _, attrMap := range attrMaps {
aam, ok := attrMap.(*AccountAttributeMap)
if !ok {
return nil, errors.New(ctx, errors.Internal, op, "failed to convert attribute map into AccountAttributeMap type")
}
switch aam.ToAttribute {
switch attrMap.ToAttribute {
case DefaultEmailAttribute:
emailAttr = aam.FromAttribute
emailAttr = attrMap.FromAttribute
case DefaultFullNameAttribute:
fullNameAttr = aam.FromAttribute
fullNameAttr = attrMap.FromAttribute
default:
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("invalid to attribute %q", aam.ToAttribute))
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("invalid to attribute %q", attrMap.ToAttribute))
}
}
+14 -14
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/ldap/store/v1/ldap.proto
@@ -1942,7 +1942,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_rawDescGZIP() []byte
}
var file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_controller_storage_auth_ldap_store_v1_ldap_proto_goTypes = []interface{}{
var file_controller_storage_auth_ldap_store_v1_ldap_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.ldap.store.v1.AuthMethod
(*Url)(nil), // 1: controller.storage.auth.ldap.store.v1.Url
(*UserEntrySearchConf)(nil), // 2: controller.storage.auth.ldap.store.v1.UserEntrySearchConf
@@ -1986,7 +1986,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -1998,7 +1998,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Url); i {
case 0:
return &v.state
@@ -2010,7 +2010,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*UserEntrySearchConf); i {
case 0:
return &v.state
@@ -2022,7 +2022,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*GroupEntrySearchConf); i {
case 0:
return &v.state
@@ -2034,7 +2034,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Certificate); i {
case 0:
return &v.state
@@ -2046,7 +2046,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ClientCertificate); i {
case 0:
return &v.state
@@ -2058,7 +2058,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*BindCredential); i {
case 0:
return &v.state
@@ -2070,7 +2070,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -2082,7 +2082,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*AccountAttributeMap); i {
case 0:
return &v.state
@@ -2094,7 +2094,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DerefAliases); i {
case 0:
return &v.state
@@ -2106,7 +2106,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroup); i {
case 0:
return &v.state
@@ -2118,7 +2118,7 @@ func file_controller_storage_auth_ldap_store_v1_ldap_proto_init() {
return nil
}
}
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_ldap_store_v1_ldap_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupMemberAccount); i {
case 0:
return &v.state
+50 -58
View File
@@ -289,12 +289,12 @@ func (am *AuthMethod) isComplete(ctx context.Context) error {
}
type convertedValues struct {
Algs []any
Auds []any
Certs []any
ClaimsScopes []any
AccountClaimMaps []any
Prompts []any
Algs []*SigningAlg
Auds []*AudClaim
Certs []*Certificate
ClaimsScopes []*ClaimsScope
AccountClaimMaps []*AccountClaimMap
Prompts []*Prompt
}
// convertValueObjects converts the embedded value objects. It will return an
@@ -305,121 +305,113 @@ func (am *AuthMethod) convertValueObjects(ctx context.Context) (*convertedValues
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
var err error
var addAlgs, addAuds, addCerts, addScopes, addAccountClaimMaps, addPrompts []any
if addAlgs, err = am.convertSigningAlgs(ctx); err != nil {
converted := &convertedValues{}
if converted.Algs, err = am.convertSigningAlgs(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addAuds, err = am.convertAudClaims(ctx); err != nil {
if converted.Auds, err = am.convertAudClaims(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addCerts, err = am.convertCertificates(ctx); err != nil {
if converted.Certs, err = am.convertCertificates(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addScopes, err = am.convertClaimsScopes(ctx); err != nil {
if converted.ClaimsScopes, err = am.convertClaimsScopes(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addAccountClaimMaps, err = am.convertAccountClaimMaps(ctx); err != nil {
if converted.AccountClaimMaps, err = am.convertAccountClaimMaps(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
if addPrompts, err = am.convertPrompts(ctx); err != nil {
if converted.Prompts, err = am.convertPrompts(ctx); err != nil {
return nil, errors.Wrap(ctx, err, op)
}
return &convertedValues{
Algs: addAlgs,
Auds: addAuds,
Certs: addCerts,
ClaimsScopes: addScopes,
AccountClaimMaps: addAccountClaimMaps,
Prompts: addPrompts,
}, nil
return converted, nil
}
// convertSigningAlgs converts the embedded signing algorithms from []string
// to []interface{} where each slice element is a *SigningAlg. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertSigningAlgs(ctx context.Context) ([]any, error) {
// to []*SigningAlg. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertSigningAlgs(ctx context.Context) ([]*SigningAlg, error) {
const op = "oidc.(AuthMethod).convertSigningAlgs"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.SigningAlgs))
newAlgs := make([]*SigningAlg, 0, len(am.SigningAlgs))
for _, a := range am.SigningAlgs {
obj, err := NewSigningAlg(ctx, am.PublicId, Alg(a))
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newAlgs = append(newAlgs, obj)
}
return newInterfaces, nil
return newAlgs, nil
}
// convertAudClaims converts the embedded audience claims from []string
// to []interface{} where each slice element is a *AudClaim. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertAudClaims(ctx context.Context) ([]any, error) {
// to []*AudClaim. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertAudClaims(ctx context.Context) ([]*AudClaim, error) {
const op = "oidc.(AuthMethod).convertAudClaims"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AudClaims))
newClaims := make([]*AudClaim, 0, len(am.AudClaims))
for _, a := range am.AudClaims {
obj, err := NewAudClaim(ctx, am.PublicId, a)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newClaims = append(newClaims, obj)
}
return newInterfaces, nil
return newClaims, nil
}
// convertCertificates converts the embedded certificates from []string
// to []interface{} where each slice element is a *Certificate. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]any, error) {
// to []*Certificate. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertCertificates(ctx context.Context) ([]*Certificate, error) {
const op = "oidc.(AuthMethod).convertCertificates"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.Certificates))
newCerts := make([]*Certificate, 0, len(am.Certificates))
for _, cert := range am.Certificates {
obj, err := NewCertificate(ctx, am.PublicId, cert)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newCerts = append(newCerts, obj)
}
return newInterfaces, nil
return newCerts, nil
}
// convertClaimsScopes converts the embedded claims scopes from []string
// to []interface{} where each slice element is a *ClaimsScope. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertClaimsScopes(ctx context.Context) ([]any, error) {
// to []*ClaimsScope. It will return an error if the AuthMethod's public id is
// not set.
func (am *AuthMethod) convertClaimsScopes(ctx context.Context) ([]*ClaimsScope, error) {
const op = "oidc.(AuthMethod).convertClaimsScopes"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.ClaimsScopes))
newClaimsScopes := make([]*ClaimsScope, 0, len(am.ClaimsScopes))
for _, cs := range am.ClaimsScopes {
obj, err := NewClaimsScope(ctx, am.PublicId, cs)
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newClaimsScopes = append(newClaimsScopes, obj)
}
return newInterfaces, nil
return newClaimsScopes, nil
}
// convertAccountClaimMaps converts the embedded account claim maps from
// []string to []interface{} where each slice element is a *AccountClaimMap. It
// will return an error if the AuthMethod's public id is not set or it can
// convert the account claim maps.
func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]any, error) {
// []string to []*AccountClaimMap. It will return an error if the AuthMethod's
// public id is not set or it can convert the account claim maps.
func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]*AccountClaimMap, error) {
const op = "oidc.(AuthMethod).convertAccountClaimMaps"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.AccountClaimMaps))
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(am.AccountClaimMaps))
const (
from = 0
to = 1
@@ -437,9 +429,9 @@ func (am *AuthMethod) convertAccountClaimMaps(ctx context.Context) ([]any, error
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newAccountClaimMaps = append(newAccountClaimMaps, obj)
}
return newInterfaces, nil
return newAccountClaimMaps, nil
}
// ClaimMap defines the To and From of an oidc claim map
@@ -477,20 +469,20 @@ func ParseAccountClaimMaps(ctx context.Context, m ...string) ([]ClaimMap, error)
}
// convertPrompts converts the embedded prompts from []string
// to []interface{} where each slice element is a *Prompt. It will return an
// error if the AuthMethod's public id is not set.
func (am *AuthMethod) convertPrompts(ctx context.Context) ([]any, error) {
// to []*Prompt. It will return an error if the AuthMethod's public id is not
// set.
func (am *AuthMethod) convertPrompts(ctx context.Context) ([]*Prompt, error) {
const op = "oidc.(AuthMethod).convertPrompts"
if am.PublicId == "" {
return nil, errors.New(ctx, errors.InvalidPublicId, op, "missing public id")
}
newInterfaces := make([]any, 0, len(am.Prompts))
newPrompts := make([]*Prompt, 0, len(am.Prompts))
for _, a := range am.Prompts {
obj, err := NewPrompt(ctx, am.PublicId, PromptParam(a))
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
newInterfaces = append(newInterfaces, obj)
newPrompts = append(newPrompts, obj)
}
return newInterfaces, nil
return newPrompts, nil
}
+51 -30
View File
@@ -550,7 +550,7 @@ func Test_convertValueObjects(t *testing.T) {
testPublicId := "test-id"
testAlgs := []string{string(RS256), string(RS384)}
var testSigningAlgs []any
var testSigningAlgs []*SigningAlg
for _, a := range []Alg{RS256, RS384} {
obj, err := NewSigningAlg(ctx, testPublicId, Alg(a))
require.NoError(t, err)
@@ -558,7 +558,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testAuds := []string{"alice", "eve"}
var testAudiences []any
var testAudiences []*AudClaim
for _, a := range testAuds {
obj, err := NewAudClaim(ctx, testPublicId, a)
require.NoError(t, err)
@@ -569,10 +569,10 @@ func Test_convertValueObjects(t *testing.T) {
testCerts := []string{pem}
c, err := NewCertificate(ctx, testPublicId, pem)
require.NoError(t, err)
testCertificates := []any{c}
testCertificates := []*Certificate{c}
testScopes := []string{"profile", "email"}
testClaimsScopes := make([]any, 0, len(testScopes))
testClaimsScopes := make([]*ClaimsScope, 0, len(testScopes))
for _, s := range testScopes {
obj, err := NewClaimsScope(ctx, testPublicId, s)
require.NoError(t, err)
@@ -580,7 +580,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testClaimMaps := []string{"oid=sub", "display_name=name"}
testAccountClaimMaps := make([]any, 0, len(testClaimMaps))
testAccountClaimMaps := make([]*AccountClaimMap, 0, len(testClaimMaps))
acms, err := ParseAccountClaimMaps(ctx, testClaimMaps...)
require.NoError(t, err)
for _, m := range acms {
@@ -592,7 +592,7 @@ func Test_convertValueObjects(t *testing.T) {
}
testPrompts := []string{"consent", "select_account"}
testExpectedPrompts := make([]any, 0, len(testPrompts))
testExpectedPrompts := make([]*Prompt, 0, len(testPrompts))
for _, a := range testPrompts {
obj, err := NewPrompt(ctx, testPublicId, PromptParam(a))
require.NoError(t, err)
@@ -690,11 +690,11 @@ func Test_convertValueObjects(t *testing.T) {
} else {
want := make([]*AccountClaimMap, 0, len(tt.wantValues.AccountClaimMaps))
for _, v := range tt.wantValues.AccountClaimMaps {
want = append(want, v.(*AccountClaimMap))
want = append(want, v)
}
got := make([]*AccountClaimMap, 0, len(convertedMaps))
for _, v := range convertedMaps {
got = append(got, v.(*AccountClaimMap))
got = append(got, v)
}
sort.Slice(want, func(a, b int) bool {
return want[a].ToClaim < want[b].ToClaim
@@ -730,30 +730,51 @@ func Test_convertValueObjects(t *testing.T) {
}
}
type converted []any
type sortableAlgs []*SigningAlg
func (a converted) Len() int { return len(a) }
func (a converted) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a converted) Less(i, j int) bool {
switch a[i].(type) {
case *SigningAlg:
return a[i].(*SigningAlg).GetAlg() < a[j].(*SigningAlg).GetAlg()
case *Certificate:
return a[i].(*Certificate).GetCert() < a[j].(*Certificate).GetCert()
case *AccountClaimMap:
return a[i].(*AccountClaimMap).GetToClaim() < a[j].(*AccountClaimMap).GetToClaim()
case *AudClaim:
return a[i].(*AudClaim).GetAud() < a[j].(*AudClaim).GetAud()
case *ClaimsScope:
return a[i].(*ClaimsScope).GetScope() < a[j].(*ClaimsScope).GetScope()
}
return false
func (s sortableAlgs) Len() int { return len(s) }
func (s sortableAlgs) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAlgs) Less(i, j int) bool {
return s[i].GetAlg() < s[j].GetAlg()
}
type sortableCerts []*Certificate
func (s sortableCerts) Len() int { return len(s) }
func (s sortableCerts) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableCerts) Less(i, j int) bool {
return s[i].GetCert() < s[j].GetCert()
}
type sortableAccountClaimMaps []*AccountClaimMap
func (s sortableAccountClaimMaps) Len() int { return len(s) }
func (s sortableAccountClaimMaps) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAccountClaimMaps) Less(i, j int) bool {
return s[i].GetFromClaim()+s[i].GetToClaim() < s[j].GetFromClaim()+s[j].GetToClaim()
}
type sortableAuds []*AudClaim
func (s sortableAuds) Len() int { return len(s) }
func (s sortableAuds) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableAuds) Less(i, j int) bool {
return s[i].GetAud() < s[j].GetAud()
}
type sortableClaimsScopes []*ClaimsScope
func (s sortableClaimsScopes) Len() int { return len(s) }
func (s sortableClaimsScopes) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s sortableClaimsScopes) Less(i, j int) bool {
return s[i].GetScope() < s[j].GetScope()
}
func testSortConverted(t *testing.T, c *convertedValues) {
sort.Sort(converted(c.Algs))
sort.Sort(converted(c.Certs))
sort.Sort(converted(c.AccountClaimMaps))
sort.Sort(converted(c.Auds))
sort.Sort(converted(c.ClaimsScopes))
t.Helper()
sort.Sort(sortableAlgs(c.Algs))
sort.Sort(sortableCerts(c.Certs))
sort.Sort(sortableAccountClaimMaps(c.AccountClaimMaps))
sort.Sort(sortableAuds(c.Auds))
sort.Sort(sortableClaimsScopes(c.ClaimsScopes))
}
@@ -155,47 +155,93 @@ func (r *Repository) UpdateAuthMethod(ctx context.Context, am *AuthMethod, versi
}
}
addAlgs, deleteAlgs, err := valueObjectChanges(ctx, origAm.PublicId, SigningAlgVO, am.SigningAlgs, origAm.SigningAlgs, dbMask, nullFields)
aa, ad, err := valueObjectChanges(ctx, origAm.PublicId, SigningAlgVO, am.SigningAlgs, origAm.SigningAlgs, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addAlgs := []*SigningAlg{}
for _, a := range aa {
addAlgs = append(addAlgs, a.(*SigningAlg))
}
deleteAlgs := []*SigningAlg{}
for _, a := range ad {
deleteAlgs = append(deleteAlgs, a.(*SigningAlg))
}
addCerts, deleteCerts, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
ac, dc, err := valueObjectChanges(ctx, origAm.PublicId, CertificateVO, am.Certificates, origAm.Certificates, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addCerts := []*Certificate{}
for _, c := range ac {
addCerts = append(addCerts, c.(*Certificate))
}
deleteCerts := []*Certificate{}
for _, c := range dc {
deleteCerts = append(deleteCerts, c.(*Certificate))
}
addAuds, deleteAuds, err := valueObjectChanges(ctx, origAm.PublicId, AudClaimVO, am.AudClaims, origAm.AudClaims, dbMask, nullFields)
aa, ad, err = valueObjectChanges(ctx, origAm.PublicId, AudClaimVO, am.AudClaims, origAm.AudClaims, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addAuds := []*AudClaim{}
for _, a := range aa {
addAuds = append(addAuds, a.(*AudClaim))
}
deleteAuds := []*AudClaim{}
for _, a := range ad {
deleteAuds = append(deleteAuds, a.(*AudClaim))
}
addScopes, deleteScopes, err := valueObjectChanges(ctx, origAm.PublicId, ClaimsScopesVO, am.ClaimsScopes, origAm.ClaimsScopes, dbMask, nullFields)
as, ds, err := valueObjectChanges(ctx, origAm.PublicId, ClaimsScopesVO, am.ClaimsScopes, origAm.ClaimsScopes, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addScopes := []*ClaimsScope{}
for _, s := range as {
addScopes = append(addScopes, s.(*ClaimsScope))
}
deleteScopes := []*ClaimsScope{}
for _, s := range ds {
deleteScopes = append(deleteScopes, s.(*ClaimsScope))
}
addMaps, deleteMaps, err := valueObjectChanges(ctx, origAm.PublicId, AccountClaimMapsVO, am.AccountClaimMaps, origAm.AccountClaimMaps, dbMask, nullFields)
aacm, dacm, err := valueObjectChanges(ctx, origAm.PublicId, AccountClaimMapsVO, am.AccountClaimMaps, origAm.AccountClaimMaps, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addMaps := []*AccountClaimMap{}
for _, m := range aacm {
addMaps = append(addMaps, m.(*AccountClaimMap))
}
deleteMaps := []*AccountClaimMap{}
for _, m := range dacm {
deleteMaps = append(deleteMaps, m.(*AccountClaimMap))
}
addPrompts, deletePrompts, err := valueObjectChanges(ctx, origAm.PublicId, PromptsVO, am.Prompts, origAm.Prompts, dbMask, nullFields)
ap, dp, err := valueObjectChanges(ctx, origAm.PublicId, PromptsVO, am.Prompts, origAm.Prompts, dbMask, nullFields)
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
addPrompts := []*Prompt{}
for _, p := range ap {
addPrompts = append(addPrompts, p.(*Prompt))
}
deletePrompts := []*Prompt{}
for _, p := range dp {
deletePrompts = append(deletePrompts, p.(*Prompt))
}
// we don't allow updates for "sub" claim maps, because we have no way to
// determine if the updated "from" claim in the map might create collisions
// with any existing account's subject.
for _, rawCm := range addMaps {
cm := rawCm.(*AccountClaimMap)
for _, cm := range addMaps {
if cm.ToClaim == string(ToSubClaim) {
return nil, db.NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("you cannot update account claim map %s=%s for the \"sub\" claim", cm.FromClaim, cm.ToClaim))
}
}
for _, rawCm := range deleteMaps {
cm := rawCm.(*AccountClaimMap)
for _, cm := range deleteMaps {
if cm.ToClaim == string(ToSubClaim) {
return nil, db.NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("you cannot update account claim map %s=%s for the \"sub\" claim", cm.FromClaim, cm.ToClaim))
}
@@ -117,7 +117,7 @@ func (r *Repository) SetManagedGroupMemberships(ctx context.Context, am *AuthMet
}
// Figure out which ones to delete and which ones we already have
toDelete := make([]any, 0, len(mgs))
toDelete := make([]*ManagedGroupMemberAccount, 0, len(mgs))
for _, currMg := range currentMemberships {
currMgId := currMg.ManagedGroupId
if newMgPublicIds[currMgId] {
@@ -161,7 +161,7 @@ func (r *Repository) SetManagedGroupMemberships(ctx context.Context, am *AuthMet
if len(newMgPublicIds) > 0 {
metadata["op-type"] = append(metadata["op-type"], oplog.OpType_OP_TYPE_CREATE.String())
addOplogMsgs := make([]*oplog.Message, 0, len(newMgPublicIds))
toAdd := make([]any, 0, len(newMgPublicIds))
toAdd := make([]*ManagedGroupMemberAccount, 0, len(newMgPublicIds))
for mgId := range newMgPublicIds {
newMg := AllocManagedGroupMemberAccount()
newMg.ManagedGroupId = mgId
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/oidc/request/v1/request.proto
@@ -341,7 +341,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_rawDescGZIP() []
}
var file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_storage_auth_oidc_request_v1_request_proto_goTypes = []interface{}{
var file_controller_storage_auth_oidc_request_v1_request_proto_goTypes = []any{
(*State)(nil), // 0: controller.storage.auth.oidc.request.v1.State
(*Token)(nil), // 1: controller.storage.auth.oidc.request.v1.Token
(*Wrapper)(nil), // 2: controller.storage.auth.oidc.request.v1.Wrapper
@@ -364,7 +364,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*State); i {
case 0:
return &v.state
@@ -376,7 +376,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Token); i {
case 0:
return &v.state
@@ -388,7 +388,7 @@ func file_controller_storage_auth_oidc_request_v1_request_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_request_v1_request_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Wrapper); i {
case 0:
return &v.state
+12 -12
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/oidc/store/v1/oidc.proto
@@ -1382,7 +1382,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_rawDescGZIP() []byte
}
var file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_storage_auth_oidc_store_v1_oidc_proto_goTypes = []interface{}{
var file_controller_storage_auth_oidc_store_v1_oidc_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.oidc.store.v1.AuthMethod
(*Account)(nil), // 1: controller.storage.auth.oidc.store.v1.Account
(*SigningAlg)(nil), // 2: controller.storage.auth.oidc.store.v1.SigningAlg
@@ -1422,7 +1422,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -1434,7 +1434,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -1446,7 +1446,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SigningAlg); i {
case 0:
return &v.state
@@ -1458,7 +1458,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*AudClaim); i {
case 0:
return &v.state
@@ -1470,7 +1470,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Certificate); i {
case 0:
return &v.state
@@ -1482,7 +1482,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ClaimsScope); i {
case 0:
return &v.state
@@ -1494,7 +1494,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*AccountClaimMap); i {
case 0:
return &v.state
@@ -1506,7 +1506,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroup); i {
case 0:
return &v.state
@@ -1518,7 +1518,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupMemberAccount); i {
case 0:
return &v.state
@@ -1530,7 +1530,7 @@ func file_controller_storage_auth_oidc_store_v1_oidc_proto_init() {
return nil
}
}
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_oidc_store_v1_oidc_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*Prompt); i {
case 0:
return &v.state
+6 -6
View File
@@ -68,7 +68,7 @@ func TestAuthMethod(
require.NoError(err)
if len(opts.withAudClaims) > 0 {
newAudClaims := make([]any, 0, len(opts.withAudClaims))
newAudClaims := make([]*AudClaim, 0, len(opts.withAudClaims))
for _, a := range opts.withAudClaims {
aud, err := NewAudClaim(ctx, authMethod.PublicId, a)
require.NoError(err)
@@ -79,7 +79,7 @@ func TestAuthMethod(
require.Equal(len(opts.withAudClaims), len(authMethod.AudClaims))
}
if len(opts.withCertificates) > 0 {
newCerts := make([]any, 0, len(opts.withCertificates))
newCerts := make([]*Certificate, 0, len(opts.withCertificates))
for _, c := range opts.withCertificates {
pem, err := EncodeCertificates(ctx, c)
require.NoError(err)
@@ -92,7 +92,7 @@ func TestAuthMethod(
require.Equal(len(opts.withCertificates), len(authMethod.Certificates))
}
if len(opts.withSigningAlgs) > 0 {
newAlgs := make([]any, 0, len(opts.withSigningAlgs))
newAlgs := make([]*SigningAlg, 0, len(opts.withSigningAlgs))
for _, a := range opts.withSigningAlgs {
alg, err := NewSigningAlg(ctx, authMethod.PublicId, a)
require.NoError(err)
@@ -103,7 +103,7 @@ func TestAuthMethod(
require.Equal(len(opts.withSigningAlgs), len(authMethod.SigningAlgs))
}
if len(opts.withClaimsScopes) > 0 {
newClaimsScopes := make([]any, 0, len(opts.withClaimsScopes))
newClaimsScopes := make([]*ClaimsScope, 0, len(opts.withClaimsScopes))
for _, cs := range opts.withClaimsScopes {
s, err := NewClaimsScope(ctx, authMethod.PublicId, cs)
require.NoError(err)
@@ -114,7 +114,7 @@ func TestAuthMethod(
require.Equal(len(opts.withClaimsScopes), len(authMethod.ClaimsScopes))
}
if len(opts.withAccountClaimMap) > 0 {
newAccountClaimMaps := make([]any, 0, len(opts.withAccountClaimMap))
newAccountClaimMaps := make([]*AccountClaimMap, 0, len(opts.withAccountClaimMap))
for k, v := range opts.withAccountClaimMap {
acm, err := NewAccountClaimMap(ctx, authMethod.PublicId, k, v)
require.NoError(err)
@@ -124,7 +124,7 @@ func TestAuthMethod(
require.Equal(len(opts.withAccountClaimMap), len(authMethod.AccountClaimMaps))
}
if len(opts.withPrompts) > 0 {
newPrompts := make([]any, 0, len(opts.withPrompts))
newPrompts := make([]*Prompt, 0, len(opts.withPrompts))
for _, p := range opts.withPrompts {
prompt, err := NewPrompt(ctx, authMethod.PublicId, p)
require.NoError(err)
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/password/store/v1/argon2.proto
@@ -374,7 +374,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_rawDescGZIP() [
}
var file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_auth_password_store_v1_argon2_proto_goTypes = []interface{}{
var file_controller_storage_auth_password_store_v1_argon2_proto_goTypes = []any{
(*Argon2Configuration)(nil), // 0: controller.storage.auth.password.store.v1.Argon2Configuration
(*Argon2Credential)(nil), // 1: controller.storage.auth.password.store.v1.Argon2Credential
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
@@ -396,7 +396,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Argon2Configuration); i {
case 0:
return &v.state
@@ -408,7 +408,7 @@ func file_controller_storage_auth_password_store_v1_argon2_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_argon2_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Argon2Credential); i {
case 0:
return &v.state
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/password/store/v1/password.proto
@@ -477,7 +477,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_rawDescGZIP()
}
var file_controller_storage_auth_password_store_v1_password_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_storage_auth_password_store_v1_password_proto_goTypes = []interface{}{
var file_controller_storage_auth_password_store_v1_password_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.password.store.v1.AuthMethod
(*Account)(nil), // 1: controller.storage.auth.password.store.v1.Account
(*Credential)(nil), // 2: controller.storage.auth.password.store.v1.Credential
@@ -501,7 +501,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -513,7 +513,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
@@ -525,7 +525,7 @@ func file_controller_storage_auth_password_store_v1_password_proto_init() {
return nil
}
}
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_password_store_v1_password_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -34,6 +34,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/store/v1/account.proto
@@ -142,7 +142,7 @@ func file_controller_storage_auth_store_v1_account_proto_rawDescGZIP() []byte {
}
var file_controller_storage_auth_store_v1_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_auth_store_v1_account_proto_goTypes = []interface{}{
var file_controller_storage_auth_store_v1_account_proto_goTypes = []any{
(*Account)(nil), // 0: controller.storage.auth.store.v1.Account
}
var file_controller_storage_auth_store_v1_account_proto_depIdxs = []int32{
@@ -159,7 +159,7 @@ func file_controller_storage_auth_store_v1_account_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_store_v1_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_account_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Account); i {
case 0:
return &v.state
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/auth/store/v1/auth_method.proto
@@ -199,7 +199,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_rawDescGZIP() []byt
}
var file_controller_storage_auth_store_v1_auth_method_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_auth_store_v1_auth_method_proto_goTypes = []interface{}{
var file_controller_storage_auth_store_v1_auth_method_proto_goTypes = []any{
(*AuthMethod)(nil), // 0: controller.storage.auth.store.v1.AuthMethod
(*AuthAccount)(nil), // 1: controller.storage.auth.store.v1.AuthAccount
}
@@ -217,7 +217,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthMethod); i {
case 0:
return &v.state
@@ -229,7 +229,7 @@ func file_controller_storage_auth_store_v1_auth_method_proto_init() {
return nil
}
}
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_auth_store_v1_auth_method_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*AuthAccount); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/authtoken/store/v1/authtoken.proto
@@ -271,7 +271,7 @@ func file_controller_storage_authtoken_store_v1_authtoken_proto_rawDescGZIP() []
}
var file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_authtoken_store_v1_authtoken_proto_goTypes = []interface{}{
var file_controller_storage_authtoken_store_v1_authtoken_proto_goTypes = []any{
(*AuthToken)(nil), // 0: controller.storage.authtoken.store.v1.AuthToken
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -293,7 +293,7 @@ func file_controller_storage_authtoken_store_v1_authtoken_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_authtoken_store_v1_authtoken_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*AuthToken); i {
case 0:
return &v.state
+21 -21
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: ssh/v1/ssh_chunks.proto
@@ -1867,7 +1867,7 @@ func file_ssh_v1_ssh_chunks_proto_rawDescGZIP() []byte {
}
var file_ssh_v1_ssh_chunks_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_ssh_v1_ssh_chunks_proto_goTypes = []interface{}{
var file_ssh_v1_ssh_chunks_proto_goTypes = []any{
(*UnknownRequest)(nil), // 0: ssh.v1.UnknownRequest
(*SessionRequest)(nil), // 1: ssh.v1.SessionRequest
(*X11Request)(nil), // 2: ssh.v1.X11Request
@@ -1902,7 +1902,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_ssh_v1_ssh_chunks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UnknownRequest); i {
case 0:
return &v.state
@@ -1914,7 +1914,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SessionRequest); i {
case 0:
return &v.state
@@ -1926,7 +1926,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*X11Request); i {
case 0:
return &v.state
@@ -1938,7 +1938,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ForwardedTCPIPRequest); i {
case 0:
return &v.state
@@ -1950,7 +1950,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DirectTCPIPRequest); i {
case 0:
return &v.state
@@ -1962,7 +1962,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*PtyRequest); i {
case 0:
return &v.state
@@ -1974,7 +1974,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*X11ForwardingRequest); i {
case 0:
return &v.state
@@ -1986,7 +1986,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*EnvRequest); i {
case 0:
return &v.state
@@ -1998,7 +1998,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ShellRequest); i {
case 0:
return &v.state
@@ -2010,7 +2010,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*ExecRequest); i {
case 0:
return &v.state
@@ -2022,7 +2022,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*SubsystemRequest); i {
case 0:
return &v.state
@@ -2034,7 +2034,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*WindowChangeRequest); i {
case 0:
return &v.state
@@ -2046,7 +2046,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*XonXoffRequest); i {
case 0:
return &v.state
@@ -2058,7 +2058,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SignalRequest); i {
case 0:
return &v.state
@@ -2070,7 +2070,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*ExitStatusRequest); i {
case 0:
return &v.state
@@ -2082,7 +2082,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*ExitSignalRequest); i {
case 0:
return &v.state
@@ -2094,7 +2094,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*BreakRequest); i {
case 0:
return &v.state
@@ -2106,7 +2106,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*TCPIPForwardRequest); i {
case 0:
return &v.state
@@ -2118,7 +2118,7 @@ func file_ssh_v1_ssh_chunks_proto_init() {
return nil
}
}
file_ssh_v1_ssh_chunks_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_ssh_v1_ssh_chunks_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*CancelTCPIPForwardRequest); i {
case 0:
return &v.state
+9 -9
View File
@@ -204,21 +204,21 @@ func TestSearch(t *testing.T) {
require.NoError(t, rw.Create(ctx, u))
require.NoError(t, rw.Create(ctx, at))
aliases := []any{
&ResolvableAlias{FkUserId: u.Id, Id: "alt_1", Value: "one", Type: "target", Item: `{"id": "alt_1", "value": "one", "type": "target"}`},
&ResolvableAlias{FkUserId: u.Id, Id: "alt_2", Value: "two", Type: "target", Item: `{"id": "alt_2", "value": "two", "type": "target"}`},
aliases := []*ResolvableAlias{
{FkUserId: u.Id, Id: "alt_1", Value: "one", Type: "target", Item: `{"id": "alt_1", "value": "one", "type": "target"}`},
{FkUserId: u.Id, Id: "alt_2", Value: "two", Type: "target", Item: `{"id": "alt_2", "value": "two", "type": "target"}`},
}
require.NoError(t, rw.CreateItems(ctx, aliases))
targets := []any{
&Target{FkUserId: u.Id, Id: "t_1", Name: "one", Type: "tcp", Item: `{"id": "t_1", "name": "one", "type": "tcp"}`},
&Target{FkUserId: u.Id, Id: "t_2", Name: "two", Type: "tcp", Item: `{"id": "t_2", "name": "two", "type": "tcp"}`},
targets := []*Target{
{FkUserId: u.Id, Id: "t_1", Name: "one", Type: "tcp", Item: `{"id": "t_1", "name": "one", "type": "tcp"}`},
{FkUserId: u.Id, Id: "t_2", Name: "two", Type: "tcp", Item: `{"id": "t_2", "name": "two", "type": "tcp"}`},
}
require.NoError(t, rw.CreateItems(ctx, targets))
sessions := []any{
&Session{FkUserId: u.Id, Id: "s_1", Endpoint: "one", Type: "tcp", UserId: "u123", Item: `{"id": "s_1", "endpoint": "one", "type": "tcp", "user_id": "u123"}`},
&Session{FkUserId: u.Id, Id: "s_2", Endpoint: "two", Type: "ssh", UserId: "u321", Item: `{"id": "s_2", "endpoint": "two", "type": "ssh", "user_id": "u321"}`},
sessions := []*Session{
{FkUserId: u.Id, Id: "s_1", Endpoint: "one", Type: "tcp", UserId: "u123", Item: `{"id": "s_1", "endpoint": "one", "type": "tcp", "user_id": "u123"}`},
{FkUserId: u.Id, Id: "s_2", Endpoint: "two", Type: "ssh", UserId: "u321", Item: `{"id": "s_2", "endpoint": "two", "type": "ssh", "user_id": "u321"}`},
}
require.NoError(t, rw.CreateItems(ctx, sessions))
}
@@ -30,6 +30,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/static/store/v1/static.proto
@@ -852,7 +852,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_rawDescGZIP
}
var file_controller_storage_credential_static_store_v1_static_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_credential_static_store_v1_static_proto_goTypes = []interface{}{
var file_controller_storage_credential_static_store_v1_static_proto_goTypes = []any{
(*CredentialStore)(nil), // 0: controller.storage.credential.static.store.v1.CredentialStore
(*UsernamePasswordCredential)(nil), // 1: controller.storage.credential.static.store.v1.UsernamePasswordCredential
(*SshPrivateKeyCredential)(nil), // 2: controller.storage.credential.static.store.v1.SshPrivateKeyCredential
@@ -881,7 +881,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*CredentialStore); i {
case 0:
return &v.state
@@ -893,7 +893,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePasswordCredential); i {
case 0:
return &v.state
@@ -905,7 +905,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKeyCredential); i {
case 0:
return &v.state
@@ -917,7 +917,7 @@ func file_controller_storage_credential_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_static_store_v1_static_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*JsonCredential); i {
case 0:
return &v.state
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/store/v1/credential.proto
@@ -372,7 +372,7 @@ func file_controller_storage_credential_store_v1_credential_proto_rawDescGZIP()
}
var file_controller_storage_credential_store_v1_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_credential_store_v1_credential_proto_goTypes = []interface{}{
var file_controller_storage_credential_store_v1_credential_proto_goTypes = []any{
(*Store)(nil), // 0: controller.storage.credential.store.v1.Store
(*Library)(nil), // 1: controller.storage.credential.store.v1.Library
(*Credential)(nil), // 2: controller.storage.credential.store.v1.Credential
@@ -393,7 +393,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Store); i {
case 0:
return &v.state
@@ -405,7 +405,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Library); i {
case 0:
return &v.state
@@ -417,7 +417,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -429,7 +429,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Static); i {
case 0:
return &v.state
@@ -441,7 +441,7 @@ func file_controller_storage_credential_store_v1_credential_proto_init() {
return nil
}
}
file_controller_storage_credential_store_v1_credential_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_store_v1_credential_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*Dynamic); i {
case 0:
return &v.state
+10 -10
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/credential/vault/store/v1/vault.proto
@@ -1513,7 +1513,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_rawDescGZIP()
}
var file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_controller_storage_credential_vault_store_v1_vault_proto_goTypes = []interface{}{
var file_controller_storage_credential_vault_store_v1_vault_proto_goTypes = []any{
(*CredentialStore)(nil), // 0: controller.storage.credential.vault.store.v1.CredentialStore
(*Token)(nil), // 1: controller.storage.credential.vault.store.v1.Token
(*ClientCertificate)(nil), // 2: controller.storage.credential.vault.store.v1.ClientCertificate
@@ -1553,7 +1553,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*CredentialStore); i {
case 0:
return &v.state
@@ -1565,7 +1565,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Token); i {
case 0:
return &v.state
@@ -1577,7 +1577,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ClientCertificate); i {
case 0:
return &v.state
@@ -1589,7 +1589,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*CredentialLibrary); i {
case 0:
return &v.state
@@ -1601,7 +1601,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*SSHCertificateCredentialLibrary); i {
case 0:
return &v.state
@@ -1613,7 +1613,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -1625,7 +1625,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePasswordOverride); i {
case 0:
return &v.state
@@ -1637,7 +1637,7 @@ func file_controller_storage_credential_vault_store_v1_vault_proto_init() {
return nil
}
}
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_credential_vault_store_v1_vault_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKeyOverride); i {
case 0:
return &v.state
@@ -30,7 +30,6 @@ type UpstreamMessageHandler interface {
// Handler for the request. All errors returned must be a error created
// using google.golang.org/grpc/status
Handler(ctx context.Context, request proto.Message) (response proto.Message, statusErr error)
UpstreamMessageTypeSpecifier
}
@@ -63,11 +63,9 @@ type Session interface {
// in the SessionJobInfo are not present, however, it still applies the
// status change to the session and the connections which are present.
ApplyLocalStatus(st pbs.SESSIONSTATUS)
GetStatus() pbs.SESSIONSTATUS
// GetLocalConnections returns the connections this session is handling.
GetLocalConnections() map[string]ConnInfo
GetTofuToken() string
GetConnectionLimit() int32
GetEndpoint() string
+2 -2
View File
@@ -75,7 +75,7 @@ func (w *changeSafeDbwWriter) Create(ctx context.Context, i any, opt ...dbw.Opti
return dbw.New(w.db.underlying.wrapped.Load()).Create(ctx, i, opt...)
}
func (w *changeSafeDbwWriter) CreateItems(ctx context.Context, createItems []any, opt ...dbw.Option) error {
func (w *changeSafeDbwWriter) CreateItems(ctx context.Context, createItems any, opt ...dbw.Option) error {
return dbw.New(w.db.underlying.wrapped.Load()).CreateItems(ctx, createItems, opt...)
}
@@ -83,7 +83,7 @@ func (w *changeSafeDbwWriter) Delete(ctx context.Context, i any, opt ...dbw.Opti
return dbw.New(w.db.underlying.wrapped.Load()).Delete(ctx, i, opt...)
}
func (w *changeSafeDbwWriter) DeleteItems(ctx context.Context, deleteItems []any, opt ...dbw.Option) (int, error) {
func (w *changeSafeDbwWriter) DeleteItems(ctx context.Context, deleteItems any, opt ...dbw.Option) (int, error) {
return dbw.New(w.db.underlying.wrapped.Load()).DeleteItems(ctx, deleteItems, opt...)
}
+8 -8
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/db/db_test/v1/db_test.proto
@@ -699,7 +699,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_rawDescGZIP() []byte {
}
var file_controller_storage_db_db_test_v1_db_test_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []interface{}{
var file_controller_storage_db_db_test_v1_db_test_proto_goTypes = []any{
(*StoreTestUser)(nil), // 0: controller.storage.db.db_test.v1.StoreTestUser
(*StoreTestCar)(nil), // 1: controller.storage.db.db_test.v1.StoreTestCar
(*StoreTestRental)(nil), // 2: controller.storage.db.db_test.v1.StoreTestRental
@@ -730,7 +730,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestUser); i {
case 0:
return &v.state
@@ -742,7 +742,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestCar); i {
case 0:
return &v.state
@@ -754,7 +754,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestRental); i {
case 0:
return &v.state
@@ -766,7 +766,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestScooter); i {
case 0:
return &v.state
@@ -778,7 +778,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestAccessory); i {
case 0:
return &v.state
@@ -790,7 +790,7 @@ func file_controller_storage_db_db_test_v1_db_test_proto_init() {
return nil
}
}
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_db_db_test_v1_db_test_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*StoreTestScooterAccessory); i {
case 0:
return &v.state
+4 -4
View File
@@ -112,7 +112,7 @@ type Writer interface {
// cycle of the writer and if an error is returned the caller must decide
// what to do with the transaction, which almost always should be to
// rollback.
CreateItems(ctx context.Context, createItems []any, opt ...Option) error
CreateItems(ctx context.Context, createItems any, opt ...Option) error
// Delete an object in the db with options: WithOplog, WithDebug.
// The caller is responsible for the transaction life cycle of the writer
@@ -127,7 +127,7 @@ type Writer interface {
// transaction life cycle of the writer and if an error is returned the
// caller must decide what to do with the transaction, which almost always
// should be to rollback. Delete returns the number of rows deleted or an error.
DeleteItems(ctx context.Context, deleteItems []any, opt ...Option) (int, error)
DeleteItems(ctx context.Context, deleteItems any, opt ...Option) (int, error)
// Exec will execute the sql with the values as parameters. The int returned
// is the number of rows affected by the sql. No options are currently
@@ -311,7 +311,7 @@ func (rw *Db) Create(ctx context.Context, i any, opt ...Option) error {
// WithDebug, WithOplog, WithOplogMsgs, WithReturnRowsAffected, OnConflict,
// WithVersion, and WithWhere WithOplog and WithOplogMsgs may not be used
// together. WithLookup is not a supported option.
func (rw *Db) CreateItems(ctx context.Context, createItems []any, opt ...Option) error {
func (rw *Db) CreateItems(ctx context.Context, createItems any, opt ...Option) error {
const op = "db.CreateItems"
if rw.underlying == nil {
return errors.New(ctx, errors.InvalidParameter, op, "missing underlying db")
@@ -389,7 +389,7 @@ func (rw *Db) Delete(ctx context.Context, i any, opt ...Option) (int, error) {
// DeleteItems will delete multiple items of the same type. Supported options:
// WithOplog and WithOplogMsgs. WithOplog and WithOplogMsgs may not be used
// together.
func (rw *Db) DeleteItems(ctx context.Context, deleteItems []any, opt ...Option) (int, error) {
func (rw *Db) DeleteItems(ctx context.Context, deleteItems any, opt ...Option) (int, error) {
const op = "db.DeleteItems"
if rw.underlying == nil {
return NoRowsAffected, errors.New(ctx, errors.InvalidParameter, op, "missing underlying db")
+1 -1
View File
@@ -219,7 +219,7 @@ func TestDb_Create_OnConflict(t *testing.T) {
Target: db.Constraint("db_test_user_public_id_key"),
Action: db.SetColumns([]string{"name"}),
}
users := []any{}
users := []*db_test.TestUser{}
users = append(users, conflictUser)
var rowsAffected int64
err = rw.CreateItems(ctx, users, db.WithOnConflict(&onConflict), db.WithOplog(oplogWrapper, md), db.WithReturnRowsAffected(&rowsAffected))
+1 -1
View File
@@ -108,7 +108,7 @@ func (rw *Db) generateOplogBeforeAfterOpts(ctx context.Context, i any, opType Op
case withOplog && (opType == CreateItemsOp || opType == DeleteItemsOp):
afterFn = func(i any, rowsAffected int) error {
const op = "db.afterFnMultiItem"
err := rw.addOplogForItems(ctx, opType, opts, ticket, i.([]any))
err := rw.addOplogForItems(ctx, opType, opts, ticket, items)
if err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("returning oplog msgs failed"))
}
+12 -14
View File
@@ -1682,8 +1682,8 @@ func TestDb_CreateItems(t *testing.T) {
oplogWrapper := TestOplogWrapper(t, db)
testOplogResourceId := testId(t)
createFn := func() []any {
results := []any{}
createFn := func() []*db_test.TestUser {
results := []*db_test.TestUser{}
for i := 0; i < 10; i++ {
u, err := db_test.NewTestUser()
require.NoError(t, err)
@@ -1705,7 +1705,7 @@ func TestDb_CreateItems(t *testing.T) {
returnedMsgs := []*oplog.Message{}
type args struct {
createItems []any
createItems any
opt []Option
}
tests := []struct {
@@ -1865,21 +1865,19 @@ func TestDb_CreateItems(t *testing.T) {
return
}
require.NoError(err)
for _, item := range tt.args.createItems {
for _, item := range tt.args.createItems.([]*db_test.TestUser) {
u := db_test.AllocTestUser()
u.PublicId = item.(*db_test.TestUser).PublicId
u.PublicId = item.PublicId
err := rw.LookupByPublicId(context.Background(), &u)
assert.NoError(err)
if _, ok := item.(*db_test.TestUser); ok {
assert.Truef(proto.Equal(item.(*db_test.TestUser).StoreTestUser, u.StoreTestUser), "%s and %s should be equal", item, u)
}
assert.Truef(proto.Equal(item.StoreTestUser, u.StoreTestUser), "%s and %s should be equal", item, u)
}
if tt.wantOplogId != "" {
err = TestVerifyOplog(t, rw, tt.wantOplogId, WithOperation(oplog.OpType_OP_TYPE_CREATE), WithCreateNotBefore(10*time.Second))
assert.NoError(err)
}
if tt.wantOplogMsgs {
assert.Equal(len(tt.args.createItems), len(returnedMsgs))
assert.Equal(len(tt.args.createItems.([]*db_test.TestUser)), len(returnedMsgs))
for _, m := range returnedMsgs {
assert.Equal(m.OpType, oplog.OpType_OP_TYPE_CREATE)
}
@@ -1894,8 +1892,8 @@ func TestDb_DeleteItems(t *testing.T) {
oplogWrapper := TestOplogWrapper(t, db)
testOplogResourceId := testId(t)
createFn := func() []any {
results := []any{}
createFn := func() []*db_test.TestUser {
results := []*db_test.TestUser{}
for i := 0; i < 10; i++ {
u := testUser(t, db, "", "", "")
results = append(results, u)
@@ -1906,7 +1904,7 @@ func TestDb_DeleteItems(t *testing.T) {
returnedMsgs := []*oplog.Message{}
type args struct {
deleteItems []any
deleteItems []*db_test.TestUser
opt []Option
}
tests := []struct {
@@ -2034,7 +2032,7 @@ func TestDb_DeleteItems(t *testing.T) {
name: "empty items",
underlying: db,
args: args{
deleteItems: []any{},
deleteItems: []*db_test.TestUser{},
},
wantErr: true,
wantErrIs: errors.InvalidParameter,
@@ -2063,7 +2061,7 @@ func TestDb_DeleteItems(t *testing.T) {
assert.Equal(tt.wantRowsDeleted, rowsDeleted)
for _, item := range tt.args.deleteItems {
u := db_test.AllocTestUser()
u.PublicId = item.(*db_test.TestUser).PublicId
u.PublicId = item.PublicId
err := rw.LookupByPublicId(context.Background(), &u)
require.Error(err)
require.Truef(errors.Match(errors.T(errors.RecordNotFound), err), "found item %s that should be deleted", u.PublicId)
@@ -222,7 +222,7 @@ values
require.NoError(err)
// Add items to insert
var items []any
var items []*host.PreferredEndpoint
for _, cond := range tt.conditions {
ep := host.AllocPreferredEndpoint()
ep.HostSetId = tt.hostSetId
@@ -474,6 +474,7 @@ type dek struct {
CreateTime time.Time
Purpose string
}
type dekVersion struct {
PrivateId string
DataKeyId string
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/timestamp/v1/timestamp.proto
@@ -111,7 +111,7 @@ func file_controller_storage_timestamp_v1_timestamp_proto_rawDescGZIP() []byte {
}
var file_controller_storage_timestamp_v1_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []interface{}{
var file_controller_storage_timestamp_v1_timestamp_proto_goTypes = []any{
(*Timestamp)(nil), // 0: controller.storage.timestamp.v1.Timestamp
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
@@ -130,7 +130,7 @@ func file_controller_storage_timestamp_v1_timestamp_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_timestamp_v1_timestamp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_timestamp_v1_timestamp_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Timestamp); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/v1/empty_msg.proto
@@ -89,7 +89,7 @@ func file_controller_api_v1_empty_msg_proto_rawDescGZIP() []byte {
}
var file_controller_api_v1_empty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_v1_empty_msg_proto_goTypes = []interface{}{
var file_controller_api_v1_empty_msg_proto_goTypes = []any{
(*EmptyResponse)(nil), // 0: controller.api.v1.EmptyResponse
}
var file_controller_api_v1_empty_msg_proto_depIdxs = []int32{
@@ -106,7 +106,7 @@ func file_controller_api_v1_empty_msg_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_v1_empty_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_empty_msg_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*EmptyResponse); i {
case 0:
return &v.state
+6 -6
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/v1/error.proto
@@ -325,7 +325,7 @@ func file_controller_api_v1_error_proto_rawDescGZIP() []byte {
}
var file_controller_api_v1_error_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_v1_error_proto_goTypes = []interface{}{
var file_controller_api_v1_error_proto_goTypes = []any{
(*WrappedError)(nil), // 0: controller.api.v1.WrappedError
(*ErrorDetails)(nil), // 1: controller.api.v1.ErrorDetails
(*FieldError)(nil), // 2: controller.api.v1.FieldError
@@ -348,7 +348,7 @@ func file_controller_api_v1_error_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_v1_error_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*WrappedError); i {
case 0:
return &v.state
@@ -360,7 +360,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ErrorDetails); i {
case 0:
return &v.state
@@ -372,7 +372,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*FieldError); i {
case 0:
return &v.state
@@ -384,7 +384,7 @@ func file_controller_api_v1_error_proto_init() {
return nil
}
}
file_controller_api_v1_error_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_v1_error_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Error); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/account_service.proto
@@ -1095,7 +1095,7 @@ func file_controller_api_services_v1_account_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_api_services_v1_account_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_account_service_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: controller.api.services.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: controller.api.services.v1.GetAccountResponse
(*ListAccountsRequest)(nil), // 2: controller.api.services.v1.ListAccountsRequest
@@ -1150,7 +1150,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountRequest); i {
case 0:
return &v.state
@@ -1162,7 +1162,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountResponse); i {
case 0:
return &v.state
@@ -1174,7 +1174,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsRequest); i {
case 0:
return &v.state
@@ -1186,7 +1186,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsResponse); i {
case 0:
return &v.state
@@ -1198,7 +1198,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountRequest); i {
case 0:
return &v.state
@@ -1210,7 +1210,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountResponse); i {
case 0:
return &v.state
@@ -1222,7 +1222,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountRequest); i {
case 0:
return &v.state
@@ -1234,7 +1234,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountResponse); i {
case 0:
return &v.state
@@ -1246,7 +1246,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountRequest); i {
case 0:
return &v.state
@@ -1258,7 +1258,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountResponse); i {
case 0:
return &v.state
@@ -1270,7 +1270,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordRequest); i {
case 0:
return &v.state
@@ -1282,7 +1282,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordResponse); i {
case 0:
return &v.state
@@ -1294,7 +1294,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordRequest); i {
case 0:
return &v.state
@@ -1306,7 +1306,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/alias_service.proto
@@ -810,7 +810,7 @@ func file_controller_api_services_v1_alias_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_alias_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_alias_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_alias_service_proto_goTypes = []any{
(*GetAliasRequest)(nil), // 0: controller.api.services.v1.GetAliasRequest
(*GetAliasResponse)(nil), // 1: controller.api.services.v1.GetAliasResponse
(*ListAliasesRequest)(nil), // 2: controller.api.services.v1.ListAliasesRequest
@@ -855,7 +855,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_alias_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAliasRequest); i {
case 0:
return &v.state
@@ -867,7 +867,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAliasResponse); i {
case 0:
return &v.state
@@ -879,7 +879,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAliasesRequest); i {
case 0:
return &v.state
@@ -891,7 +891,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAliasesResponse); i {
case 0:
return &v.state
@@ -903,7 +903,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAliasRequest); i {
case 0:
return &v.state
@@ -915,7 +915,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAliasResponse); i {
case 0:
return &v.state
@@ -927,7 +927,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAliasRequest); i {
case 0:
return &v.state
@@ -939,7 +939,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAliasResponse); i {
case 0:
return &v.state
@@ -951,7 +951,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAliasRequest); i {
case 0:
return &v.state
@@ -963,7 +963,7 @@ func file_controller_api_services_v1_alias_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_alias_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_alias_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAliasResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/auth_method_service.proto
@@ -1897,7 +1897,7 @@ func file_controller_api_services_v1_auth_method_service_proto_rawDescGZIP() []b
}
var file_controller_api_services_v1_auth_method_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_controller_api_services_v1_auth_method_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_auth_method_service_proto_goTypes = []any{
(*GetAuthMethodRequest)(nil), // 0: controller.api.services.v1.GetAuthMethodRequest
(*GetAuthMethodResponse)(nil), // 1: controller.api.services.v1.GetAuthMethodResponse
(*ListAuthMethodsRequest)(nil), // 2: controller.api.services.v1.ListAuthMethodsRequest
@@ -1976,7 +1976,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthMethodRequest); i {
case 0:
return &v.state
@@ -1988,7 +1988,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthMethodResponse); i {
case 0:
return &v.state
@@ -2000,7 +2000,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthMethodsRequest); i {
case 0:
return &v.state
@@ -2012,7 +2012,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthMethodsResponse); i {
case 0:
return &v.state
@@ -2024,7 +2024,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAuthMethodRequest); i {
case 0:
return &v.state
@@ -2036,7 +2036,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAuthMethodResponse); i {
case 0:
return &v.state
@@ -2048,7 +2048,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAuthMethodRequest); i {
case 0:
return &v.state
@@ -2060,7 +2060,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAuthMethodResponse); i {
case 0:
return &v.state
@@ -2072,7 +2072,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthMethodRequest); i {
case 0:
return &v.state
@@ -2084,7 +2084,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthMethodResponse); i {
case 0:
return &v.state
@@ -2096,7 +2096,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*OidcChangeStateAttributes); i {
case 0:
return &v.state
@@ -2108,7 +2108,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ChangeStateRequest); i {
case 0:
return &v.state
@@ -2120,7 +2120,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ChangeStateResponse); i {
case 0:
return &v.state
@@ -2132,7 +2132,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*PasswordLoginAttributes); i {
case 0:
return &v.state
@@ -2144,7 +2144,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*OidcStartAttributes); i {
case 0:
return &v.state
@@ -2156,7 +2156,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*LdapLoginAttributes); i {
case 0:
return &v.state
@@ -2168,7 +2168,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AuthenticateRequest); i {
case 0:
return &v.state
@@ -2180,7 +2180,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AuthenticateResponse); i {
case 0:
return &v.state
@@ -2193,11 +2193,11 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
}
}
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[11].OneofWrappers = []any{
(*ChangeStateRequest_Attributes)(nil),
(*ChangeStateRequest_OidcChangeStateAttributes)(nil),
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[16].OneofWrappers = []any{
(*AuthenticateRequest_Attributes)(nil),
(*AuthenticateRequest_PasswordLoginAttributes)(nil),
(*AuthenticateRequest_OidcStartAttributes)(nil),
@@ -2205,7 +2205,7 @@ func file_controller_api_services_v1_auth_method_service_proto_init() {
(*AuthenticateRequest_OidcAuthMethodAuthenticateTokenRequest)(nil),
(*AuthenticateRequest_LdapLoginAttributes)(nil),
}
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].OneofWrappers = []interface{}{
file_controller_api_services_v1_auth_method_service_proto_msgTypes[17].OneofWrappers = []any{
(*AuthenticateResponse_Attributes)(nil),
(*AuthenticateResponse_OidcAuthMethodAuthenticateStartResponse)(nil),
(*AuthenticateResponse_OidcAuthMethodAuthenticateCallbackResponse)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/authtokens_service.proto
@@ -536,7 +536,7 @@ func file_controller_api_services_v1_authtokens_service_proto_rawDescGZIP() []by
}
var file_controller_api_services_v1_authtokens_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_authtokens_service_proto_goTypes = []any{
(*GetAuthTokenRequest)(nil), // 0: controller.api.services.v1.GetAuthTokenRequest
(*GetAuthTokenResponse)(nil), // 1: controller.api.services.v1.GetAuthTokenResponse
(*ListAuthTokensRequest)(nil), // 2: controller.api.services.v1.ListAuthTokensRequest
@@ -567,7 +567,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthTokenRequest); i {
case 0:
return &v.state
@@ -579,7 +579,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAuthTokenResponse); i {
case 0:
return &v.state
@@ -591,7 +591,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthTokensRequest); i {
case 0:
return &v.state
@@ -603,7 +603,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAuthTokensResponse); i {
case 0:
return &v.state
@@ -615,7 +615,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthTokenRequest); i {
case 0:
return &v.state
@@ -627,7 +627,7 @@ func file_controller_api_services_v1_authtokens_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_authtokens_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_authtokens_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAuthTokenResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/billing_service.proto
@@ -201,7 +201,7 @@ func file_controller_api_services_v1_billing_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_billing_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_services_v1_billing_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_billing_service_proto_goTypes = []any{
(*MonthlyActiveUsersRequest)(nil), // 0: controller.api.services.v1.MonthlyActiveUsersRequest
(*MonthlyActiveUsersResponse)(nil), // 1: controller.api.services.v1.MonthlyActiveUsersResponse
(*billing.ActiveUsers)(nil), // 2: controller.api.resources.billing.v1.ActiveUsers
@@ -223,7 +223,7 @@ func file_controller_api_services_v1_billing_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_billing_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_billing_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*MonthlyActiveUsersRequest); i {
case 0:
return &v.state
@@ -235,7 +235,7 @@ func file_controller_api_services_v1_billing_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_billing_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_billing_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*MonthlyActiveUsersResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_library_service.proto
@@ -844,7 +844,7 @@ func file_controller_api_services_v1_credential_library_service_proto_rawDescGZI
}
var file_controller_api_services_v1_credential_library_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_library_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_library_service_proto_goTypes = []any{
(*GetCredentialLibraryRequest)(nil), // 0: controller.api.services.v1.GetCredentialLibraryRequest
(*GetCredentialLibraryResponse)(nil), // 1: controller.api.services.v1.GetCredentialLibraryResponse
(*ListCredentialLibrariesRequest)(nil), // 2: controller.api.services.v1.ListCredentialLibrariesRequest
@@ -889,7 +889,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -901,7 +901,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -913,7 +913,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialLibrariesRequest); i {
case 0:
return &v.state
@@ -925,7 +925,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialLibrariesResponse); i {
case 0:
return &v.state
@@ -937,7 +937,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -949,7 +949,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -961,7 +961,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -973,7 +973,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -985,7 +985,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialLibraryRequest); i {
case 0:
return &v.state
@@ -997,7 +997,7 @@ func file_controller_api_services_v1_credential_library_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_library_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_library_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialLibraryResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_service.proto
@@ -811,7 +811,7 @@ func file_controller_api_services_v1_credential_service_proto_rawDescGZIP() []by
}
var file_controller_api_services_v1_credential_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_service_proto_goTypes = []any{
(*GetCredentialRequest)(nil), // 0: controller.api.services.v1.GetCredentialRequest
(*GetCredentialResponse)(nil), // 1: controller.api.services.v1.GetCredentialResponse
(*ListCredentialsRequest)(nil), // 2: controller.api.services.v1.ListCredentialsRequest
@@ -856,7 +856,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialRequest); i {
case 0:
return &v.state
@@ -868,7 +868,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialResponse); i {
case 0:
return &v.state
@@ -880,7 +880,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialsRequest); i {
case 0:
return &v.state
@@ -892,7 +892,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialsResponse); i {
case 0:
return &v.state
@@ -904,7 +904,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialRequest); i {
case 0:
return &v.state
@@ -916,7 +916,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialResponse); i {
case 0:
return &v.state
@@ -928,7 +928,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialRequest); i {
case 0:
return &v.state
@@ -940,7 +940,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialResponse); i {
case 0:
return &v.state
@@ -952,7 +952,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialRequest); i {
case 0:
return &v.state
@@ -964,7 +964,7 @@ func file_controller_api_services_v1_credential_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/credential_store_service.proto
@@ -838,7 +838,7 @@ func file_controller_api_services_v1_credential_store_service_proto_rawDescGZIP(
}
var file_controller_api_services_v1_credential_store_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_credential_store_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_credential_store_service_proto_goTypes = []any{
(*GetCredentialStoreRequest)(nil), // 0: controller.api.services.v1.GetCredentialStoreRequest
(*GetCredentialStoreResponse)(nil), // 1: controller.api.services.v1.GetCredentialStoreResponse
(*ListCredentialStoresRequest)(nil), // 2: controller.api.services.v1.ListCredentialStoresRequest
@@ -883,7 +883,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialStoreRequest); i {
case 0:
return &v.state
@@ -895,7 +895,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetCredentialStoreResponse); i {
case 0:
return &v.state
@@ -907,7 +907,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialStoresRequest); i {
case 0:
return &v.state
@@ -919,7 +919,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListCredentialStoresResponse); i {
case 0:
return &v.state
@@ -931,7 +931,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialStoreRequest); i {
case 0:
return &v.state
@@ -943,7 +943,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateCredentialStoreResponse); i {
case 0:
return &v.state
@@ -955,7 +955,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialStoreRequest); i {
case 0:
return &v.state
@@ -967,7 +967,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateCredentialStoreResponse); i {
case 0:
return &v.state
@@ -979,7 +979,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialStoreRequest); i {
case 0:
return &v.state
@@ -991,7 +991,7 @@ func file_controller_api_services_v1_credential_store_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_credential_store_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_credential_store_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteCredentialStoreResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/doc.proto
@@ -288,7 +288,7 @@ var file_controller_api_services_v1_doc_proto_rawDesc = []byte{
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_controller_api_services_v1_doc_proto_goTypes = []interface{}{}
var file_controller_api_services_v1_doc_proto_goTypes = []any{}
var file_controller_api_services_v1_doc_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/group_service.proto
@@ -1212,7 +1212,7 @@ func file_controller_api_services_v1_group_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_group_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_group_service_proto_goTypes = []any{
(*GetGroupRequest)(nil), // 0: controller.api.services.v1.GetGroupRequest
(*GetGroupResponse)(nil), // 1: controller.api.services.v1.GetGroupResponse
(*ListGroupsRequest)(nil), // 2: controller.api.services.v1.ListGroupsRequest
@@ -1272,7 +1272,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetGroupRequest); i {
case 0:
return &v.state
@@ -1284,7 +1284,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetGroupResponse); i {
case 0:
return &v.state
@@ -1296,7 +1296,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListGroupsRequest); i {
case 0:
return &v.state
@@ -1308,7 +1308,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListGroupsResponse); i {
case 0:
return &v.state
@@ -1320,7 +1320,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateGroupRequest); i {
case 0:
return &v.state
@@ -1332,7 +1332,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateGroupResponse); i {
case 0:
return &v.state
@@ -1344,7 +1344,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateGroupRequest); i {
case 0:
return &v.state
@@ -1356,7 +1356,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateGroupResponse); i {
case 0:
return &v.state
@@ -1368,7 +1368,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteGroupRequest); i {
case 0:
return &v.state
@@ -1380,7 +1380,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteGroupResponse); i {
case 0:
return &v.state
@@ -1392,7 +1392,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddGroupMembersRequest); i {
case 0:
return &v.state
@@ -1404,7 +1404,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddGroupMembersResponse); i {
case 0:
return &v.state
@@ -1416,7 +1416,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetGroupMembersRequest); i {
case 0:
return &v.state
@@ -1428,7 +1428,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetGroupMembersResponse); i {
case 0:
return &v.state
@@ -1440,7 +1440,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveGroupMembersRequest); i {
case 0:
return &v.state
@@ -1452,7 +1452,7 @@ func file_controller_api_services_v1_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_group_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_group_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveGroupMembersResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_catalog_service.proto
@@ -834,7 +834,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_rawDescGZIP() []
}
var file_controller_api_services_v1_host_catalog_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_catalog_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_catalog_service_proto_goTypes = []any{
(*GetHostCatalogRequest)(nil), // 0: controller.api.services.v1.GetHostCatalogRequest
(*GetHostCatalogResponse)(nil), // 1: controller.api.services.v1.GetHostCatalogResponse
(*ListHostCatalogsRequest)(nil), // 2: controller.api.services.v1.ListHostCatalogsRequest
@@ -879,7 +879,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostCatalogRequest); i {
case 0:
return &v.state
@@ -891,7 +891,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostCatalogResponse); i {
case 0:
return &v.state
@@ -903,7 +903,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostCatalogsRequest); i {
case 0:
return &v.state
@@ -915,7 +915,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostCatalogsResponse); i {
case 0:
return &v.state
@@ -927,7 +927,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostCatalogRequest); i {
case 0:
return &v.state
@@ -939,7 +939,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostCatalogResponse); i {
case 0:
return &v.state
@@ -951,7 +951,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostCatalogRequest); i {
case 0:
return &v.state
@@ -963,7 +963,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostCatalogResponse); i {
case 0:
return &v.state
@@ -975,7 +975,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostCatalogRequest); i {
case 0:
return &v.state
@@ -987,7 +987,7 @@ func file_controller_api_services_v1_host_catalog_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_catalog_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostCatalogResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_service.proto
@@ -788,7 +788,7 @@ func file_controller_api_services_v1_host_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_host_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_host_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_service_proto_goTypes = []any{
(*GetHostRequest)(nil), // 0: controller.api.services.v1.GetHostRequest
(*GetHostResponse)(nil), // 1: controller.api.services.v1.GetHostResponse
(*ListHostsRequest)(nil), // 2: controller.api.services.v1.ListHostsRequest
@@ -833,7 +833,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostRequest); i {
case 0:
return &v.state
@@ -845,7 +845,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostResponse); i {
case 0:
return &v.state
@@ -857,7 +857,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostsRequest); i {
case 0:
return &v.state
@@ -869,7 +869,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostsResponse); i {
case 0:
return &v.state
@@ -881,7 +881,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostRequest); i {
case 0:
return &v.state
@@ -893,7 +893,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostResponse); i {
case 0:
return &v.state
@@ -905,7 +905,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostRequest); i {
case 0:
return &v.state
@@ -917,7 +917,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostResponse); i {
case 0:
return &v.state
@@ -929,7 +929,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostRequest); i {
case 0:
return &v.state
@@ -941,7 +941,7 @@ func file_controller_api_services_v1_host_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/host_set_service.proto
@@ -1215,7 +1215,7 @@ func file_controller_api_services_v1_host_set_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_host_set_service_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_controller_api_services_v1_host_set_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_host_set_service_proto_goTypes = []any{
(*GetHostSetRequest)(nil), // 0: controller.api.services.v1.GetHostSetRequest
(*GetHostSetResponse)(nil), // 1: controller.api.services.v1.GetHostSetResponse
(*ListHostSetsRequest)(nil), // 2: controller.api.services.v1.ListHostSetsRequest
@@ -1275,7 +1275,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_host_set_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHostSetRequest); i {
case 0:
return &v.state
@@ -1287,7 +1287,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHostSetResponse); i {
case 0:
return &v.state
@@ -1299,7 +1299,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListHostSetsRequest); i {
case 0:
return &v.state
@@ -1311,7 +1311,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListHostSetsResponse); i {
case 0:
return &v.state
@@ -1323,7 +1323,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostSetRequest); i {
case 0:
return &v.state
@@ -1335,7 +1335,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateHostSetResponse); i {
case 0:
return &v.state
@@ -1347,7 +1347,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostSetRequest); i {
case 0:
return &v.state
@@ -1359,7 +1359,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateHostSetResponse); i {
case 0:
return &v.state
@@ -1371,7 +1371,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostSetRequest); i {
case 0:
return &v.state
@@ -1383,7 +1383,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteHostSetResponse); i {
case 0:
return &v.state
@@ -1395,7 +1395,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1407,7 +1407,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddHostSetHostsResponse); i {
case 0:
return &v.state
@@ -1419,7 +1419,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1431,7 +1431,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetHostSetHostsResponse); i {
case 0:
return &v.state
@@ -1443,7 +1443,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveHostSetHostsRequest); i {
case 0:
return &v.state
@@ -1455,7 +1455,7 @@ func file_controller_api_services_v1_host_set_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_host_set_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_host_set_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveHostSetHostsResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/list.proto
@@ -633,7 +633,7 @@ func file_controller_api_services_v1_list_proto_rawDescGZIP() []byte {
var file_controller_api_services_v1_list_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_controller_api_services_v1_list_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_api_services_v1_list_proto_goTypes = []interface{}{
var file_controller_api_services_v1_list_proto_goTypes = []any{
(ResourceType)(0), // 0: controller.api.services.v1.ResourceType
(*ListToken)(nil), // 1: controller.api.services.v1.ListToken
(*PaginationToken)(nil), // 2: controller.api.services.v1.PaginationToken
@@ -667,7 +667,7 @@ func file_controller_api_services_v1_list_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_list_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*ListToken); i {
case 0:
return &v.state
@@ -679,7 +679,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*PaginationToken); i {
case 0:
return &v.state
@@ -691,7 +691,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*StartRefreshToken); i {
case 0:
return &v.state
@@ -703,7 +703,7 @@ func file_controller_api_services_v1_list_proto_init() {
return nil
}
}
file_controller_api_services_v1_list_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_list_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*RefreshToken); i {
case 0:
return &v.state
@@ -716,7 +716,7 @@ func file_controller_api_services_v1_list_proto_init() {
}
}
}
file_controller_api_services_v1_list_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_api_services_v1_list_proto_msgTypes[0].OneofWrappers = []any{
(*ListToken_PaginationToken)(nil),
(*ListToken_StartRefreshToken)(nil),
(*ListToken_RefreshToken)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/managed_group_service.proto
@@ -818,7 +818,7 @@ func file_controller_api_services_v1_managed_group_service_proto_rawDescGZIP() [
}
var file_controller_api_services_v1_managed_group_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_managed_group_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_managed_group_service_proto_goTypes = []any{
(*GetManagedGroupRequest)(nil), // 0: controller.api.services.v1.GetManagedGroupRequest
(*GetManagedGroupResponse)(nil), // 1: controller.api.services.v1.GetManagedGroupResponse
(*ListManagedGroupsRequest)(nil), // 2: controller.api.services.v1.ListManagedGroupsRequest
@@ -863,7 +863,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetManagedGroupRequest); i {
case 0:
return &v.state
@@ -875,7 +875,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetManagedGroupResponse); i {
case 0:
return &v.state
@@ -887,7 +887,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListManagedGroupsRequest); i {
case 0:
return &v.state
@@ -899,7 +899,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListManagedGroupsResponse); i {
case 0:
return &v.state
@@ -911,7 +911,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateManagedGroupRequest); i {
case 0:
return &v.state
@@ -923,7 +923,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateManagedGroupResponse); i {
case 0:
return &v.state
@@ -935,7 +935,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateManagedGroupRequest); i {
case 0:
return &v.state
@@ -947,7 +947,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateManagedGroupResponse); i {
case 0:
return &v.state
@@ -959,7 +959,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteManagedGroupRequest); i {
case 0:
return &v.state
@@ -971,7 +971,7 @@ func file_controller_api_services_v1_managed_group_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_managed_group_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_managed_group_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteManagedGroupResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/policy_service.proto
@@ -802,7 +802,7 @@ func file_controller_api_services_v1_policy_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_policy_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_policy_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_policy_service_proto_goTypes = []any{
(*GetPolicyRequest)(nil), // 0: controller.api.services.v1.GetPolicyRequest
(*GetPolicyResponse)(nil), // 1: controller.api.services.v1.GetPolicyResponse
(*ListPoliciesRequest)(nil), // 2: controller.api.services.v1.ListPoliciesRequest
@@ -847,7 +847,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_policy_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetPolicyRequest); i {
case 0:
return &v.state
@@ -859,7 +859,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetPolicyResponse); i {
case 0:
return &v.state
@@ -871,7 +871,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListPoliciesRequest); i {
case 0:
return &v.state
@@ -883,7 +883,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListPoliciesResponse); i {
case 0:
return &v.state
@@ -895,7 +895,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreatePolicyRequest); i {
case 0:
return &v.state
@@ -907,7 +907,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreatePolicyResponse); i {
case 0:
return &v.state
@@ -919,7 +919,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdatePolicyRequest); i {
case 0:
return &v.state
@@ -931,7 +931,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdatePolicyResponse); i {
case 0:
return &v.state
@@ -943,7 +943,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeletePolicyRequest); i {
case 0:
return &v.state
@@ -955,7 +955,7 @@ func file_controller_api_services_v1_policy_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_policy_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_policy_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeletePolicyResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/role_service.proto
@@ -2045,7 +2045,7 @@ func file_controller_api_services_v1_role_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
var file_controller_api_services_v1_role_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_role_service_proto_goTypes = []any{
(*GetRoleRequest)(nil), // 0: controller.api.services.v1.GetRoleRequest
(*GetRoleResponse)(nil), // 1: controller.api.services.v1.GetRoleResponse
(*ListRolesRequest)(nil), // 2: controller.api.services.v1.ListRolesRequest
@@ -2135,7 +2135,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetRoleRequest); i {
case 0:
return &v.state
@@ -2147,7 +2147,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetRoleResponse); i {
case 0:
return &v.state
@@ -2159,7 +2159,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListRolesRequest); i {
case 0:
return &v.state
@@ -2171,7 +2171,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListRolesResponse); i {
case 0:
return &v.state
@@ -2183,7 +2183,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateRoleRequest); i {
case 0:
return &v.state
@@ -2195,7 +2195,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateRoleResponse); i {
case 0:
return &v.state
@@ -2207,7 +2207,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateRoleRequest); i {
case 0:
return &v.state
@@ -2219,7 +2219,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateRoleResponse); i {
case 0:
return &v.state
@@ -2231,7 +2231,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteRoleRequest); i {
case 0:
return &v.state
@@ -2243,7 +2243,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteRoleResponse); i {
case 0:
return &v.state
@@ -2255,7 +2255,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2267,7 +2267,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2279,7 +2279,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2291,7 +2291,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2303,7 +2303,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRolePrincipalsRequest); i {
case 0:
return &v.state
@@ -2315,7 +2315,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRolePrincipalsResponse); i {
case 0:
return &v.state
@@ -2327,7 +2327,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2339,7 +2339,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2351,7 +2351,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2363,7 +2363,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2375,7 +2375,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantsRequest); i {
case 0:
return &v.state
@@ -2387,7 +2387,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantsResponse); i {
case 0:
return &v.state
@@ -2399,7 +2399,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2411,7 +2411,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*AddRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -2423,7 +2423,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[24].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2435,7 +2435,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[25].Exporter = func(v any, i int) any {
switch v := v.(*SetRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -2447,7 +2447,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[26].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantScopesRequest); i {
case 0:
return &v.state
@@ -2459,7 +2459,7 @@ func file_controller_api_services_v1_role_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_role_service_proto_msgTypes[27].Exporter = func(v any, i int) any {
switch v := v.(*RemoveRoleGrantScopesResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/scope_service.proto
@@ -1584,7 +1584,7 @@ func file_controller_api_services_v1_scope_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_scope_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
var file_controller_api_services_v1_scope_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_scope_service_proto_goTypes = []any{
(*GetScopeRequest)(nil), // 0: controller.api.services.v1.GetScopeRequest
(*GetScopeResponse)(nil), // 1: controller.api.services.v1.GetScopeResponse
(*ListScopesRequest)(nil), // 2: controller.api.services.v1.ListScopesRequest
@@ -1659,7 +1659,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_scope_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetScopeRequest); i {
case 0:
return &v.state
@@ -1671,7 +1671,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetScopeResponse); i {
case 0:
return &v.state
@@ -1683,7 +1683,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListScopesRequest); i {
case 0:
return &v.state
@@ -1695,7 +1695,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListScopesResponse); i {
case 0:
return &v.state
@@ -1707,7 +1707,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateScopeRequest); i {
case 0:
return &v.state
@@ -1719,7 +1719,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateScopeResponse); i {
case 0:
return &v.state
@@ -1731,7 +1731,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateScopeRequest); i {
case 0:
return &v.state
@@ -1743,7 +1743,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateScopeResponse); i {
case 0:
return &v.state
@@ -1755,7 +1755,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteScopeRequest); i {
case 0:
return &v.state
@@ -1767,7 +1767,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteScopeResponse); i {
case 0:
return &v.state
@@ -1779,7 +1779,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*ListKeysRequest); i {
case 0:
return &v.state
@@ -1791,7 +1791,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*ListKeysResponse); i {
case 0:
return &v.state
@@ -1803,7 +1803,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*RotateKeysRequest); i {
case 0:
return &v.state
@@ -1815,7 +1815,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*RotateKeysResponse); i {
case 0:
return &v.state
@@ -1827,7 +1827,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*ListKeyVersionDestructionJobsRequest); i {
case 0:
return &v.state
@@ -1839,7 +1839,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*ListKeyVersionDestructionJobsResponse); i {
case 0:
return &v.state
@@ -1851,7 +1851,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*DestroyKeyVersionRequest); i {
case 0:
return &v.state
@@ -1863,7 +1863,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*DestroyKeyVersionResponse); i {
case 0:
return &v.state
@@ -1875,7 +1875,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*AttachStoragePolicyRequest); i {
case 0:
return &v.state
@@ -1887,7 +1887,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*AttachStoragePolicyResponse); i {
case 0:
return &v.state
@@ -1899,7 +1899,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*DetachStoragePolicyRequest); i {
case 0:
return &v.state
@@ -1911,7 +1911,7 @@ func file_controller_api_services_v1_scope_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_scope_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_scope_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*DetachStoragePolicyResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/session_recording_service.proto
@@ -809,7 +809,7 @@ func file_controller_api_services_v1_session_recording_service_proto_rawDescGZIP
}
var file_controller_api_services_v1_session_recording_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_controller_api_services_v1_session_recording_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_session_recording_service_proto_goTypes = []any{
(*GetSessionRecordingRequest)(nil), // 0: controller.api.services.v1.GetSessionRecordingRequest
(*GetSessionRecordingResponse)(nil), // 1: controller.api.services.v1.GetSessionRecordingResponse
(*ListSessionRecordingsRequest)(nil), // 2: controller.api.services.v1.ListSessionRecordingsRequest
@@ -849,7 +849,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRecordingRequest); i {
case 0:
return &v.state
@@ -861,7 +861,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRecordingResponse); i {
case 0:
return &v.state
@@ -873,7 +873,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionRecordingsRequest); i {
case 0:
return &v.state
@@ -885,7 +885,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionRecordingsResponse); i {
case 0:
return &v.state
@@ -897,7 +897,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*DownloadRequest); i {
case 0:
return &v.state
@@ -909,7 +909,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*ReApplyStoragePolicyRequest); i {
case 0:
return &v.state
@@ -921,7 +921,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*ReApplyStoragePolicyResponse); i {
case 0:
return &v.state
@@ -933,7 +933,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*DeleteSessionRecordingRequest); i {
case 0:
return &v.state
@@ -945,7 +945,7 @@ func file_controller_api_services_v1_session_recording_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_recording_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_recording_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteSessionRecordingResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/session_service.proto
@@ -578,7 +578,7 @@ func file_controller_api_services_v1_session_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_session_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_api_services_v1_session_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_session_service_proto_goTypes = []any{
(*GetSessionRequest)(nil), // 0: controller.api.services.v1.GetSessionRequest
(*GetSessionResponse)(nil), // 1: controller.api.services.v1.GetSessionResponse
(*ListSessionsRequest)(nil), // 2: controller.api.services.v1.ListSessionsRequest
@@ -610,7 +610,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_session_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionRequest); i {
case 0:
return &v.state
@@ -622,7 +622,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetSessionResponse); i {
case 0:
return &v.state
@@ -634,7 +634,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionsRequest); i {
case 0:
return &v.state
@@ -646,7 +646,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListSessionsResponse); i {
case 0:
return &v.state
@@ -658,7 +658,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionRequest); i {
case 0:
return &v.state
@@ -670,7 +670,7 @@ func file_controller_api_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_session_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_session_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/storage_bucket_service.proto
@@ -840,7 +840,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_rawDescGZIP()
}
var file_controller_api_services_v1_storage_bucket_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_controller_api_services_v1_storage_bucket_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_storage_bucket_service_proto_goTypes = []any{
(*GetStorageBucketRequest)(nil), // 0: controller.api.services.v1.GetStorageBucketRequest
(*GetStorageBucketResponse)(nil), // 1: controller.api.services.v1.GetStorageBucketResponse
(*ListStorageBucketsRequest)(nil), // 2: controller.api.services.v1.ListStorageBucketsRequest
@@ -885,7 +885,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetStorageBucketRequest); i {
case 0:
return &v.state
@@ -897,7 +897,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetStorageBucketResponse); i {
case 0:
return &v.state
@@ -909,7 +909,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListStorageBucketsRequest); i {
case 0:
return &v.state
@@ -921,7 +921,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListStorageBucketsResponse); i {
case 0:
return &v.state
@@ -933,7 +933,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateStorageBucketRequest); i {
case 0:
return &v.state
@@ -945,7 +945,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateStorageBucketResponse); i {
case 0:
return &v.state
@@ -957,7 +957,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateStorageBucketRequest); i {
case 0:
return &v.state
@@ -969,7 +969,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateStorageBucketResponse); i {
case 0:
return &v.state
@@ -981,7 +981,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteStorageBucketRequest); i {
case 0:
return &v.state
@@ -993,7 +993,7 @@ func file_controller_api_services_v1_storage_bucket_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_storage_bucket_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteStorageBucketResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/target_service.proto
@@ -1901,7 +1901,7 @@ func file_controller_api_services_v1_target_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_target_service_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
var file_controller_api_services_v1_target_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_target_service_proto_goTypes = []any{
(*GetTargetRequest)(nil), // 0: controller.api.services.v1.GetTargetRequest
(*GetTargetResponse)(nil), // 1: controller.api.services.v1.GetTargetResponse
(*ListTargetsRequest)(nil), // 2: controller.api.services.v1.ListTargetsRequest
@@ -1982,7 +1982,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_target_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetTargetRequest); i {
case 0:
return &v.state
@@ -1994,7 +1994,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetTargetResponse); i {
case 0:
return &v.state
@@ -2006,7 +2006,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListTargetsRequest); i {
case 0:
return &v.state
@@ -2018,7 +2018,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListTargetsResponse); i {
case 0:
return &v.state
@@ -2030,7 +2030,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateTargetRequest); i {
case 0:
return &v.state
@@ -2042,7 +2042,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateTargetResponse); i {
case 0:
return &v.state
@@ -2054,7 +2054,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateTargetRequest); i {
case 0:
return &v.state
@@ -2066,7 +2066,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateTargetResponse); i {
case 0:
return &v.state
@@ -2078,7 +2078,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteTargetRequest); i {
case 0:
return &v.state
@@ -2090,7 +2090,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteTargetResponse); i {
case 0:
return &v.state
@@ -2102,7 +2102,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2114,7 +2114,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2126,7 +2126,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2138,7 +2138,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2150,7 +2150,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetHostSourcesRequest); i {
case 0:
return &v.state
@@ -2162,7 +2162,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetHostSourcesResponse); i {
case 0:
return &v.state
@@ -2174,7 +2174,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2186,7 +2186,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*AddTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2198,7 +2198,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2210,7 +2210,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*SetTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2222,7 +2222,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetCredentialSourcesRequest); i {
case 0:
return &v.state
@@ -2234,7 +2234,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*RemoveTargetCredentialSourcesResponse); i {
case 0:
return &v.state
@@ -2246,7 +2246,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeSessionRequest); i {
case 0:
return &v.state
@@ -2258,7 +2258,7 @@ func file_controller_api_services_v1_target_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_target_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_target_service_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeSessionResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/user_service.proto
@@ -1432,7 +1432,7 @@ func file_controller_api_services_v1_user_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
var file_controller_api_services_v1_user_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_user_service_proto_goTypes = []any{
(*GetUserRequest)(nil), // 0: controller.api.services.v1.GetUserRequest
(*GetUserResponse)(nil), // 1: controller.api.services.v1.GetUserResponse
(*ListUsersRequest)(nil), // 2: controller.api.services.v1.ListUsersRequest
@@ -1498,7 +1498,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetUserRequest); i {
case 0:
return &v.state
@@ -1510,7 +1510,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetUserResponse); i {
case 0:
return &v.state
@@ -1522,7 +1522,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListUsersRequest); i {
case 0:
return &v.state
@@ -1534,7 +1534,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListUsersResponse); i {
case 0:
return &v.state
@@ -1546,7 +1546,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateUserRequest); i {
case 0:
return &v.state
@@ -1558,7 +1558,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateUserResponse); i {
case 0:
return &v.state
@@ -1570,7 +1570,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateUserRequest); i {
case 0:
return &v.state
@@ -1582,7 +1582,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateUserResponse); i {
case 0:
return &v.state
@@ -1594,7 +1594,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteUserRequest); i {
case 0:
return &v.state
@@ -1606,7 +1606,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteUserResponse); i {
case 0:
return &v.state
@@ -1618,7 +1618,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*AddUserAccountsRequest); i {
case 0:
return &v.state
@@ -1630,7 +1630,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*AddUserAccountsResponse); i {
case 0:
return &v.state
@@ -1642,7 +1642,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*SetUserAccountsRequest); i {
case 0:
return &v.state
@@ -1654,7 +1654,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*SetUserAccountsResponse); i {
case 0:
return &v.state
@@ -1666,7 +1666,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*RemoveUserAccountsRequest); i {
case 0:
return &v.state
@@ -1678,7 +1678,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*RemoveUserAccountsResponse); i {
case 0:
return &v.state
@@ -1690,7 +1690,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*ListResolvableAliasesRequest); i {
case 0:
return &v.state
@@ -1702,7 +1702,7 @@ func file_controller_api_services_v1_user_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_user_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_user_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*ListResolvableAliasesResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/worker_service.proto
@@ -1510,7 +1510,7 @@ func file_controller_api_services_v1_worker_service_proto_rawDescGZIP() []byte {
}
var file_controller_api_services_v1_worker_service_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_controller_api_services_v1_worker_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_worker_service_proto_goTypes = []any{
(*GetWorkerRequest)(nil), // 0: controller.api.services.v1.GetWorkerRequest
(*GetWorkerResponse)(nil), // 1: controller.api.services.v1.GetWorkerResponse
(*ListWorkersRequest)(nil), // 2: controller.api.services.v1.ListWorkersRequest
@@ -1597,7 +1597,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_worker_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetWorkerRequest); i {
case 0:
return &v.state
@@ -1609,7 +1609,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetWorkerResponse); i {
case 0:
return &v.state
@@ -1621,7 +1621,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListWorkersRequest); i {
case 0:
return &v.state
@@ -1633,7 +1633,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListWorkersResponse); i {
case 0:
return &v.state
@@ -1645,7 +1645,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateWorkerLedRequest); i {
case 0:
return &v.state
@@ -1657,7 +1657,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateWorkerLedResponse); i {
case 0:
return &v.state
@@ -1669,7 +1669,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*CreateControllerLedRequest); i {
case 0:
return &v.state
@@ -1681,7 +1681,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*CreateControllerLedResponse); i {
case 0:
return &v.state
@@ -1693,7 +1693,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*UpdateWorkerRequest); i {
case 0:
return &v.state
@@ -1705,7 +1705,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*UpdateWorkerResponse); i {
case 0:
return &v.state
@@ -1717,7 +1717,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*DeleteWorkerRequest); i {
case 0:
return &v.state
@@ -1729,7 +1729,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*DeleteWorkerResponse); i {
case 0:
return &v.state
@@ -1741,7 +1741,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*AddWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1753,7 +1753,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*AddWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1765,7 +1765,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*SetWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1777,7 +1777,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*SetWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1789,7 +1789,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*RemoveWorkerTagsRequest); i {
case 0:
return &v.state
@@ -1801,7 +1801,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*RemoveWorkerTagsResponse); i {
case 0:
return &v.state
@@ -1813,7 +1813,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*ReadCertificateAuthorityRequest); i {
case 0:
return &v.state
@@ -1825,7 +1825,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*ReadCertificateAuthorityResponse); i {
case 0:
return &v.state
@@ -1837,7 +1837,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*ReinitializeCertificateAuthorityRequest); i {
case 0:
return &v.state
@@ -1849,7 +1849,7 @@ func file_controller_api_services_v1_worker_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_worker_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_worker_service_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*ReinitializeCertificateAuthorityResponse); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/auth/v1/auth.proto
@@ -247,7 +247,7 @@ func file_controller_auth_v1_auth_proto_rawDescGZIP() []byte {
}
var file_controller_auth_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_auth_v1_auth_proto_goTypes = []interface{}{
var file_controller_auth_v1_auth_proto_goTypes = []any{
(*RequestInfo)(nil), // 0: controller.auth.v1.RequestInfo
}
var file_controller_auth_v1_auth_proto_depIdxs = []int32{
@@ -264,7 +264,7 @@ func file_controller_auth_v1_auth_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_auth_v1_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_auth_v1_auth_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*RequestInfo); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/v1/servers.proto
@@ -290,7 +290,7 @@ func file_controller_servers_v1_servers_proto_rawDescGZIP() []byte {
}
var file_controller_servers_v1_servers_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_controller_servers_v1_servers_proto_goTypes = []interface{}{
var file_controller_servers_v1_servers_proto_goTypes = []any{
(*TagPair)(nil), // 0: controller.servers.v1.TagPair
(*ServerWorkerStatus)(nil), // 1: controller.servers.v1.ServerWorkerStatus
nil, // 2: controller.servers.v1.ServerWorkerStatus.StorageBucketCredentialStatesEntry
@@ -313,7 +313,7 @@ func file_controller_servers_v1_servers_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_v1_servers_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_v1_servers_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TagPair); i {
case 0:
return &v.state
@@ -325,7 +325,7 @@ func file_controller_servers_v1_servers_proto_init() {
return nil
}
}
file_controller_servers_v1_servers_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_v1_servers_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ServerWorkerStatus); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/credential.proto
@@ -382,7 +382,7 @@ func file_controller_servers_services_v1_credential_proto_rawDescGZIP() []byte {
}
var file_controller_servers_services_v1_credential_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_servers_services_v1_credential_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_credential_proto_goTypes = []any{
(*Credential)(nil), // 0: controller.servers.services.v1.Credential
(*UsernamePassword)(nil), // 1: controller.servers.services.v1.UsernamePassword
(*SshPrivateKey)(nil), // 2: controller.servers.services.v1.SshPrivateKey
@@ -405,7 +405,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_credential_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Credential); i {
case 0:
return &v.state
@@ -417,7 +417,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UsernamePassword); i {
case 0:
return &v.state
@@ -429,7 +429,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*SshPrivateKey); i {
case 0:
return &v.state
@@ -441,7 +441,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
return nil
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_credential_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*SshCertificate); i {
case 0:
return &v.state
@@ -454,7 +454,7 @@ func file_controller_servers_services_v1_credential_proto_init() {
}
}
}
file_controller_servers_services_v1_credential_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_servers_services_v1_credential_proto_msgTypes[0].OneofWrappers = []any{
(*Credential_UsernamePassword)(nil),
(*Credential_SshPrivateKey)(nil),
(*Credential_SshCertificate)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/server_coordination_service.proto
@@ -1498,7 +1498,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_rawDe
var file_controller_servers_services_v1_server_coordination_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
var file_controller_servers_services_v1_server_coordination_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_servers_services_v1_server_coordination_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_server_coordination_service_proto_goTypes = []any{
(CONNECTIONSTATUS)(0), // 0: controller.servers.services.v1.CONNECTIONSTATUS
(SESSIONSTATUS)(0), // 1: controller.servers.services.v1.SESSIONSTATUS
(SessionProcessingError)(0), // 2: controller.servers.services.v1.SessionProcessingError
@@ -1559,7 +1559,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Connection); i {
case 0:
return &v.state
@@ -1571,7 +1571,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SessionJobInfo); i {
case 0:
return &v.state
@@ -1583,7 +1583,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*MonitorSessionJobInfo); i {
case 0:
return &v.state
@@ -1595,7 +1595,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Job); i {
case 0:
return &v.state
@@ -1607,7 +1607,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*JobStatus); i {
case 0:
return &v.state
@@ -1619,7 +1619,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamServer); i {
case 0:
return &v.state
@@ -1631,7 +1631,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*StatusRequest); i {
case 0:
return &v.state
@@ -1643,7 +1643,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*JobChangeRequest); i {
case 0:
return &v.state
@@ -1655,7 +1655,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizedWorkerList); i {
case 0:
return &v.state
@@ -1667,7 +1667,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizedDownstreamWorkerList); i {
case 0:
return &v.state
@@ -1679,7 +1679,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*StatusResponse); i {
case 0:
return &v.state
@@ -1691,7 +1691,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*WorkerInfo); i {
case 0:
return &v.state
@@ -1703,7 +1703,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ListHcpbWorkersRequest); i {
case 0:
return &v.state
@@ -1715,7 +1715,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
return nil
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*ListHcpbWorkersResponse); i {
case 0:
return &v.state
@@ -1728,7 +1728,7 @@ func file_controller_servers_services_v1_server_coordination_service_proto_init(
}
}
}
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].OneofWrappers = []interface{}{
file_controller_servers_services_v1_server_coordination_service_proto_msgTypes[3].OneofWrappers = []any{
(*Job_SessionInfo)(nil),
(*Job_MonitorSessionInfo)(nil),
}
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/session_service.proto
@@ -1213,7 +1213,7 @@ func file_controller_servers_services_v1_session_service_proto_rawDescGZIP() []b
}
var file_controller_servers_services_v1_session_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_servers_services_v1_session_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_session_service_proto_goTypes = []any{
(*LookupSessionRequest)(nil), // 0: controller.servers.services.v1.LookupSessionRequest
(*LookupSessionResponse)(nil), // 1: controller.servers.services.v1.LookupSessionResponse
(*ActivateSessionRequest)(nil), // 2: controller.servers.services.v1.ActivateSessionRequest
@@ -1276,7 +1276,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
file_controller_servers_services_v1_credential_proto_init()
file_controller_servers_services_v1_server_coordination_service_proto_init()
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_session_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*LookupSessionRequest); i {
case 0:
return &v.state
@@ -1288,7 +1288,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*LookupSessionResponse); i {
case 0:
return &v.state
@@ -1300,7 +1300,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ActivateSessionRequest); i {
case 0:
return &v.state
@@ -1312,7 +1312,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ActivateSessionResponse); i {
case 0:
return &v.state
@@ -1324,7 +1324,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionRequest); i {
case 0:
return &v.state
@@ -1336,7 +1336,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CancelSessionResponse); i {
case 0:
return &v.state
@@ -1348,7 +1348,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeConnectionRequest); i {
case 0:
return &v.state
@@ -1360,7 +1360,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*AuthorizeConnectionResponse); i {
case 0:
return &v.state
@@ -1372,7 +1372,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*ConnectConnectionRequest); i {
case 0:
return &v.state
@@ -1384,7 +1384,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*ConnectConnectionResponse); i {
case 0:
return &v.state
@@ -1396,7 +1396,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionRequestData); i {
case 0:
return &v.state
@@ -1408,7 +1408,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionRequest); i {
case 0:
return &v.state
@@ -1420,7 +1420,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionResponseData); i {
case 0:
return &v.state
@@ -1432,7 +1432,7 @@ func file_controller_servers_services_v1_session_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_session_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_session_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*CloseConnectionResponse); i {
case 0:
return &v.state
@@ -2,7 +2,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/servers/services/v1/upstream_message_service.proto
@@ -452,7 +452,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_rawDescG
var file_controller_servers_services_v1_upstream_message_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_controller_servers_services_v1_upstream_message_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_servers_services_v1_upstream_message_service_proto_goTypes = []interface{}{
var file_controller_servers_services_v1_upstream_message_service_proto_goTypes = []any{
(MsgType)(0), // 0: controller.servers.services.v1.MsgType
(*UpstreamMessageRequest)(nil), // 1: controller.servers.services.v1.UpstreamMessageRequest
(*UpstreamMessageResponse)(nil), // 2: controller.servers.services.v1.UpstreamMessageResponse
@@ -476,7 +476,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamMessageRequest); i {
case 0:
return &v.state
@@ -488,7 +488,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*UpstreamMessageResponse); i {
case 0:
return &v.state
@@ -500,7 +500,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*EchoUpstreamMessageRequest); i {
case 0:
return &v.state
@@ -512,7 +512,7 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
return nil
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*EchoUpstreamMessageResponse); i {
case 0:
return &v.state
@@ -525,11 +525,11 @@ func file_controller_servers_services_v1_upstream_message_service_proto_init() {
}
}
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].OneofWrappers = []interface{}{
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[0].OneofWrappers = []any{
(*UpstreamMessageRequest_Ct)(nil),
(*UpstreamMessageRequest_Pt)(nil),
}
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].OneofWrappers = []interface{}{
file_controller_servers_services_v1_upstream_message_service_proto_msgTypes[1].OneofWrappers = []any{
(*UpstreamMessageResponse_Ct)(nil),
(*UpstreamMessageResponse_Pt)(nil),
}
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/tokens/v1/tokens.proto
@@ -109,7 +109,7 @@ func file_controller_tokens_v1_tokens_proto_rawDescGZIP() []byte {
}
var file_controller_tokens_v1_tokens_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_tokens_v1_tokens_proto_goTypes = []interface{}{
var file_controller_tokens_v1_tokens_proto_goTypes = []any{
(*S1TokenInfo)(nil), // 0: controller.tokens.v1.S1TokenInfo
}
var file_controller_tokens_v1_tokens_proto_depIdxs = []int32{
@@ -126,7 +126,7 @@ func file_controller_tokens_v1_tokens_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_tokens_v1_tokens_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_tokens_v1_tokens_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*S1TokenInfo); i {
case 0:
return &v.state
+5 -5
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: errors/v1/errors.proto
@@ -254,7 +254,7 @@ func file_errors_v1_errors_proto_rawDescGZIP() []byte {
}
var file_errors_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_errors_v1_errors_proto_goTypes = []interface{}{
var file_errors_v1_errors_proto_goTypes = []any{
(*Err)(nil), // 0: errors.v1.Err
(*ApiError)(nil), // 1: errors.v1.ApiError
(*api.Error)(nil), // 2: controller.api.v1.Error
@@ -275,7 +275,7 @@ func file_errors_v1_errors_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_errors_v1_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_errors_v1_errors_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Err); i {
case 0:
return &v.state
@@ -287,7 +287,7 @@ func file_errors_v1_errors_proto_init() {
return nil
}
}
file_errors_v1_errors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_errors_v1_errors_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*ApiError); i {
case 0:
return &v.state
@@ -300,7 +300,7 @@ func file_errors_v1_errors_proto_init() {
}
}
}
file_errors_v1_errors_proto_msgTypes[0].OneofWrappers = []interface{}{
file_errors_v1_errors_proto_msgTypes[0].OneofWrappers = []any{
(*Err_Err)(nil),
(*Err_StdError)(nil),
(*Err_None)(nil),
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: ops/services/v1/health_service.proto
@@ -169,7 +169,7 @@ func file_ops_services_v1_health_service_proto_rawDescGZIP() []byte {
}
var file_ops_services_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_ops_services_v1_health_service_proto_goTypes = []interface{}{
var file_ops_services_v1_health_service_proto_goTypes = []any{
(*GetHealthRequest)(nil), // 0: ops.services.v1.GetHealthRequest
(*GetHealthResponse)(nil), // 1: ops.services.v1.GetHealthResponse
(*health.HealthInfo)(nil), // 2: worker.health.v1.HealthInfo
@@ -191,7 +191,7 @@ func file_ops_services_v1_health_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_ops_services_v1_health_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_ops_services_v1_health_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetHealthRequest); i {
case 0:
return &v.state
@@ -203,7 +203,7 @@ func file_ops_services_v1_health_service_proto_init() {
return nil
}
}
file_ops_services_v1_health_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_ops_services_v1_health_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetHealthResponse); i {
case 0:
return &v.state
+30 -30
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/attribute/v1/attribute.proto
@@ -1627,7 +1627,7 @@ func file_testing_attribute_v1_attribute_proto_rawDescGZIP() []byte {
}
var file_testing_attribute_v1_attribute_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
var file_testing_attribute_v1_attribute_proto_goTypes = []interface{}{
var file_testing_attribute_v1_attribute_proto_goTypes = []any{
(*TestResource)(nil), // 0: testing.attribute.v1.TestResource
(*TestSubResourceAttributes)(nil), // 1: testing.attribute.v1.TestSubResourceAttributes
(*TestNoAttributes)(nil), // 2: testing.attribute.v1.TestNoAttributes
@@ -1698,7 +1698,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_attribute_v1_attribute_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestResource); i {
case 0:
return &v.state
@@ -1710,7 +1710,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestSubResourceAttributes); i {
case 0:
return &v.state
@@ -1722,7 +1722,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*TestNoAttributes); i {
case 0:
return &v.state
@@ -1734,7 +1734,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*TestNoOneOf); i {
case 0:
return &v.state
@@ -1746,7 +1746,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*TestCustomTransformation); i {
case 0:
return &v.state
@@ -1758,7 +1758,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*TestListResourceRequest); i {
case 0:
return &v.state
@@ -1770,7 +1770,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*TestListResourceResponse); i {
case 0:
return &v.state
@@ -1782,7 +1782,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*TestGetResourceRequest); i {
case 0:
return &v.state
@@ -1794,7 +1794,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*TestGetResourceResponse); i {
case 0:
return &v.state
@@ -1806,7 +1806,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateResourceRequest); i {
case 0:
return &v.state
@@ -1818,7 +1818,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateResourceResponse); i {
case 0:
return &v.state
@@ -1830,7 +1830,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateResourceRequest); i {
case 0:
return &v.state
@@ -1842,7 +1842,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateResourceResponse); i {
case 0:
return &v.state
@@ -1854,7 +1854,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestNoItem); i {
case 0:
return &v.state
@@ -1866,7 +1866,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[14].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestItemNotMessage); i {
case 0:
return &v.state
@@ -1878,7 +1878,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[15].Exporter = func(v any, i int) any {
switch v := v.(*TestItemNoType); i {
case 0:
return &v.state
@@ -1890,7 +1890,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[16].Exporter = func(v any, i int) any {
switch v := v.(*TestRequestItemNoType); i {
case 0:
return &v.state
@@ -1902,7 +1902,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[17].Exporter = func(v any, i int) any {
switch v := v.(*TestNoItemAttributes); i {
case 0:
return &v.state
@@ -1914,7 +1914,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[18].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateNoOneOfRequest); i {
case 0:
return &v.state
@@ -1926,7 +1926,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[19].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateNoOneOfRequest); i {
case 0:
return &v.state
@@ -1938,7 +1938,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[20].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseNoItem); i {
case 0:
return &v.state
@@ -1950,7 +1950,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[21].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseItemNotMessage); i {
case 0:
return &v.state
@@ -1962,7 +1962,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[22].Exporter = func(v any, i int) any {
switch v := v.(*TestResponseItemNoType); i {
case 0:
return &v.state
@@ -1974,7 +1974,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[23].Exporter = func(v any, i int) any {
switch v := v.(*TestCreateNoOneOfResponse); i {
case 0:
return &v.state
@@ -1986,7 +1986,7 @@ func file_testing_attribute_v1_attribute_proto_init() {
return nil
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
file_testing_attribute_v1_attribute_proto_msgTypes[24].Exporter = func(v any, i int) any {
switch v := v.(*TestUpdateNoOneOfResponse); i {
case 0:
return &v.state
@@ -1999,15 +1999,15 @@ func file_testing_attribute_v1_attribute_proto_init() {
}
}
}
file_testing_attribute_v1_attribute_proto_msgTypes[0].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[0].OneofWrappers = []any{
(*TestResource_Attributes)(nil),
(*TestResource_SubResourceAttributes)(nil),
}
file_testing_attribute_v1_attribute_proto_msgTypes[4].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[4].OneofWrappers = []any{
(*TestCustomTransformation_Attributes)(nil),
(*TestCustomTransformation_SubResourceAttributes)(nil),
}
file_testing_attribute_v1_attribute_proto_msgTypes[17].OneofWrappers = []interface{}{
file_testing_attribute_v1_attribute_proto_msgTypes[17].OneofWrappers = []any{
(*TestNoItemAttributes_Attributes)(nil),
(*TestNoItemAttributes_SubResourceAttributes)(nil),
}
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/event/v1/event.proto
@@ -248,7 +248,7 @@ func file_testing_event_v1_event_proto_rawDescGZIP() []byte {
}
var file_testing_event_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_event_v1_event_proto_goTypes = []interface{}{
var file_testing_event_v1_event_proto_goTypes = []any{
(*TestAuthenticateRequest)(nil), // 0: testing.event.v1.TestAuthenticateRequest
(*TestAuthenticateResponse)(nil), // 1: testing.event.v1.TestAuthenticateResponse
(*structpb.Struct)(nil), // 2: google.protobuf.Struct
@@ -271,7 +271,7 @@ func file_testing_event_v1_event_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_event_v1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_event_v1_event_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestAuthenticateRequest); i {
case 0:
return &v.state
@@ -283,7 +283,7 @@ func file_testing_event_v1_event_proto_init() {
return nil
}
}
file_testing_event_v1_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_event_v1_event_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestAuthenticateResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/interceptor/v1/greeter.proto
@@ -159,7 +159,7 @@ func file_testing_interceptor_v1_greeter_proto_rawDescGZIP() []byte {
}
var file_testing_interceptor_v1_greeter_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_interceptor_v1_greeter_proto_goTypes = []interface{}{
var file_testing_interceptor_v1_greeter_proto_goTypes = []any{
(*SayHelloRequest)(nil), // 0: testing.interceptor.v1.SayHelloRequest
(*SayHelloResponse)(nil), // 1: testing.interceptor.v1.SayHelloResponse
}
@@ -179,7 +179,7 @@ func file_testing_interceptor_v1_greeter_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_interceptor_v1_greeter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_interceptor_v1_greeter_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*SayHelloRequest); i {
case 0:
return &v.state
@@ -191,7 +191,7 @@ func file_testing_interceptor_v1_greeter_proto_init() {
return nil
}
}
file_testing_interceptor_v1_greeter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_interceptor_v1_greeter_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*SayHelloResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: testing/options/v1/service.proto
@@ -164,7 +164,7 @@ func file_testing_options_v1_service_proto_rawDescGZIP() []byte {
}
var file_testing_options_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_testing_options_v1_service_proto_goTypes = []interface{}{
var file_testing_options_v1_service_proto_goTypes = []any{
(*TestMethodRequest)(nil), // 0: testing.options.v1.TestMethodRequest
(*TestMethodResponse)(nil), // 1: testing.options.v1.TestMethodResponse
}
@@ -184,7 +184,7 @@ func file_testing_options_v1_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_testing_options_v1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_testing_options_v1_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*TestMethodRequest); i {
case 0:
return &v.state
@@ -196,7 +196,7 @@ func file_testing_options_v1_service_proto_init() {
return nil
}
}
file_testing_options_v1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_testing_options_v1_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*TestMethodResponse); i {
case 0:
return &v.state
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: worker/health/v1/health_service.proto
@@ -146,7 +146,7 @@ func file_worker_health_v1_health_service_proto_rawDescGZIP() []byte {
}
var file_worker_health_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_worker_health_v1_health_service_proto_goTypes = []interface{}{
var file_worker_health_v1_health_service_proto_goTypes = []any{
(*HealthInfo)(nil), // 0: worker.health.v1.HealthInfo
nil, // 1: worker.health.v1.HealthInfo.SessionConnectionsEntry
(*wrapperspb.UInt32Value)(nil), // 2: google.protobuf.UInt32Value
@@ -167,7 +167,7 @@ func file_worker_health_v1_health_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_worker_health_v1_health_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_worker_health_v1_health_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HealthInfo); i {
case 0:
return &v.state
+5 -5
View File
@@ -437,7 +437,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
{
if len(hi.ipsToRemove) > 0 {
oplogMsgs := make([]*oplog.Message, 0, len(hi.ipsToRemove))
count, err := w.DeleteItems(ctx, hi.ipsToRemove.toArray(), db.NewOplogMsgs(&oplogMsgs))
count, err := w.DeleteItems(ctx, hi.ipsToRemove.toSlice(), db.NewOplogMsgs(&oplogMsgs))
if err != nil {
return err
}
@@ -452,8 +452,8 @@ func (r *SetSyncJob) upsertAndCleanHosts(
Target: db.Constraint("host_ip_address_pkey"),
Action: db.DoNothing(true),
}
if err := w.CreateItems(ctx, hi.ipsToAdd.toArray(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("adding ips %v for host %q", hi.ipsToAdd.toArray(), ret.GetPublicId())))
if err := w.CreateItems(ctx, hi.ipsToAdd.toSlice(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("adding ips %v for host %q", hi.ipsToAdd.toSlice(), ret.GetPublicId())))
}
msgs = append(msgs, oplogMsgs...)
}
@@ -463,7 +463,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
{
if len(hi.dnsNamesToRemove) > 0 {
oplogMsgs := make([]*oplog.Message, 0, len(hi.dnsNamesToRemove))
count, err := w.DeleteItems(ctx, hi.dnsNamesToRemove.toArray(), db.NewOplogMsgs(&oplogMsgs))
count, err := w.DeleteItems(ctx, hi.dnsNamesToRemove.toSlice(), db.NewOplogMsgs(&oplogMsgs))
if err != nil {
return err
}
@@ -478,7 +478,7 @@ func (r *SetSyncJob) upsertAndCleanHosts(
Target: db.Constraint("host_dns_name_pkey"),
Action: db.DoNothing(true),
}
if err := w.CreateItems(ctx, hi.dnsNamesToAdd.toArray(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
if err := w.CreateItems(ctx, hi.dnsNamesToAdd.toSlice(), db.NewOplogMsgs(&oplogMsgs), db.WithOnConflict(onConflict)); err != nil {
return err
}
msgs = append(msgs, oplogMsgs...)
+5 -5
View File
@@ -138,9 +138,9 @@ func (r *Repository) CreateSet(ctx context.Context, projectId string, s *HostSet
}
}
var preferredEndpoints []any
var preferredEndpoints []*host.PreferredEndpoint
if s.PreferredEndpoints != nil {
preferredEndpoints = make([]any, 0, len(s.PreferredEndpoints))
preferredEndpoints = make([]*host.PreferredEndpoint, 0, len(s.PreferredEndpoints))
for i, e := range s.PreferredEndpoints {
obj, err := host.NewPreferredEndpoint(ctx, s.PublicId, uint32(i+1), e)
if err != nil {
@@ -392,9 +392,9 @@ func (r *Repository) UpdateSet(ctx context.Context, projectId string, s *HostSet
}
// Get the preferred endpoints to write out.
var preferredEndpoints []any
var preferredEndpoints []*host.PreferredEndpoint
if endpointOp == endpointOpUpdate {
preferredEndpoints = make([]any, 0, len(newSet.PreferredEndpoints))
preferredEndpoints = make([]*host.PreferredEndpoint, 0, len(newSet.PreferredEndpoints))
for i, e := range newSet.PreferredEndpoints {
obj, err := host.NewPreferredEndpoint(ctx, newSet.PublicId, uint32(i+1), e)
if err != nil {
@@ -454,7 +454,7 @@ func (r *Repository) UpdateSet(ctx context.Context, projectId string, s *HostSet
case endpointOpDelete, endpointOpUpdate:
if len(currentSet.PreferredEndpoints) > 0 {
// Delete all old endpoint entries.
var peps []any
var peps []*host.PreferredEndpoint
for i := 1; i <= len(currentSet.PreferredEndpoints); i++ {
p := host.AllocPreferredEndpoint()
p.HostSetId, p.Priority = currentSet.GetPublicId(), uint32(i)
+16 -7
View File
@@ -5,6 +5,7 @@ package plugin
import (
"context"
"reflect"
"sort"
"github.com/hashicorp/boundary/internal/errors"
@@ -13,22 +14,30 @@ import (
"github.com/hashicorp/go-secure-stdlib/strutil"
)
// valueToInterfaceMap is a map that has a function to convert values into an
// array
// valueToInterfaceMap is a map that has a function to convert values into a
// slice
type valueToInterfaceMap map[string]any
func (m valueToInterfaceMap) toArray() []any {
func (m valueToInterfaceMap) toSlice() any {
switch {
case m == nil:
return nil
case len(m) == 0:
return make([]any, 0)
default:
ret := make([]any, 0, len(m))
for _, v := range m {
ret = append(ret, v)
var valueType reflect.Type
existingValues := make([]any, 0, len(m))
for _, value := range m {
valueType = reflect.TypeOf(value) // Assume all values are the same type
existingValues = append(existingValues, value)
}
return ret
// Create a slice of the concrete type
sliceType := reflect.SliceOf(valueType)
sliceValue := reflect.MakeSlice(sliceType, len(m), len(m))
for i := 0; i < len(m); i++ {
sliceValue.Index(i).Set(reflect.ValueOf(existingValues[i]))
}
return sliceValue.Interface()
}
}
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/plugin/store/v1/host.proto
@@ -811,7 +811,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_rawDescGZIP() []byt
}
var file_controller_storage_host_plugin_store_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_host_plugin_store_v1_host_proto_goTypes = []interface{}{
var file_controller_storage_host_plugin_store_v1_host_proto_goTypes = []any{
(*HostCatalog)(nil), // 0: controller.storage.host.plugin.store.v1.HostCatalog
(*HostSet)(nil), // 1: controller.storage.host.plugin.store.v1.HostSet
(*HostCatalogSecret)(nil), // 2: controller.storage.host.plugin.store.v1.HostCatalogSecret
@@ -842,7 +842,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalog); i {
case 0:
return &v.state
@@ -854,7 +854,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*HostSet); i {
case 0:
return &v.state
@@ -866,7 +866,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalogSecret); i {
case 0:
return &v.state
@@ -878,7 +878,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -890,7 +890,7 @@ func file_controller_storage_host_plugin_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_plugin_store_v1_host_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*HostSetMember); i {
case 0:
return &v.state
+4 -4
View File
@@ -125,10 +125,10 @@ func TestHost(t testing.TB, conn *db.DB, catId, externId string, opt ...Option)
require.NoError(t, err)
require.NoError(t, w.Create(ctx, host1))
var ipAddresses []any
var ipAddresses []*host.IpAddress
if len(host1.GetIpAddresses()) > 0 {
sort.Strings(host1.IpAddresses)
ipAddresses = make([]any, 0, len(host1.GetIpAddresses()))
ipAddresses = make([]*host.IpAddress, 0, len(host1.GetIpAddresses()))
for _, a := range host1.GetIpAddresses() {
obj, err := host.NewIpAddress(ctx, host1.PublicId, a)
require.NoError(t, err)
@@ -137,10 +137,10 @@ func TestHost(t testing.TB, conn *db.DB, catId, externId string, opt ...Option)
require.NoError(t, w.CreateItems(ctx, ipAddresses))
}
var dnsNames []any
var dnsNames []*host.DnsName
if len(host1.GetDnsNames()) > 0 {
sort.Strings(host1.DnsNames)
dnsNames = make([]any, 0, len(host1.GetDnsNames()))
dnsNames = make([]*host.DnsName, 0, len(host1.GetDnsNames()))
for _, n := range host1.GetDnsNames() {
obj, err := host.NewDnsName(ctx, host1.PublicId, n)
require.NoError(t, err)
@@ -32,6 +32,7 @@ import (
type fakeReader struct {
db.Reader
}
type fakeWriter struct {
db.Writer
}
@@ -74,8 +74,8 @@ func (r *Repository) AddSetMembers(ctx context.Context, projectId string, setId
return hosts, nil
}
func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []string) ([]any, error) {
var members []any
func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []string) ([]*HostSetMember, error) {
var members []*HostSetMember
for _, id := range hostIds {
var m *HostSetMember
m, err := NewHostSetMember(ctx, setId, id)
@@ -87,7 +87,7 @@ func (r *Repository) newMembers(ctx context.Context, setId string, hostIds []str
return members, nil
}
func createMembers(ctx context.Context, w db.Writer, members []any) ([]*oplog.Message, error) {
func createMembers(ctx context.Context, w db.Writer, members []*HostSetMember) ([]*oplog.Message, error) {
var msgs []*oplog.Message
if err := w.CreateItems(ctx, members, db.NewOplogMsgs(&msgs)); err != nil {
return nil, errors.Wrap(ctx, err, "static.createMembers")
@@ -214,7 +214,7 @@ func (r *Repository) DeleteSetMembers(ctx context.Context, projectId string, set
return len(hostIds), nil
}
func deleteMembers(ctx context.Context, w db.Writer, members []any) ([]*oplog.Message, error) {
func deleteMembers(ctx context.Context, w db.Writer, members []*HostSetMember) ([]*oplog.Message, error) {
const op = "static.deleteMembers"
var msgs []*oplog.Message
rowsDeleted, err := w.DeleteItems(ctx, members, db.NewOplogMsgs(&msgs))
@@ -261,7 +261,7 @@ func (r *Repository) SetSetMembers(ctx context.Context, projectId string, setId
if err != nil {
return nil, db.NoRowsAffected, errors.Wrap(ctx, err, op)
}
var deletions, additions []any
var deletions, additions []*HostSetMember
for _, c := range changes {
m, err := NewHostSetMember(ctx, setId, c.HostId)
if err != nil {
+7 -7
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/static/store/v1/static.proto
@@ -620,7 +620,7 @@ func file_controller_storage_host_static_store_v1_static_proto_rawDescGZIP() []b
}
var file_controller_storage_host_static_store_v1_static_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_controller_storage_host_static_store_v1_static_proto_goTypes = []interface{}{
var file_controller_storage_host_static_store_v1_static_proto_goTypes = []any{
(*HostCatalog)(nil), // 0: controller.storage.host.static.store.v1.HostCatalog
(*Host)(nil), // 1: controller.storage.host.static.store.v1.Host
(*HostSet)(nil), // 2: controller.storage.host.static.store.v1.HostSet
@@ -648,7 +648,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*HostCatalog); i {
case 0:
return &v.state
@@ -660,7 +660,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -672,7 +672,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*HostSet); i {
case 0:
return &v.state
@@ -684,7 +684,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*HostSetMember); i {
case 0:
return &v.state
@@ -696,7 +696,7 @@ func file_controller_storage_host_static_store_v1_static_proto_init() {
return nil
}
}
file_controller_storage_host_static_store_v1_static_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_static_store_v1_static_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*UnimplementedSetFields); i {
case 0:
return &v.state
+8 -8
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/host/store/v1/host.proto
@@ -440,7 +440,7 @@ func file_controller_storage_host_store_v1_host_proto_rawDescGZIP() []byte {
}
var file_controller_storage_host_store_v1_host_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_controller_storage_host_store_v1_host_proto_goTypes = []interface{}{
var file_controller_storage_host_store_v1_host_proto_goTypes = []any{
(*Catalog)(nil), // 0: controller.storage.host.store.v1.Catalog
(*Host)(nil), // 1: controller.storage.host.store.v1.Host
(*Set)(nil), // 2: controller.storage.host.store.v1.Set
@@ -462,7 +462,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_host_store_v1_host_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Catalog); i {
case 0:
return &v.state
@@ -474,7 +474,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*Host); i {
case 0:
return &v.state
@@ -486,7 +486,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*Set); i {
case 0:
return &v.state
@@ -498,7 +498,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*PreferredEndpoint); i {
case 0:
return &v.state
@@ -510,7 +510,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*IpAddress); i {
case 0:
return &v.state
@@ -522,7 +522,7 @@ func file_controller_storage_host_store_v1_host_proto_init() {
return nil
}
}
file_controller_storage_host_store_v1_host_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_host_store_v1_host_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*DnsName); i {
case 0:
return &v.state
+5 -9
View File
@@ -56,7 +56,7 @@ func (r *Repository) AddRoleGrantScopes(ctx context.Context, roleId string, role
}
}
newRoleGrantScopes := make([]any, 0, len(addRoleGrantScopes))
newRoleGrantScopes := make([]*RoleGrantScope, 0, len(addRoleGrantScopes))
for _, grantScope := range grantScopes {
roleGrantScope, err := NewRoleGrantScope(ctx, role.GetPublicId(), grantScope)
if err != nil {
@@ -116,11 +116,7 @@ func (r *Repository) AddRoleGrantScopes(ctx context.Context, roleId string, role
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
roleGrantScopes = make([]*RoleGrantScope, 0, len(newRoleGrantScopes))
for _, grantScope := range newRoleGrantScopes {
roleGrantScopes = append(roleGrantScopes, grantScope.(*RoleGrantScope))
}
return roleGrantScopes, nil
return newRoleGrantScopes, nil
}
// DeleteRoleGrantScopes will delete role grant scopes associated with the role ID in
@@ -178,7 +174,7 @@ func (r *Repository) DeleteRoleGrantScopes(ctx context.Context, roleId string, r
}
msgs = append(msgs, &roleOplogMsg)
deleteRoleGrantScopes := make([]any, 0, len(grantScopes))
deleteRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
for _, grantScope := range grantScopes {
roleGrantScope, err := NewRoleGrantScope(ctx, roleId, grantScope)
if err != nil {
@@ -264,8 +260,8 @@ func (r *Repository) SetRoleGrantScopes(ctx context.Context, roleId string, role
// Check incoming grant scopes to see if they exist and if so act appropriately
currentRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes)+len(found))
addRoleGrantScopes := make([]any, 0, len(grantScopes))
deleteRoleGrantScopes := make([]any, 0, len(grantScopes))
addRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
deleteRoleGrantScopes := make([]*RoleGrantScope, 0, len(grantScopes))
for _, grantScope := range grantScopes {
rgs, ok := found[grantScope]
if ok {
+5 -5
View File
@@ -211,7 +211,7 @@ func (r *Repository) AddGroupMembers(ctx context.Context, groupId string, groupV
return nil, errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("unable to get group members %s scope", groupId)))
}
newGroupMembers := make([]any, 0, len(userIds))
newGroupMembers := make([]*GroupMemberUser, 0, len(userIds))
for _, id := range userIds {
gm, err := NewGroupMemberUser(ctx, groupId, id)
if err != nil {
@@ -304,7 +304,7 @@ func (r *Repository) DeleteGroupMembers(ctx context.Context, groupId string, gro
return db.NoRowsAffected, errors.Wrap(ctx, err, op, errors.WithMsg(fmt.Sprintf("unable to get group members %s scope", groupId)))
}
deleteMembers := make([]any, 0, len(userIds))
deleteMembers := make([]*GroupMemberUser, 0, len(userIds))
for _, id := range userIds {
member, err := NewGroupMemberUser(ctx, groupId, id)
if err != nil {
@@ -486,7 +486,7 @@ func (r *Repository) SetGroupMembers(ctx context.Context, groupId string, groupV
}
// groupMemberChanges returns two slices: members to add and delete
func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, userIds []string) ([]any, []any, error) {
func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, userIds []string) ([]*GroupMemberUser, []*GroupMemberUser, error) {
const op = "iam.groupMemberChanges"
var inClauseSpots []string
// starts at 2 because there is already a ? in the query
@@ -526,8 +526,8 @@ func groupMemberChanges(ctx context.Context, reader db.Reader, groupId string, u
if err := rows.Err(); err != nil {
return nil, nil, errors.Wrap(ctx, err, op)
}
addMembers := []any{}
deleteMembers := []any{}
addMembers := []*GroupMemberUser{}
deleteMembers := []*GroupMemberUser{}
for _, c := range changes {
if c.MemberId == "" {
return nil, nil, errors.New(ctx, errors.InvalidParameter, op, "missing user id in change result")
+18 -18
View File
@@ -36,7 +36,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
return nil, errors.New(ctx, errors.InvalidParameter, op, "missing any of users, groups, or managed groups to add")
}
newUserRoles := make([]any, 0, len(userIds))
newUserRoles := make([]*UserRole, 0, len(userIds))
for _, id := range userIds {
usrRole, err := NewUserRole(ctx, roleId, id)
if err != nil {
@@ -44,7 +44,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
}
newUserRoles = append(newUserRoles, usrRole)
}
newGrpRoles := make([]any, 0, len(groupIds))
newGrpRoles := make([]*GroupRole, 0, len(groupIds))
for _, id := range groupIds {
grpRole, err := NewGroupRole(ctx, roleId, id)
if err != nil {
@@ -52,7 +52,7 @@ func (r *Repository) AddPrincipalRoles(ctx context.Context, roleId string, roleV
}
newGrpRoles = append(newGrpRoles, grpRole)
}
newManagedGrpRoles := make([]any, 0, len(managedGroupIds))
newManagedGrpRoles := make([]*ManagedGroupRole, 0, len(managedGroupIds))
for _, id := range managedGroupIds {
managedGrpRole, err := NewManagedGroupRole(ctx, roleId, id)
if err != nil {
@@ -338,7 +338,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
role := allocRole()
role.PublicId = roleId
deleteUserRoles := make([]any, 0, len(userIds))
deleteUserRoles := make([]*UserRole, 0, len(userIds))
for _, id := range userIds {
usrRole, err := NewUserRole(ctx, roleId, id)
if err != nil {
@@ -346,7 +346,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
}
deleteUserRoles = append(deleteUserRoles, usrRole)
}
deleteGrpRoles := make([]any, 0, len(groupIds))
deleteGrpRoles := make([]*GroupRole, 0, len(groupIds))
for _, id := range groupIds {
grpRole, err := NewGroupRole(ctx, roleId, id)
if err != nil {
@@ -354,7 +354,7 @@ func (r *Repository) DeletePrincipalRoles(ctx context.Context, roleId string, ro
}
deleteGrpRoles = append(deleteGrpRoles, grpRole)
}
deleteManagedGrpRoles := make([]any, 0, len(managedGroupIds))
deleteManagedGrpRoles := make([]*ManagedGroupRole, 0, len(managedGroupIds))
for _, id := range managedGroupIds {
managedGrpRole, err := NewManagedGroupRole(ctx, roleId, id)
if err != nil {
@@ -465,12 +465,12 @@ func (r *Repository) ListPrincipalRoles(ctx context.Context, roleId string, opt
}
type PrincipalSet struct {
AddUserRoles []any
AddGroupRoles []any
AddManagedGroupRoles []any
DeleteUserRoles []any
DeleteGroupRoles []any
DeleteManagedGroupRoles []any
AddUserRoles []*UserRole
AddGroupRoles []*GroupRole
AddManagedGroupRoles []*ManagedGroupRole
DeleteUserRoles []*UserRole
DeleteGroupRoles []*GroupRole
DeleteManagedGroupRoles []*ManagedGroupRole
// unchangedPrincipalRoles is set iff there are no changes, that is, the
// length of all other members is zero
UnchangedPrincipalRoles []*PrincipalRole
@@ -503,7 +503,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("%s is unknown principal type %s", p.PrincipalId, p.GetType()))
}
}
var newUserRoles []any
var newUserRoles []*UserRole
userIdsMap := map[string]struct{}{}
for _, id := range userIds {
userIdsMap[id] = struct{}{}
@@ -515,7 +515,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newUserRoles = append(newUserRoles, usrRole)
}
}
var newGrpRoles []any
var newGrpRoles []*GroupRole
groupIdsMap := map[string]struct{}{}
for _, id := range groupIds {
groupIdsMap[id] = struct{}{}
@@ -527,7 +527,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newGrpRoles = append(newGrpRoles, grpRole)
}
}
var newManagedGrpRoles []any
var newManagedGrpRoles []*ManagedGroupRole
managedGroupIdsMap := map[string]struct{}{}
for _, id := range managedGroupIds {
managedGroupIdsMap[id] = struct{}{}
@@ -539,7 +539,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
newManagedGrpRoles = append(newManagedGrpRoles, managedGrpRole)
}
}
var deleteUserRoles []any
var deleteUserRoles []*UserRole
for _, p := range existingUsers {
if _, ok := userIdsMap[p.PrincipalId]; !ok {
usrRole, err := NewUserRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -549,7 +549,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
deleteUserRoles = append(deleteUserRoles, usrRole)
}
}
var deleteGrpRoles []any
var deleteGrpRoles []*GroupRole
for _, p := range existingGroups {
if _, ok := groupIdsMap[p.PrincipalId]; !ok {
grpRole, err := NewGroupRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -559,7 +559,7 @@ func (r *Repository) PrincipalsToSet(ctx context.Context, role *Role, userIds, g
deleteGrpRoles = append(deleteGrpRoles, grpRole)
}
}
var deleteManagedGrpRoles []any
var deleteManagedGrpRoles []*ManagedGroupRole
for _, p := range existingManagedGroups {
if _, ok := managedGroupIdsMap[p.PrincipalId]; !ok {
managedGrpRole, err := NewManagedGroupRole(ctx, p.GetRoleId(), p.GetPrincipalId())
@@ -206,7 +206,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
assert := assert.New(t)
var gotAddUsers []string
for _, r := range got.AddUserRoles {
gotAddUsers = append(gotAddUsers, r.(*iam.UserRole).PrincipalId)
gotAddUsers = append(gotAddUsers, r.PrincipalId)
}
// sort.Strings(wantAddUsers)
// sort.Strings(gotAddUsers)
@@ -214,7 +214,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotAddGrps []string
for _, r := range got.AddGroupRoles {
gotAddGrps = append(gotAddGrps, r.(*iam.GroupRole).PrincipalId)
gotAddGrps = append(gotAddGrps, r.PrincipalId)
}
// sort.Strings(wantAddGroups)
// sort.Strings(gotAddGrps)
@@ -222,7 +222,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotAddManagedGrps []string
for _, r := range got.AddManagedGroupRoles {
gotAddManagedGrps = append(gotAddManagedGrps, r.(*iam.ManagedGroupRole).PrincipalId)
gotAddManagedGrps = append(gotAddManagedGrps, r.PrincipalId)
}
// sort.Strings(wantAddGroups)
// sort.Strings(gotAddGrps)
@@ -230,7 +230,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteUsers []string
for _, r := range got.DeleteUserRoles {
gotDeleteUsers = append(gotDeleteUsers, r.(*iam.UserRole).PrincipalId)
gotDeleteUsers = append(gotDeleteUsers, r.PrincipalId)
}
sort.Strings(wantDeleteUsers)
sort.Strings(gotDeleteUsers)
@@ -238,7 +238,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteGroups []string
for _, r := range got.DeleteGroupRoles {
gotDeleteGroups = append(gotDeleteGroups, r.(*iam.GroupRole).PrincipalId)
gotDeleteGroups = append(gotDeleteGroups, r.PrincipalId)
}
sort.Strings(wantDeleteGroups)
sort.Strings(gotDeleteGroups)
@@ -246,7 +246,7 @@ func assertSetResults(t *testing.T, got *iam.PrincipalSet, wantAddUsers, wantAdd
var gotDeleteManagedGroups []string
for _, r := range got.DeleteManagedGroupRoles {
gotDeleteManagedGroups = append(gotDeleteManagedGroups, r.(*iam.ManagedGroupRole).PrincipalId)
gotDeleteManagedGroups = append(gotDeleteManagedGroups, r.PrincipalId)
}
sort.Strings(wantDeleteManagedGroups)
sort.Strings(gotDeleteManagedGroups)
+5 -9
View File
@@ -32,7 +32,7 @@ func (r *Repository) AddRoleGrants(ctx context.Context, roleId string, roleVersi
role := allocRole()
role.PublicId = roleId
newRoleGrants := make([]any, 0, len(grants))
newRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
roleGrant, err := NewRoleGrant(ctx, roleId, grant)
if err != nil {
@@ -96,11 +96,7 @@ func (r *Repository) AddRoleGrants(ctx context.Context, roleId string, roleVersi
if err != nil {
return nil, errors.Wrap(ctx, err, op)
}
roleGrants := make([]*RoleGrant, 0, len(newRoleGrants))
for _, grant := range newRoleGrants {
roleGrants = append(roleGrants, grant.(*RoleGrant))
}
return roleGrants, nil
return newRoleGrants, nil
}
// DeleteRoleGrants deletes grants (as strings) from a role (roleId). The role's
@@ -166,7 +162,7 @@ func (r *Repository) DeleteRoleGrants(ctx context.Context, roleId string, roleVe
// Check incoming grants to see if they exist and if so add to
// delete slice
deleteRoleGrants := make([]any, 0, len(grants))
deleteRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
// Use a fake scope, just want to get out a canonical string
perm, err := perms.Parse(ctx, "o_abcd1234", grant, perms.WithSkipFinalValidation(true))
@@ -257,8 +253,8 @@ func (r *Repository) SetRoleGrants(ctx context.Context, roleId string, roleVersi
// Check incoming grants to see if they exist and if so act appropriately
currentRoleGrants := make([]*RoleGrant, 0, len(grants)+len(found))
addRoleGrants := make([]any, 0, len(grants))
deleteRoleGrants := make([]any, 0, len(grants))
addRoleGrants := make([]*RoleGrant, 0, len(grants))
deleteRoleGrants := make([]*RoleGrant, 0, len(grants))
for _, grant := range grants {
// Use a fake scope, just want to get out a canonical string
perm, err := perms.Parse(ctx, "o_abcd1234", grant, perms.WithSkipFinalValidation(true))
@@ -763,7 +763,6 @@ func TestGrantsForUser(t *testing.T) {
// * directGrantProj on respective projects (4 grants total)
expGrantTuples := []perms.GrantTuple{
// No grants from noOrg/noProj
// Grants from direct org1 to org1/proj1a/proj1b:
{
RoleId: directGrantOrg1Role.PublicId,
+6 -6
View File
@@ -232,7 +232,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant"))
}
roleGrantOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrant}, db.NewOplogMsgs(&roleGrantOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrant{roleGrant}, db.NewOplogMsgs(&roleGrantOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grants"))
}
msgs = append(msgs, roleGrantOplogMsgs...)
@@ -242,7 +242,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant scope"))
}
roleGrantScopeOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrantScope{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grant scope"))
}
msgs = append(msgs, roleGrantScopeOplogMsgs...)
@@ -252,7 +252,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role user"))
}
roleUserOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{rolePrincipal}, db.NewOplogMsgs(&roleUserOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*UserRole{rolePrincipal}, db.NewOplogMsgs(&roleUserOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grants"))
}
msgs = append(msgs, roleUserOplogMsgs...)
@@ -301,7 +301,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
// Grants
{
grants := []any{}
grants := []*RoleGrant{}
switch s.Type {
case scope.Project.String():
@@ -352,7 +352,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
// Principals
{
principals := []any{}
principals := []*UserRole{}
userId := globals.AnonymousUserId
if s.Type == scope.Project.String() {
userId = globals.AnyAuthenticatedUserId
@@ -375,7 +375,7 @@ func (r *Repository) CreateScope(ctx context.Context, s *Scope, userId string, o
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to create in memory role grant scope"))
}
roleGrantScopeOplogMsgs := make([]*oplog.Message, 0, 1)
if err := w.CreateItems(ctx, []any{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
if err := w.CreateItems(ctx, []*RoleGrantScope{roleGrantScope}, db.NewOplogMsgs(&roleGrantScopeOplogMsgs)); err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to add grant scope"))
}
msgs = append(msgs, roleGrantScopeOplogMsgs...)
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/group.proto
@@ -191,7 +191,7 @@ func file_controller_storage_iam_store_v1_group_proto_rawDescGZIP() []byte {
}
var file_controller_storage_iam_store_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_group_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_group_proto_goTypes = []any{
(*Group)(nil), // 0: controller.storage.iam.store.v1.Group
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -211,7 +211,7 @@ func file_controller_storage_iam_store_v1_group_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Group); i {
case 0:
return &v.state
+4 -4
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/group_member.proto
@@ -260,7 +260,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_rawDescGZIP() []byt
}
var file_controller_storage_iam_store_v1_group_member_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_storage_iam_store_v1_group_member_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_group_member_proto_goTypes = []any{
(*GroupMemberUser)(nil), // 0: controller.storage.iam.store.v1.GroupMemberUser
(*GroupMemberView)(nil), // 1: controller.storage.iam.store.v1.GroupMemberView
(*timestamp.Timestamp)(nil), // 2: controller.storage.timestamp.v1.Timestamp
@@ -281,7 +281,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GroupMemberUser); i {
case 0:
return &v.state
@@ -293,7 +293,7 @@ func file_controller_storage_iam_store_v1_group_member_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_group_member_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GroupMemberView); i {
case 0:
return &v.state
+6 -6
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/principal_role.proto
@@ -417,7 +417,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_rawDescGZIP() []b
}
var file_controller_storage_iam_store_v1_principal_role_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_controller_storage_iam_store_v1_principal_role_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_principal_role_proto_goTypes = []any{
(*UserRole)(nil), // 0: controller.storage.iam.store.v1.UserRole
(*GroupRole)(nil), // 1: controller.storage.iam.store.v1.GroupRole
(*ManagedGroupRole)(nil), // 2: controller.storage.iam.store.v1.ManagedGroupRole
@@ -442,7 +442,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*UserRole); i {
case 0:
return &v.state
@@ -454,7 +454,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GroupRole); i {
case 0:
return &v.state
@@ -466,7 +466,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ManagedGroupRole); i {
case 0:
return &v.state
@@ -478,7 +478,7 @@ func file_controller_storage_iam_store_v1_principal_role_proto_init() {
return nil
}
}
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_principal_role_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*PrincipalRoleView); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/role.proto
@@ -191,7 +191,7 @@ func file_controller_storage_iam_store_v1_role_proto_rawDescGZIP() []byte {
}
var file_controller_storage_iam_store_v1_role_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_role_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_role_proto_goTypes = []any{
(*Role)(nil), // 0: controller.storage.iam.store.v1.Role
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -211,7 +211,7 @@ func file_controller_storage_iam_store_v1_role_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_role_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*Role); i {
case 0:
return &v.state
+3 -3
View File
@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/storage/iam/store/v1/role_grant.proto
@@ -146,7 +146,7 @@ func file_controller_storage_iam_store_v1_role_grant_proto_rawDescGZIP() []byte
}
var file_controller_storage_iam_store_v1_role_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_iam_store_v1_role_grant_proto_goTypes = []interface{}{
var file_controller_storage_iam_store_v1_role_grant_proto_goTypes = []any{
(*RoleGrant)(nil), // 0: controller.storage.iam.store.v1.RoleGrant
(*timestamp.Timestamp)(nil), // 1: controller.storage.timestamp.v1.Timestamp
}
@@ -165,7 +165,7 @@ func file_controller_storage_iam_store_v1_role_grant_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_storage_iam_store_v1_role_grant_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_storage_iam_store_v1_role_grant_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*RoleGrant); i {
case 0:
return &v.state
Loaded 100 of 167 files, more files were not shown because too many files have changed in this diff. Show more