mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
fix: update Docker Go SDK types for v28.5.2 compatibility
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"github.com/honeywire/wizard/core/discovery"
|
"github.com/honeywire/wizard/core/discovery"
|
||||||
"github.com/honeywire/wizard/core/scanner"
|
"github.com/honeywire/wizard/core/scanner"
|
||||||
@@ -468,7 +468,7 @@ func buildDockerPortMap() (map[int]string, error) {
|
|||||||
}
|
}
|
||||||
defer cli.Close()
|
defer cli.Close()
|
||||||
|
|
||||||
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
|
containers, err := cli.ContainerList(ctx, container.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
"github.com/docker/docker/client"
|
"github.com/docker/docker/client"
|
||||||
"github.com/honeywire/wizard/internal/cli"
|
"github.com/honeywire/wizard/internal/cli"
|
||||||
@@ -48,7 +48,7 @@ func HandleFiredrill() error {
|
|||||||
f.Add("label", fmt.Sprintf("com.docker.compose.project=%s", deploy.ProjectName))
|
f.Add("label", fmt.Sprintf("com.docker.compose.project=%s", deploy.ProjectName))
|
||||||
|
|
||||||
listCtx, listCancel := context.WithTimeout(context.Background(), 10*time.Second)
|
listCtx, listCancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||||
containers, err := dockerClient.ContainerList(listCtx, types.ContainerListOptions{
|
containers, err := dockerClient.ContainerList(listCtx, container.ListOptions{
|
||||||
Filters: f,
|
Filters: f,
|
||||||
})
|
})
|
||||||
listCancel()
|
listCancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user