Skip to content

Commit ac6e32c

Browse files
committed
daemon: deprecate Daemon.IsPaused
This function was poorly documented as it uses fuzzy matching under the hood, and it's no longer used. Mark it as deprecated, and to be removed in the next release. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent d47c31f commit ac6e32c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

daemon/container.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func (daemon *Daemon) Exists(id string) bool {
7878
}
7979

8080
// IsPaused returns a bool indicating if the specified container is paused.
81+
//
82+
// Deprecated: use [Daemon.GetContainer] to look up a container by ID, Name, or ID-prefix, and use [container.State.IsPaused]. This function will be removed in the next release.
8183
func (daemon *Daemon) IsPaused(id string) bool {
8284
c, _ := daemon.GetContainer(id)
8385
return c.State.IsPaused()

0 commit comments

Comments
 (0)