From b453738daf8f9effe641ad8cfb0bd3cf660c3df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 28 Jun 2024 03:05:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20docker=E7=9A=84=E5=BC=83=E7=94=A8?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/container.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/container.go b/internal/container.go index 67c84bde1c..e69a81768a 100644 --- a/internal/container.go +++ b/internal/container.go @@ -24,16 +24,16 @@ type Container interface { ContainerInspect(id string) (types.ContainerJSON, error) ContainerKill(id string) error ContainerRename(id string, newName string) error - ContainerStats(id string) (types.ContainerStats, error) + ContainerStats(id string) (container.StatsResponseReader, error) ContainerExist(name string) (bool, error) ContainerUpdate(id string, config container.UpdateConfig) error ContainerLogs(id string) (string, error) ContainerPrune() error - NetworkList() ([]types.NetworkResource, error) + NetworkList() ([]network.Inspect, error) NetworkCreate(config requests.NetworkCreate) (string, error) NetworkRemove(id string) error NetworkExist(name string) (bool, error) - NetworkInspect(id string) (types.NetworkResource, error) + NetworkInspect(id string) (network.Inspect, error) NetworkConnect(networkID string, containerID string) error NetworkDisconnect(networkID string, containerID string) error NetworkPrune() error