Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ NewFileSource
Function
NewFileSource
pkg/config/sources.go:41–45 ·
view source on GitHub ↗
(path string)
Source
from the content-addressed store, hash-verified
39
}
40
41
func
NewFileSource(path string) Source {
42
return
fileSource{
43
path: path,
44
}
45
}
46
47
func
(a fileSource) Name() string {
48
return
a.path
Callers
15
TestLoadExamples
Function · 0.92
TestLoadWithConfig_CachePathTraversal
Function · 0.92
TestAutoRegisterModels
Function · 0.85
TestAutoRegisterAlloy
Function · 0.85
TestAlloyModelComposition
Function · 0.85
TestAlloyModelNestedComposition
Function · 0.85
TestMigrate_v0_v1_provider
Function · 0.85
TestMigrate_v1_provider
Function · 0.85
TestMigrate_v0_v1_todo
Function · 0.85
TestMigrate_v1_todo
Function · 0.85
TestMigrate_v0_v1_shared_todo
Function · 0.85
TestMigrate_v1_shared_todo
Function · 0.85
Calls
no outgoing calls
Tested by
15
TestLoadExamples
Function · 0.74
TestLoadWithConfig_CachePathTraversal
Function · 0.74
TestAutoRegisterModels
Function · 0.68
TestAutoRegisterAlloy
Function · 0.68
TestAlloyModelComposition
Function · 0.68
TestAlloyModelNestedComposition
Function · 0.68
TestMigrate_v0_v1_provider
Function · 0.68
TestMigrate_v1_provider
Function · 0.68
TestMigrate_v0_v1_todo
Function · 0.68
TestMigrate_v1_todo
Function · 0.68
TestMigrate_v0_v1_shared_todo
Function · 0.68
TestMigrate_v1_shared_todo
Function · 0.68