MCPcopy
hub / github.com/docker/docker-agent / IsTerminal

Method IsTerminal

pkg/tools/lifecycle/state.go:61–61  ·  view source on GitHub ↗

IsTerminal reports whether s requires external action (Start/Restart/Stop) to leave.

()

Source from the content-addressed store, hash-verified

59// IsTerminal reports whether s requires external action (Start/Restart/Stop)
60// to leave.
61func (s State) IsTerminal() bool { return s == StateStopped || s == StateFailed }
62
63// IsUsable reports whether the toolset can serve requests in this state
64// (Ready or Degraded).

Callers 13

TestState_IsTerminalFunction · 0.80
RestartMethod · 0.80
RestartMethod · 0.80
confirmModelPullFunction · 0.80
NewPrinterFunction · 0.80
RunFunction · 0.80
stderrSupportsColorFunction · 0.80
isInteractiveFunction · 0.80
newGettingStartedCmdFunction · 0.80
runEvalCommandMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestState_IsTerminalFunction · 0.64