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

Struct recoveryFailingToolSet

pkg/tools/startable_test.go:328–331  ·  view source on GitHub ↗

recoveryFailingToolSet simulates a toolset that starts successfully on the first attempt (Start) and then fails on every Restart call, representing a toolset that was working but became unavailable.

Source from the content-addressed store, hash-verified

326// the first attempt (Start) and then fails on every Restart call,
327// representing a toolset that was working but became unavailable.
328type recoveryFailingToolSet struct {
329 started bool
330 restartErr error
331}
332
333func (r *recoveryFailingToolSet) Tools(context.Context) ([]tools.Tool, error) { return nil, nil }
334func (r *recoveryFailingToolSet) IsStarted() bool { return r.started }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected