fix: always use container interface

This commit is contained in:
nils måsén 2022-12-31 12:58:31 +01:00
parent fe5077881b
commit 1192d26e16
12 changed files with 146 additions and 111 deletions

View file

@ -1,8 +1,10 @@
package types
import (
"github.com/docker/docker/api/types"
"strings"
"github.com/docker/docker/api/types"
dc "github.com/docker/docker/api/types/container"
)
// ImageID is a hash string representing a container image
@ -62,4 +64,14 @@ type Container interface {
GetLifecyclePostCheckCommand() string
GetLifecyclePreUpdateCommand() string
GetLifecyclePostUpdateCommand() string
VerifyConfiguration() error
SetStale(bool)
IsStale() bool
SetLinkedToRestarting(bool)
IsLinkedToRestarting() bool
PreUpdateTimeout() int
PostUpdateTimeout() int
IsRestarting() bool
GetCreateConfig() *dc.Config
GetCreateHostConfig() *dc.HostConfig
}