Skip to content

Commit 872745c

Browse files
committed
updated docker api
1 parent 1427dd2 commit 872745c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ require (
271271
go.uber.org/zap v1.26.0 // indirect
272272
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
273273
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect
274+
golang.org/x/mobile v0.0.0-20260204172633-1dceadbbeea3 // indirect
274275
golang.org/x/mod v0.32.0 // indirect
275276
golang.org/x/net v0.49.0 // indirect
276277
golang.org/x/oauth2 v0.16.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,8 @@ golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPI
11871187
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
11881188
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
11891189
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
1190+
golang.org/x/mobile v0.0.0-20260204172633-1dceadbbeea3 h1:NiJtT7g4ncNFVjVZMAYNBrPSNhIjFYPj8UKA8MEw2A4=
1191+
golang.org/x/mobile v0.0.0-20260204172633-1dceadbbeea3/go.mod h1:wReH3Q1agKmmLapipWFnd4NSs8KPz3fK6mSEZjXLkrg=
11901192
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
11911193
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
11921194
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=

wap/pkg/wifi/properties.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"strconv"
1717
"strings"
1818

19-
"github.com/docker/docker/api/types"
19+
"github.com/docker/docker/api/types/container"
2020
"github.com/docker/docker/client"
2121
"github.com/ipfs/kubo/client/rpc"
2222
"github.com/libp2p/go-libp2p/core/crypto"
@@ -310,7 +310,7 @@ func GetContainerInfo(containerName string) (DockerInfo, error) {
310310
return DockerInfo{}, err
311311
}
312312

313-
containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{})
313+
containers, err := cli.ContainerList(context.Background(), container.ListOptions{})
314314
if err != nil {
315315
return DockerInfo{}, err
316316
}
@@ -425,7 +425,7 @@ func fetchLogsFromDocker(ctx context.Context, containerName string, tailCount st
425425
return "", fmt.Errorf("creating Docker client: %w", err)
426426
}
427427

428-
options := types.ContainerLogsOptions{
428+
options := container.LogsOptions{
429429
ShowStdout: true,
430430
ShowStderr: true,
431431
Tail: tailCount, // Adjust the number of lines as needed

0 commit comments

Comments
 (0)