Skip to content

Commit d979c37

Browse files
upgrade defang/src pkg
1 parent ce593bd commit d979c37

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

go.mod

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/DefangLabs/pulumi-defang
33
go 1.22.12
44

55
require (
6-
github.com/DefangLabs/defang/src v0.0.0-20250226233239-e0f4f715d6f8
6+
github.com/DefangLabs/defang/src v0.0.0-20250311052902-1d12330e66fe
77
github.com/blang/semver v3.5.1+incompatible
88
github.com/pulumi/pulumi-go-provider v0.24.1
99
github.com/pulumi/pulumi-random/sdk/v4 v4.17.0
@@ -29,6 +29,7 @@ require (
2929
dario.cat/mergo v1.0.0 // indirect
3030
github.com/AlecAivazis/survey/v2 v2.3.7 // indirect
3131
github.com/BurntSushi/toml v1.2.1 // indirect
32+
github.com/DefangLabs/secret-detector v0.0.0-20250108223530-c2b44d4c1f8f // indirect
3233
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1 // indirect
3334
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 // indirect
3435
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 // indirect
@@ -96,6 +97,7 @@ require (
9697
github.com/go-viper/mapstructure/v2 v2.0.0 // indirect
9798
github.com/gofrs/uuid v4.3.1+incompatible // indirect
9899
github.com/gogo/protobuf v1.3.2 // indirect
100+
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
99101
github.com/golang/glog v1.2.2 // indirect
100102
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
101103
github.com/google/go-querystring v1.1.0 // indirect
@@ -111,6 +113,7 @@ require (
111113
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
112114
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
113115
github.com/inconshreveable/mousetrap v1.1.0 // indirect
116+
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf // indirect
114117
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
115118
github.com/jmespath/go-jmespath v0.4.0 // indirect
116119
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
@@ -194,6 +197,7 @@ require (
194197
google.golang.org/grpc v1.68.0 // indirect
195198
google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a // indirect
196199
google.golang.org/protobuf v1.35.1 // indirect
200+
gopkg.in/ini.v1 v1.66.2 // indirect
197201
gopkg.in/warnings.v0 v0.1.2 // indirect
198202
gopkg.in/yaml.v3 v3.0.1 // indirect
199203
lukechampine.com/frand v1.4.2 // indirect

go.sum

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ github.com/DefangLabs/defang/src v0.0.0-20250226201629-30d9b0b6a7d0 h1:DWul+71l5
5454
github.com/DefangLabs/defang/src v0.0.0-20250226201629-30d9b0b6a7d0/go.mod h1:tuchtwC2rtNdYNiPO175GWksVvpgeEIDYMscO9lnmks=
5555
github.com/DefangLabs/defang/src v0.0.0-20250226233239-e0f4f715d6f8 h1:PWRiQITxWkXG0XI0hukdkGbHyloboKeEEPIAnJEVWSM=
5656
github.com/DefangLabs/defang/src v0.0.0-20250226233239-e0f4f715d6f8/go.mod h1:tuchtwC2rtNdYNiPO175GWksVvpgeEIDYMscO9lnmks=
57+
github.com/DefangLabs/defang/src v0.0.0-20250311052902-1d12330e66fe h1:4V9IBDzQPETMxh7E/2Pt7+4pQS62IMT1SXGCjS3ZM34=
58+
github.com/DefangLabs/defang/src v0.0.0-20250311052902-1d12330e66fe/go.mod h1:KPuA2k/zWEwuCUsD+hCnz1N3z2XXfy9L/1McQ1+msZI=
59+
github.com/DefangLabs/secret-detector v0.0.0-20250108223530-c2b44d4c1f8f h1:RTbUqLhPxejgK92ifVdMTIW9H23QLlscy8QXPDTfaL4=
60+
github.com/DefangLabs/secret-detector v0.0.0-20250108223530-c2b44d4c1f8f/go.mod h1:2UjtD/G/Sy2FxoHpxKnzHTXMpRURecwYal8HgbxcvkY=
5761
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1 h1:pB2F2JKCj1Znmp2rwxxt1J0Fg0wezTMgWYk5Mpbi1kg=
5862
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.24.1/go.mod h1:itPGVDKf9cC/ov4MdvJ2QZ0khw4bfoo9jzwTJlaxy2k=
5963
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 h1:UQ0AhxogsIRZDkElkblfnwjc3IaltCm2HUMvezQaL7s=
@@ -227,6 +231,8 @@ github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRx
227231
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
228232
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
229233
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
234+
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
235+
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
230236
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
231237
github.com/golang/glog v1.2.2 h1:1+mZ9upx1Dh6FmUTFR1naJ77miKiXgALjWOZ3NVFPmY=
232238
github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
@@ -293,6 +299,8 @@ github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs
293299
github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
294300
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
295301
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
302+
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf h1:FtEj8sfIcaaBfAKrE1Cwb61YDtYq9JxChK1c7AKce7s=
303+
github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf/go.mod h1:yrqSXGoD/4EKfF26AOGzscPOgTTJcyAwM2rpixWT+t4=
296304
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
297305
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
298306
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
@@ -616,6 +624,8 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
616624
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
617625
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
618626
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
627+
gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI=
628+
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
619629
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
620630
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
621631
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

tests/cloud_provider_mock.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,25 @@ func (c CloudProviderMock) Subscribe(
209209
func (c CloudProviderMock) TearDown(context.Context) error {
210210
return nil
211211
}
212+
213+
func (c CloudProviderMock) QueryForDebug(context.Context, *defangv1.DebugRequest) error {
214+
return nil
215+
}
216+
217+
func (c CloudProviderMock) QueryLogs(
218+
context.Context,
219+
*defangv1.TailRequest,
220+
) (client.ServerStream[defangv1.TailResponse], error) {
221+
msg := defangv1.TailResponse{
222+
Service: "service1",
223+
Etag: "abc123",
224+
Entries: []*defangv1.LogEntry{
225+
{
226+
Timestamp: timestamppb.Now(),
227+
Message: "info message",
228+
},
229+
},
230+
}
231+
stream := &MockFollowServerStream{msg: &msg}
232+
return stream, nil
233+
}

0 commit comments

Comments
 (0)