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

Method AttachedFilesSnapshot

pkg/session/session.go:742–746  ·  view source on GitHub ↗

AttachedFilesSnapshot returns a copy of the session's attached file paths. Callers may freely mutate the returned slice without affecting the session.

()

Source from the content-addressed store, hash-verified

740// AttachedFilesSnapshot returns a copy of the session's attached file paths.
741// Callers may freely mutate the returned slice without affecting the session.
742func (s *Session) AttachedFilesSnapshot() []string {
743 s.mu.RLock()
744 defer s.mu.RUnlock()
745 return slices.Clone(s.AttachedFiles)
746}
747
748type Opt func(s *Session)
749

Callers 7

copySessionMetadataFunction · 0.80
TestAddAttachedFileFunction · 0.80
TestWithAttachedFilesFunction · 0.80
newSubSessionFunction · 0.80
RunSkillForkMethod · 0.80

Implementers 7

fakeSessionpkg/tools/lifecycle/supervisor_test.go
sessionClientpkg/tools/mcp/session_client.go
mockMCPClientpkg/tools/mcp/mcp_test.go
reconnectableMockClientpkg/tools/mcp/mcp_test.go
failingInitClientpkg/tools/mcp/reconnect_test.go
clientSessionpkg/tools/mcp/mcp.go
lspSessionpkg/tools/builtin/lsp/lsp_lifecycle.go

Calls 1

CloneMethod · 0.45