Skip to content

Commit 21e628d

Browse files
go.mod: bump github.com/docker/docker from 27.5.1+incompatible to 28.0.1+incompatible (#6)
* go.mod: bump github.com/docker/docker Bumps [github.com/docker/docker](https://github.com/docker/docker) from 27.5.1+incompatible to 28.0.1+incompatible. - [Release notes](https://github.com/docker/docker/releases) - [Commits](moby/moby@v27.5.1...v28.0.1) --- updated-dependencies: - dependency-name: github.com/docker/docker dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * replace deprecated types --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Haris Osmanagic <haris@meroxa.io>
1 parent 0f714b5 commit 21e628d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

cmd/benchi/internal/containermonitor.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
tea "github.com/charmbracelet/bubbletea"
2828
"github.com/charmbracelet/lipgloss"
2929
"github.com/docker/docker/api/types"
30+
"github.com/docker/docker/api/types/container"
3031
"github.com/docker/docker/client"
3132
"github.com/docker/docker/errdefs"
3233
)
@@ -46,21 +47,21 @@ type ContainerMonitorModel struct {
4647
ctx context.Context
4748
client client.APIClient
4849
interval time.Duration
49-
containers []types.ContainerJSON
50+
containers []container.InspectResponse
5051
}
5152

5253
// containerMonitorModelID serves as a unique id generator for ContainerMonitorModel.
5354
var containerMonitorModelID atomic.Int32
5455

5556
type ContainerMonitorModelMsg struct {
56-
containers []types.ContainerJSON
57+
containers []container.InspectResponse
5758
id int32
5859
}
5960

6061
func NewContainerMonitorModel(ctx context.Context, client client.APIClient, containerNames []string) ContainerMonitorModel {
61-
containers := make([]types.ContainerJSON, len(containerNames))
62+
containers := make([]container.InspectResponse, len(containerNames))
6263
for i, name := range containerNames {
63-
containers[i] = types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{Name: name}}
64+
containers[i] = container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{Name: name}}
6465
}
6566
return ContainerMonitorModel{
6667
id: containerMonitorModelID.Add(1),
@@ -141,7 +142,7 @@ func (m ContainerMonitorModel) scheduleRefreshCmd() tea.Cmd {
141142
} else {
142143
m.logger.Error("Failed to inspect container", "name", c.Name, "error", err)
143144
}
144-
containersTmp[i] = types.ContainerJSON{ContainerJSONBase: &types.ContainerJSONBase{Name: c.Name}}
145+
containersTmp[i] = container.InspectResponse{ContainerJSONBase: &container.ContainerJSONBase{Name: c.Name}}
145146
continue
146147
}
147148
// Docker inspect returns the internal docker container name which

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/charmbracelet/bubbles v0.20.0
77
github.com/charmbracelet/bubbletea v1.3.4
88
github.com/charmbracelet/lipgloss v1.0.0
9-
github.com/docker/docker v27.5.1+incompatible
9+
github.com/docker/docker v28.0.1+incompatible
1010
github.com/golangci/golangci-lint v1.64.6
1111
github.com/lmittmann/tint v1.0.7
1212
github.com/mitchellh/mapstructure v1.5.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK
147147
github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
148148
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
149149
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
150-
github.com/docker/docker v27.5.1+incompatible h1:4PYU5dnBYqRQi0294d1FBECqT9ECWeQAIfE8q4YnPY8=
151-
github.com/docker/docker v27.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
150+
github.com/docker/docker v28.0.1+incompatible h1:FCHjSRdXhNRFjlHMTv4jUNlIBbTeRjrWfeFuJp7jpo0=
151+
github.com/docker/docker v28.0.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
152152
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
153153
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
154154
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=

0 commit comments

Comments
 (0)