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

Method GetSession

pkg/server/session_manager.go:217–223  ·  view source on GitHub ↗

GetSession retrieves a session by ID.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

215
216// GetSession retrieves a session by ID.
217func (sm *SessionManager) GetSession(ctx context.Context, id string) (*session.Session, error) {
218 sess, err := sm.sessionStore.GetSession(ctx, id)
219 if err != nil {
220 return nil, err
221 }
222 return sess, nil
223}
224
225// WaitSessionAttached blocks until a runtime is attached for sessionID (i.e.
226// the session is ready to accept follow-ups and produce events), the timeout

Callers

nothing calls this directly

Calls 1

GetSessionMethod · 0.65

Tested by

no test coverage detected