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

Method CurrentAgentToolsetStatuses

pkg/runtime/runtime.go:992–1003  ·  view source on GitHub ↗

CurrentAgentToolsetStatuses returns one ToolsetStatus per toolset of the active agent. The list is in declaration order. Toolsets that wrap another (StartableToolSet, Multiplexer) are unwrapped so the inner supervisor's state is visible.

()

Source from the content-addressed store, hash-verified

990// another (StartableToolSet, Multiplexer) are unwrapped so the inner
991// supervisor's state is visible.
992func (r *LocalRuntime) CurrentAgentToolsetStatuses() []tools.ToolsetStatus {
993 a := r.CurrentAgent()
994 if a == nil {
995 return nil
996 }
997 toolSets := a.ToolSets()
998 statuses := make([]tools.ToolsetStatus, 0, len(toolSets))
999 for _, ts := range toolSets {
1000 statuses = append(statuses, toolsetStatusFor(ts))
1001 }
1002 return statuses
1003}
1004
1005// AgentToolsetStatuses returns one ToolsetStatus per toolset of the named
1006// agent, in declaration order. It mirrors CurrentAgentToolsetStatuses but for

Callers

nothing calls this directly

Calls 3

CurrentAgentMethod · 0.95
toolsetStatusForFunction · 0.85
ToolSetsMethod · 0.80

Tested by

no test coverage detected