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

Method GetSessions

pkg/server/session_manager.go:484–490  ·  view source on GitHub ↗

GetSessions retrieves all sessions.

(ctx context.Context)

Source from the content-addressed store, hash-verified

482
483// GetSessions retrieves all sessions.
484func (sm *SessionManager) GetSessions(ctx context.Context) ([]*session.Session, error) {
485 sessions, err := sm.sessionStore.GetSessions(ctx)
486 if err != nil {
487 return nil, err
488 }
489 return sessions, nil
490}
491
492// DeleteSession deletes a session by ID. It cancels the runtime context and
493// removes the session from all registries. Callers that need to wait for

Callers

nothing calls this directly

Calls 1

GetSessionsMethod · 0.65

Tested by

no test coverage detected