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

Struct localBackend

cmd/root/backend.go:68–75  ·  view source on GitHub ↗

localBackend builds the in-process runtime and session. The session store is owned by the backend (not by individual runtimes) because the TUI's session spawner reuses the same store across spawned sessions. Closing it inside a per-session cleanup would break later session lookups (issue #2872). Th

Source from the content-addressed store, hash-verified

66// lazily opened on the first CreateSession call and closed once when
67// Close is invoked.
68type localBackend struct {
69 flags *runExecFlags
70 agentSource config.Source
71
72 storeOnce sync.Once
73 storeErr error
74 store session.Store
75}
76
77func (b *localBackend) LoadTeamRequest() runtime.LoadTeamRequest {
78 return b.flags.loadTeamRequest(b.agentSource)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected