Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/docker-agent
/ GetDatabase
Method
GetDatabase
pkg/runtime/lazy_model_store.go:47–53 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
45
}
46
47
func
(l *lazyModelStore) GetDatabase(ctx context.Context) (*modelsdev.Database, error) {
48
st, err := l.load()
49
if
err != nil {
50
return
nil, err
51
}
52
return
st.GetDatabase(ctx)
53
}
Callers
1
TestLazyModelStore_DefersError
Function · 0.95
Calls
2
load
Method · 0.95
GetDatabase
Method · 0.65
Tested by
1
TestLazyModelStore_DefersError
Function · 0.76