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

Method GetSession

pkg/session/store.go:695–700  ·  view source on GitHub ↗

GetSession retrieves a session by ID

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

693
694// GetSession retrieves a session by ID
695func (s *SQLiteSessionStore) GetSession(ctx context.Context, id string) (*Session, error) {
696 if id == "" {
697 return nil, ErrEmptyID
698 }
699 return s.loadSession(ctx, s.db, id)
700}
701
702// sessionItemRow holds the raw data from a session_items row
703type sessionItemRow struct {

Calls 1

loadSessionMethod · 0.95