Skip to content

Commit 6c6048e

Browse files
committed
chore: upgrade baton-sdk to v0.7.3 and Go to 1.25.2
1 parent 0384794 commit 6c6048e

772 files changed

Lines changed: 115365 additions & 46884 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

cmd/baton-postgresql/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
cfg "github.com/conductorone/baton-postgresql/pkg/config"
99
"github.com/conductorone/baton-sdk/pkg/connectorbuilder"
10+
"github.com/conductorone/baton-sdk/pkg/connectorrunner"
1011
"github.com/conductorone/baton-sdk/pkg/types"
1112
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
1213
"go.uber.org/zap"
@@ -20,7 +21,13 @@ var version = "dev"
2021
func main() {
2122
ctx := context.Background()
2223

23-
_, cmd, err := configschema.DefineConfiguration(ctx, "baton-postgresql", getConnector, cfg.Config)
24+
_, cmd, err := configschema.DefineConfiguration(
25+
ctx,
26+
"baton-postgresql",
27+
getConnector,
28+
cfg.Config,
29+
connectorrunner.WithDefaultCapabilitiesConnectorBuilder(&connector.Postgresql{}),
30+
)
2431
if err != nil {
2532
fmt.Fprintln(os.Stderr, err.Error())
2633
os.Exit(1)

go.mod

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module github.com/conductorone/baton-postgresql
22

3-
go 1.23.4
3+
go 1.25.2
44

55
require (
6-
github.com/conductorone/baton-sdk v0.3.9
6+
github.com/conductorone/baton-sdk v0.7.3
77
github.com/ennyjfrick/ruleguard-logfatal v0.0.2
88
github.com/georgysavva/scany v1.2.2
99
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
1010
github.com/jackc/pgconn v1.14.3
1111
github.com/jackc/pgx/v4 v4.18.3
1212
github.com/quasilyte/go-ruleguard/dsl v0.3.22
13-
github.com/stretchr/testify v1.10.0
13+
github.com/stretchr/testify v1.11.1
1414
github.com/testcontainers/testcontainers-go v0.37.0
1515
github.com/testcontainers/testcontainers-go/modules/postgres v0.37.0
1616
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0
@@ -24,6 +24,7 @@ require (
2424
filippo.io/age v1.2.1 // indirect
2525
filippo.io/edwards25519 v1.1.0 // indirect
2626
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
27+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
2728
github.com/Microsoft/go-winio v0.6.2 // indirect
2829
github.com/aws/aws-lambda-go v1.47.0 // indirect
2930
github.com/aws/aws-sdk-go-v2 v1.36.3 // indirect
@@ -60,14 +61,12 @@ require (
6061
github.com/docker/docker v28.0.1+incompatible // indirect
6162
github.com/docker/go-connections v0.5.0 // indirect
6263
github.com/docker/go-units v0.5.0 // indirect
63-
github.com/dolthub/maphash v0.1.0 // indirect
6464
github.com/doug-martin/goqu/v9 v9.19.0 // indirect
6565
github.com/dustin/go-humanize v1.0.1 // indirect
66-
github.com/ebitengine/purego v0.8.2 // indirect
66+
github.com/ebitengine/purego v0.9.1 // indirect
6767
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
6868
github.com/felixge/httpsnoop v1.0.4 // indirect
6969
github.com/fsnotify/fsnotify v1.8.0 // indirect
70-
github.com/gammazero/deque v1.0.0 // indirect
7170
github.com/glebarez/go-sqlite v1.22.0 // indirect
7271
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
7372
github.com/go-logr/logr v1.4.2 // indirect
@@ -87,11 +86,11 @@ require (
8786
github.com/jackc/pgtype v1.14.4 // indirect
8887
github.com/jackc/puddle v1.3.0 // indirect
8988
github.com/jellydator/ttlcache/v3 v3.3.0 // indirect
90-
github.com/klauspost/compress v1.17.11 // indirect
89+
github.com/klauspost/compress v1.18.0 // indirect
9190
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
9291
github.com/magiconair/properties v1.8.10 // indirect
9392
github.com/mattn/go-isatty v0.0.20 // indirect
94-
github.com/maypok86/otter v1.2.4 // indirect
93+
github.com/maypok86/otter/v2 v2.2.1 // indirect
9594
github.com/mitchellh/mapstructure v1.5.0 // indirect
9695
github.com/moby/docker-image-spec v1.3.1 // indirect
9796
github.com/moby/patternmatcher v0.6.0 // indirect
@@ -114,9 +113,7 @@ require (
114113
github.com/sagikazarmark/locafero v0.7.0 // indirect
115114
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
116115
github.com/segmentio/ksuid v1.0.4 // indirect
117-
github.com/shirou/gopsutil/v3 v3.24.5 // indirect
118-
github.com/shirou/gopsutil/v4 v4.25.1 // indirect
119-
github.com/shoenig/go-m1cpu v0.1.6 // indirect
116+
github.com/shirou/gopsutil/v4 v4.25.11 // indirect
120117
github.com/sirupsen/logrus v1.9.3 // indirect
121118
github.com/sourcegraph/conc v0.3.0 // indirect
122119
github.com/spf13/afero v1.12.0 // indirect
@@ -125,8 +122,8 @@ require (
125122
github.com/spf13/pflag v1.0.6 // indirect
126123
github.com/spf13/viper v1.19.0 // indirect
127124
github.com/subosito/gotenv v1.6.0 // indirect
128-
github.com/tklauser/go-sysconf v0.3.14 // indirect
129-
github.com/tklauser/numcpus v0.9.0 // indirect
125+
github.com/tklauser/go-sysconf v0.3.16 // indirect
126+
github.com/tklauser/numcpus v0.11.0 // indirect
130127
github.com/yusufpapurcu/wmi v1.2.4 // indirect
131128
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
132129
go.opentelemetry.io/contrib/bridges/otelzap v0.10.0 // indirect
@@ -147,7 +144,8 @@ require (
147144
golang.org/x/net v0.38.0 // indirect
148145
golang.org/x/oauth2 v0.26.0 // indirect
149146
golang.org/x/sync v0.13.0 // indirect
150-
golang.org/x/sys v0.32.0 // indirect
147+
golang.org/x/sys v0.38.0 // indirect
148+
golang.org/x/term v0.31.0 // indirect
151149
golang.org/x/text v0.24.0 // indirect
152150
google.golang.org/genproto/googleapis/api v0.0.0-20250218202821-56aae31c358a // indirect
153151
google.golang.org/genproto/googleapis/rpc v0.0.0-20250219182151-9fdb1cabc7b2 // indirect

go.sum

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
1515
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
1616
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
1717
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
18+
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
19+
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
1820
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
1921
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
2022
github.com/aws/aws-lambda-go v1.47.0 h1:0H8s0vumYx/YKs4sE7YM0ktwL2eWse+kfopsRI1sXVI=
@@ -71,8 +73,8 @@ github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I
7173
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
7274
github.com/cockroachdb/cockroach-go/v2 v2.2.0 h1:/5znzg5n373N/3ESjHF5SMLxiW4RKB05Ql//KWfeTFs=
7375
github.com/cockroachdb/cockroach-go/v2 v2.2.0/go.mod h1:u3MiKYGupPPjkn3ozknpMUpxPaNLTFWAya419/zv6eI=
74-
github.com/conductorone/baton-sdk v0.3.9 h1:D0YiYtRkpRByYsctlREqNG9pb5QAU5DW7sBlccAd3tI=
75-
github.com/conductorone/baton-sdk v0.3.9/go.mod h1:lWZHgu025Rsgs5jvBrhilGti0zWF2+YfaFY/bWOS/g0=
76+
github.com/conductorone/baton-sdk v0.7.3 h1:/5FHAVT7BlPaC7Pe2z2VbUy9UZgylSWoLdiVSSDV3lA=
77+
github.com/conductorone/baton-sdk v0.7.3/go.mod h1:9S5feBOuIJxlNdGmkv3ObkCNHbVyOHr6foNrIrk+d4Y=
7678
github.com/conductorone/dpop v0.2.3 h1:s91U3845GHQ6P6FWrdNr2SEOy1ES/jcFs1JtKSl2S+o=
7779
github.com/conductorone/dpop v0.2.3/go.mod h1:gyo8TtzB9SCFCsjsICH4IaLZ7y64CcrDXMOPBwfq/3s=
7880
github.com/conductorone/dpop/integrations/dpop_grpc v0.2.3 h1:kLMCNIh0Mo2vbvvkCmJ3ixsPbXEJ6HPcW53Ku9yje3s=
@@ -106,14 +108,12 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj
106108
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
107109
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
108110
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
109-
github.com/dolthub/maphash v0.1.0 h1:bsQ7JsF4FkkWyrP3oCnFJgrCUAFbFf3kOl4L/QxPDyQ=
110-
github.com/dolthub/maphash v0.1.0/go.mod h1:gkg4Ch4CdCDu5h6PMriVLawB7koZ+5ijb9puGMV50a4=
111111
github.com/doug-martin/goqu/v9 v9.19.0 h1:PD7t1X3tRcUiSdc5TEyOFKujZA5gs3VSA7wxSvBx7qo=
112112
github.com/doug-martin/goqu/v9 v9.19.0/go.mod h1:nf0Wc2/hV3gYK9LiyqIrzBEVGlI8qW3GuDCEobC4wBQ=
113113
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
114114
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
115-
github.com/ebitengine/purego v0.8.2 h1:jPPGWs2sZ1UgOSgD2bClL0MJIqu58nOmIcBuXr62z1I=
116-
github.com/ebitengine/purego v0.8.2/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=
115+
github.com/ebitengine/purego v0.9.1 h1:a/k2f2HQU3Pi399RPW1MOaZyhKJL9w/xFpKAg4q1s0A=
116+
github.com/ebitengine/purego v0.9.1/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ=
117117
github.com/ennyjfrick/ruleguard-logfatal v0.0.2 h1:FlNMe9+h029VZVD8n6YdFzZAQz/aA8y6WSZttg50yBM=
118118
github.com/ennyjfrick/ruleguard-logfatal v0.0.2/go.mod h1:Ng4Cc8dzYEo8vzB2xd+IOxsO8X1OqO9mNnY4jbngQac=
119119
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
@@ -128,8 +128,6 @@ github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHk
128128
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
129129
github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=
130130
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
131-
github.com/gammazero/deque v1.0.0 h1:LTmimT8H7bXkkCy6gZX7zNLtkbz4NdS2z8LZuor3j34=
132-
github.com/gammazero/deque v1.0.0/go.mod h1:iflpYvtGfM3U8S8j+sZEKIak3SAKYpA5/SQewgfXDKo=
133131
github.com/georgysavva/scany v1.2.2 h1:ckhXrq3HuM+myrLaYg9fEbA/gUFysUz8NSWq12DjoGU=
134132
github.com/georgysavva/scany v1.2.2/go.mod h1:vGBpL5XRLOocMFFa55pj0P04DrL3I7qKVRL49K6Eu5o=
135133
github.com/glebarez/go-sqlite v1.22.0 h1:uAcMJhaA6r3LHMTFgP0SifzgXg46yJkgxqyuyec+ruQ=
@@ -263,8 +261,8 @@ github.com/jinzhu/now v1.1.1/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/
263261
github.com/jmoiron/sqlx v1.3.1/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ=
264262
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
265263
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
266-
github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc=
267-
github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0=
264+
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
265+
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
268266
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
269267
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
270268
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@@ -302,8 +300,8 @@ github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A
302300
github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
303301
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
304302
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
305-
github.com/maypok86/otter v1.2.4 h1:HhW1Pq6VdJkmWwcZZq19BlEQkHtI8xgsQzBVXJU0nfc=
306-
github.com/maypok86/otter v1.2.4/go.mod h1:mKLfoI7v1HOmQMwFgX4QkRk23mX6ge3RDvjdHOWG4R4=
303+
github.com/maypok86/otter/v2 v2.2.1 h1:hnGssisMFkdisYcvQ8L019zpYQcdtPse+g0ps2i7cfI=
304+
github.com/maypok86/otter/v2 v2.2.1/go.mod h1:1NKY9bY+kB5jwCXBJfE59u+zAwOt6C7ni1FTlFFMqVs=
307305
github.com/mdelapenya/tlscert v0.2.0 h1:7H81W6Z/4weDvZBNOfQte5GpIMo0lGYEeWbkGp5LJHI=
308306
github.com/mdelapenya/tlscert v0.2.0/go.mod h1:O4njj3ELLnJjGdkN7M/vIVCpZ+Cf0L6muqOG4tLSl8o=
309307
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
@@ -370,14 +368,8 @@ github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWR
370368
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
371369
github.com/segmentio/ksuid v1.0.4 h1:sBo2BdShXjmcugAMwjugoGUdUV0pcxY5mW4xKRn3v4c=
372370
github.com/segmentio/ksuid v1.0.4/go.mod h1:/XUiZBD3kVx5SmUOl55voK5yeAbBNNIed+2O73XgrPE=
373-
github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI=
374-
github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk=
375-
github.com/shirou/gopsutil/v4 v4.25.1 h1:QSWkTc+fu9LTAWfkZwZ6j8MSUk4A2LV7rbH0ZqmLjXs=
376-
github.com/shirou/gopsutil/v4 v4.25.1/go.mod h1:RoUCUpndaJFtT+2zsZzzmhvbfGoDCJ7nFXKJf8GqJbI=
377-
github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM=
378-
github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ=
379-
github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU=
380-
github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k=
371+
github.com/shirou/gopsutil/v4 v4.25.11 h1:X53gB7muL9Gnwwo2evPSE+SfOrltMoR6V3xJAXZILTY=
372+
github.com/shirou/gopsutil/v4 v4.25.11/go.mod h1:EivAfP5x2EhLp2ovdpKSozecVXn1TmuG7SMzs/Wh4PU=
381373
github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=
382374
github.com/shopspring/decimal v0.0.0-20200227202807-02e2044944cc/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
383375
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
@@ -415,18 +407,18 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
415407
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
416408
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
417409
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
418-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
419-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
410+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
411+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
420412
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
421413
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
422414
github.com/testcontainers/testcontainers-go v0.37.0 h1:L2Qc0vkTw2EHWQ08djon0D2uw7Z/PtHS/QzZZ5Ra/hg=
423415
github.com/testcontainers/testcontainers-go v0.37.0/go.mod h1:QPzbxZhQ6Bclip9igjLFj6z0hs01bU8lrl2dHQmgFGM=
424416
github.com/testcontainers/testcontainers-go/modules/postgres v0.37.0 h1:hsVwFkS6s+79MbKEO+W7A1wNIw1fmkMtF4fg83m6kbc=
425417
github.com/testcontainers/testcontainers-go/modules/postgres v0.37.0/go.mod h1:Qj/eGbRbO/rEYdcRLmN+bEojzatP/+NS1y8ojl2PQsc=
426-
github.com/tklauser/go-sysconf v0.3.14 h1:g5vzr9iPFFz24v2KZXs/pvpvh8/V9Fw6vQK5ZZb78yU=
427-
github.com/tklauser/go-sysconf v0.3.14/go.mod h1:1ym4lWMLUOhuBOPGtRcJm7tEGX4SCYNEEEtghGG/8uY=
428-
github.com/tklauser/numcpus v0.9.0 h1:lmyCHtANi8aRUgkckBgoDk1nHCux3n2cgkJLXdQGPDo=
429-
github.com/tklauser/numcpus v0.9.0/go.mod h1:SN6Nq1O3VychhC1npsWostA+oW+VOQTxZrS604NSRyI=
418+
github.com/tklauser/go-sysconf v0.3.16 h1:frioLaCQSsF5Cy1jgRBrzr6t502KIIwQ0MArYICU0nA=
419+
github.com/tklauser/go-sysconf v0.3.16/go.mod h1:/qNL9xxDhc7tx3HSRsLWNnuzbVfh3e7gh/BmM179nYI=
420+
github.com/tklauser/numcpus v0.11.0 h1:nSTwhKH5e1dMNsCdVBukSZrURJRoHbSEQjdEbY+9RXw=
421+
github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ=
430422
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
431423
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
432424
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
@@ -584,8 +576,8 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
584576
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
585577
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
586578
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
587-
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
588-
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
579+
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
580+
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
589581
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
590582
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
591583
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ var relationships = []field.SchemaFieldRelationship{}
1818
//go:generate go run ./gen
1919
var Config = field.NewConfiguration([]field.SchemaField{
2020
dsn, schemas, includeColumns, includeLargeObjects, syncAllDatabases, skipBuiltInFunctions,
21-
}, relationships...)
21+
}, field.WithConstraints(relationships...))

pkg/connector/function_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestGrantRevokeFunction(t *testing.T) {
2222
require.NoError(t, err)
2323
require.NoError(t, err)
2424
defer func(c1z *dotc1z.C1File) {
25-
err := c1z.Close()
25+
err := c1z.Close(ctx)
2626
require.NoError(t, err)
2727
}(c1z)
2828

pkg/connector/procedure_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestGrantRevokeProcedure(t *testing.T) {
2222
require.NoError(t, err)
2323
require.NoError(t, err)
2424
defer func(c1z *dotc1z.C1File) {
25-
err := c1z.Close()
25+
err := c1z.Close(ctx)
2626
require.NoError(t, err)
2727
}(c1z)
2828

pkg/connector/role.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (r *roleSyncer) RotateCapabilityDetails(ctx context.Context) (*v2.Credentia
287287
func (r *roleSyncer) Rotate(
288288
ctx context.Context,
289289
resourceId *v2.ResourceId,
290-
credentialOptions *v2.CredentialOptions,
290+
credentialOptions *v2.LocalCredentialOptions,
291291
) (
292292
[]*v2.PlaintextData,
293293
annotations.Annotations,
@@ -307,7 +307,7 @@ func (r *roleSyncer) Rotate(
307307
return nil, nil, err
308308
}
309309

310-
plainTextPassword, err := crypto.GeneratePassword(credentialOptions)
310+
plainTextPassword, err := crypto.GeneratePassword(ctx, credentialOptions)
311311
if err != nil {
312312
return nil, nil, err
313313
}
@@ -334,7 +334,7 @@ func (r *roleSyncer) CreateAccountCapabilityDetails(ctx context.Context) (*v2.Cr
334334
func (r *roleSyncer) CreateAccount(
335335
ctx context.Context,
336336
accountInfo *v2.AccountInfo,
337-
credentialOptions *v2.CredentialOptions,
337+
credentialOptions *v2.LocalCredentialOptions,
338338
) (
339339
connectorbuilder.CreateAccountResponse,
340340
[]*v2.PlaintextData,
@@ -355,7 +355,7 @@ func (r *roleSyncer) CreateAccount(
355355
return car, []*v2.PlaintextData{}, nil, nil
356356
}
357357

358-
plainTextPassword, err := crypto.GeneratePassword(credentialOptions)
358+
plainTextPassword, err := crypto.GeneratePassword(ctx, credentialOptions)
359359
if err != nil {
360360
return nil, nil, nil, err
361361
}

pkg/connector/sequence_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestGrantRevokeSequence(t *testing.T) {
2222
require.NoError(t, err)
2323
require.NoError(t, err)
2424
defer func(c1z *dotc1z.C1File) {
25-
err := c1z.Close()
25+
err := c1z.Close(ctx)
2626
require.NoError(t, err)
2727
}(c1z)
2828

pkg/connector/table_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestGrantRevokeTable(t *testing.T) {
2222
require.NoError(t, err)
2323
require.NoError(t, err)
2424
defer func(c1z *dotc1z.C1File) {
25-
err := c1z.Close()
25+
err := c1z.Close(ctx)
2626
require.NoError(t, err)
2727
}(c1z)
2828

0 commit comments

Comments
 (0)