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

Method GetSessions

pkg/session/store.go:164–171  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

162}
163
164func (s *InMemorySessionStore) GetSessions(_ context.Context) ([]*Session, error) {
165 sessions := make([]*Session, 0, s.sessions.Length())
166 s.sessions.Range(func(key string, value *Session) bool {
167 sessions = append(sessions, value)
168 return true
169 })
170 return sessions, nil
171}
172
173func (s *InMemorySessionStore) GetSessionSummaries(_ context.Context) ([]Summary, error) {
174 summaries := make([]Summary, 0, s.sessions.Length())

Callers

nothing calls this directly

Calls 2

LengthMethod · 0.45
RangeMethod · 0.45

Tested by

no test coverage detected