MCPcopy Create free account
hub / github.com/docker/docker-agent / Close

Method Close

cmd/root/backend.go:172–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172func (b *localBackend) Close() error {
173 // Ensure any in-progress sessionStore initialization is observed
174 // before reading b.store. If sessionStore was never called, the Do
175 // runs an empty closure and b.store stays nil.
176 b.storeOnce.Do(func() {})
177 if b.store == nil {
178 return nil
179 }
180 return b.store.Close()
181}
182
183// remoteBackend talks to a docker-agent server.
184type remoteBackend struct {

Callers

nothing calls this directly

Calls 2

DoMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected