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

Struct recoveryAuthToolSet

pkg/runtime/runtime_test.go:1419–1422  ·  view source on GitHub ↗

recoveryAuthToolSet simulates a toolset whose first Start() always succeeds, and whose Restart() returns a configurable error (used to simulate a background invalid_token loss after a prior successful start). IsStarted() reflects live connection state so StartableToolSet.Start() can detect the "inne

Source from the content-addressed store, hash-verified

1417// IsStarted() reflects live connection state so StartableToolSet.Start() can
1418// detect the "inner went dead" recovery scenario.
1419type recoveryAuthToolSet struct {
1420 started bool
1421 restartErr error
1422}
1423
1424func (r *recoveryAuthToolSet) Tools(context.Context) ([]tools.Tool, error) { return nil, nil }
1425func (r *recoveryAuthToolSet) Start(context.Context) error { r.started = true; return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected