mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon/container: remove deprecated StateStatus, WaitCondition
These were deprecated in100102108b, 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:
@@ -58,14 +58,6 @@ type State struct {
|
||||
task libcontainerdtypes.Task
|
||||
}
|
||||
|
||||
// StateStatus is used to return container wait results.
|
||||
// Implements exec.ExitCode interface.
|
||||
// This type is needed as State include a sync.Mutex field which make
|
||||
// copying it unsafe.
|
||||
//
|
||||
// Deprecated: use [container.StateStatus] instead.
|
||||
type StateStatus = container.StateStatus
|
||||
|
||||
// NewState creates a default state object.
|
||||
func NewState() *State {
|
||||
return &State{}
|
||||
@@ -153,20 +145,6 @@ func IsValidStateString(s container.ContainerState) bool {
|
||||
return container.ValidateContainerState(s) == nil
|
||||
}
|
||||
|
||||
// WaitCondition is an enum type for different states to wait for.
|
||||
//
|
||||
// Deprecated: use [container.WaitCondition] instead.
|
||||
type WaitCondition = container.WaitCondition
|
||||
|
||||
const (
|
||||
// Deprecated: use [container.WaitConditionNotRunning] instead.
|
||||
WaitConditionNotRunning = container.WaitConditionNotRunning
|
||||
// Deprecated: use [container.WaitConditionNextExit] instead.
|
||||
WaitConditionNextExit = container.WaitConditionNextExit
|
||||
// Deprecated: use [container.WaitConditionRemoved] instead.
|
||||
WaitConditionRemoved = container.WaitConditionRemoved
|
||||
)
|
||||
|
||||
// Wait waits until the container is in a certain state indicated by the given
|
||||
// condition. A context must be used for cancelling the request, controlling
|
||||
// timeouts, and avoiding goroutine leaks. Wait must be called without holding
|
||||
|
||||
Reference in New Issue
Block a user