This commit is contained in:
yusing
2025-01-03 18:55:44 +08:00
parent 65afc73f25
commit c506db1ef4
5 changed files with 19 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ type (
zerolog.Logger
host string
client D.Client
client *D.SharedClient
clientOwned bool
}
DockerListOptions = docker_events.ListOptions
@@ -62,7 +62,7 @@ func NewDockerWatcher(host string) DockerWatcher {
}
}
func NewDockerWatcherWithClient(client D.Client) DockerWatcher {
func NewDockerWatcherWithClient(client *D.SharedClient) DockerWatcher {
return DockerWatcher{
client: client,
Logger: logger.With().