mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon/container: remove deprecated IsValidHealthString
This was deprecated indf662ebc59, which was part of v28.2, but the container package was moved inside the daemon in5419eb1efc, so these aliases were no longer useful. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -99,14 +99,6 @@ func (s *State) String() string {
|
||||
return fmt.Sprintf("Exited (%d) %s ago", s.ExitCodeValue, units.HumanDuration(time.Now().UTC().Sub(s.FinishedAt)))
|
||||
}
|
||||
|
||||
// IsValidHealthString checks if the provided string is a valid
|
||||
// [container.HealthStatus].
|
||||
//
|
||||
// Deprecated: use [container.ValidateHealthStatus] and check for nil-errors.
|
||||
func IsValidHealthString(s string) bool {
|
||||
return container.ValidateHealthStatus(s) == nil
|
||||
}
|
||||
|
||||
// StateString returns the container's current [ContainerState], based on the
|
||||
// [State.Running], [State.Paused], [State.Restarting], [State.RemovalInProgress],
|
||||
// [State.StartedAt] and [State.Dead] fields.
|
||||
|
||||
Reference in New Issue
Block a user