MCPcopy Index your code
hub / github.com/docker/docker-agent / lifecycleStateForUnsupervised

Function lifecycleStateForUnsupervised

pkg/runtime/runtime.go:1085–1090  ·  view source on GitHub ↗
(ts tools.ToolSet)

Source from the content-addressed store, hash-verified

1083}
1084
1085func lifecycleStateForUnsupervised(ts tools.ToolSet) lifecycle.State {
1086 if s, ok := ts.(*tools.StartableToolSet); ok && !s.IsStarted() {
1087 return lifecycle.StateStopped
1088 }
1089 return lifecycle.StateReady
1090}
1091
1092// nameFor picks a stable, user-visible name for a toolset. We look for
1093// any inner toolset that implements tools.Named (walked via tools.As so

Callers 1

toolsetStatusForFunction · 0.85

Calls 1

IsStartedMethod · 0.65

Tested by

no test coverage detected