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

Method AddSession

pkg/session/store.go:145–151  ·  view source on GitHub ↗
(_ context.Context, session *Session)

Source from the content-addressed store, hash-verified

143}
144
145func (s *InMemorySessionStore) AddSession(_ context.Context, session *Session) error {
146 if session.ID == "" {
147 return ErrEmptyID
148 }
149 s.sessions.Store(session.ID, session)
150 return nil
151}
152
153func (s *InMemorySessionStore) GetSession(_ context.Context, id string) (*Session, error) {
154 if id == "" {

Calls 1

StoreMethod · 0.45