3
0
mirror of https://github.com/kolaente/docker-db-backup.git synced 2026-03-25 05:53:48 +01:00

fix(deps): update module github.com/docker/docker to v28 (#3)

Also updates all affected new types.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: kolaente <k@knt.li>
This commit is contained in:
renovate[bot]
2026-01-07 09:18:44 +01:00
committed by GitHub
parent ce57987ade
commit c1bcc56574
10 changed files with 131 additions and 66 deletions

View File

@@ -2,7 +2,8 @@ package main
import (
"context"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/client"
)
@@ -10,6 +11,6 @@ func getClient() (*client.Client, error) {
return client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
}
func getContainers(c *client.Client) ([]types.Container, error) {
return c.ContainerList(context.Background(), types.ContainerListOptions{All: true})
func getContainers(c *client.Client) ([]container.Summary, error) {
return c.ContainerList(context.Background(), container.ListOptions{All: true})
}