Versions in this module Expand all Collapse all v1 v1.0.1 Apr 6, 2026 v1.0.0 Apr 6, 2026 Changes in this version + func ContainsWatchtowerLabel(labels map[string]string) bool + func GetRunningContainerID() (cid types.ContainerID, err error) + type Client interface + ExecuteCommand func(containerID t.ContainerID, command string, timeout int) (SkipUpdate bool, err error) + GetContainer func(containerID t.ContainerID) (t.Container, error) + IsContainerStale func(t.Container, t.UpdateParams) (stale bool, latestImage t.ImageID, err error) + ListContainers func(t.Filter) ([]t.Container, error) + RemoveImageByID func(t.ImageID) error + RenameContainer func(t.Container, string) error + StartContainer func(t.Container) (t.ContainerID, error) + StopContainer func(t.Container, time.Duration) error + WarnOnHeadPullFailed func(container t.Container) bool + func NewClient(opts ClientOptions) Client + type ClientOptions struct + IncludeRestarting bool + IncludeStopped bool + RemoveVolumes bool + ReviveStopped bool + WarnOnHeadFailed WarningStrategy + type Container struct + LinkedToRestarting bool + Stale bool + func NewContainer(containerInfo *types.ContainerJSON, imageInfo *types.ImageInspect) *Container + func (c *Container) IsLinkedToRestarting() bool + func (c *Container) IsStale() bool + func (c *Container) SetLinkedToRestarting(value bool) + func (c *Container) SetStale(value bool) + func (c Container) ContainerInfo() *types.ContainerJSON + func (c Container) Enabled() (bool, bool) + func (c Container) GetCreateConfig() *dockercontainer.Config + func (c Container) GetCreateHostConfig() *dockercontainer.HostConfig + func (c Container) GetLifecyclePostCheckCommand() string + func (c Container) GetLifecyclePostUpdateCommand() string + func (c Container) GetLifecyclePreCheckCommand() string + func (c Container) GetLifecyclePreUpdateCommand() string + func (c Container) HasImageInfo() bool + func (c Container) ID() wt.ContainerID + func (c Container) ImageID() wt.ImageID + func (c Container) ImageInfo() *types.ImageInspect + func (c Container) ImageName() string + func (c Container) IsMonitorOnly(params wt.UpdateParams) bool + func (c Container) IsNoPull(params wt.UpdateParams) bool + func (c Container) IsRestarting() bool + func (c Container) IsRunning() bool + func (c Container) IsWatchtower() bool + func (c Container) Links() []string + func (c Container) Name() string + func (c Container) PostUpdateTimeout() int + func (c Container) PreUpdateTimeout() int + func (c Container) SafeImageID() wt.ImageID + func (c Container) Scope() (string, bool) + func (c Container) StopSignal() string + func (c Container) ToRestart() bool + func (c Container) VerifyConfiguration() error + type WarningStrategy string + const WarnAlways + const WarnAuto + const WarnNever