Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/docker/docker-agent
/ Read
Method
Read
pkg/config/sources.go:31–31 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
29
Name() string
30
ParentDir() string
31
Read(ctx context.Context) ([]byte, error)
32
}
33
34
type
Sources
map
[string]Source
Callers
15
GenerateState
Function · 0.65
fileKeyringPassphrase
Function · 0.65
encryptionKey
Method · 0.65
persistLocked
Method · 0.65
randomToken
Function · 0.65
watchConn
Method · 0.65
performHTTPRequest
Method · 0.65
detectMimeTypeFromFile
Function · 0.65
isTextByContent
Function · 0.65
readKeys
Function · 0.65
PrintToolCallWithConfirmation
Method · 0.65
PackageFileAsOCIToStore
Function · 0.65
Implementers
6
mockSource
pkg/server/source_loader_test.go
sourceLoader
pkg/server/source_loader.go
fileSource
pkg/config/sources.go
bytesSource
pkg/config/sources.go
ociSource
pkg/config/sources.go
urlSource
pkg/config/sources.go
Calls
no outgoing calls
Tested by
15
TestSourceLoader_Read_WithRefreshInterval_BeforeExpiry
Function · 0.52
TestSourceLoader_Read_WithRefreshInterval_AfterExpiry
Function · 0.52
TestSourceLoader_Read_Error
Function · 0.52
TestSourceLoader_Read_DataChanges
Function · 0.52
TestSourceLoader_Read_ZeroRefreshInterval
Function · 0.52
TestSourceLoader_SuccessThenError
Function · 0.52
TestOCISource_Read_MemoizesSuccessfulReads
Function · 0.52
TestOCISource_Read_DoesNotCacheFailures
Function · 0.52
TestOCISource_Read_CacheIsScopedToRegistry
Function · 0.52
TestOCISource_Read_DoesNotCacheDegradedFallback
Function · 0.52
TestURLSource_Read
Function · 0.52
TestURLSource_Read_HTTPError
Function · 0.52