MCPcopy Create free account
hub / github.com/docker/docker-agent / GetDatabase

Method GetDatabase

pkg/modelsdev/store.go:148–150  ·  view source on GitHub ↗

GetDatabase returns the models.dev database, fetching from cache or API as needed.

(ctx context.Context)

Source from the content-addressed store, hash-verified

146
147// GetDatabase returns the models.dev database, fetching from cache or API as needed.
148func (s *Store) GetDatabase(ctx context.Context) (*Database, error) {
149 return s.getDatabase(ctx, true)
150}
151
152// getDatabase returns the models.dev database. When allowFetch is false the
153// catalog is served from memory or the on-disk cache only and the network is

Callers

nothing calls this directly

Calls 1

getDatabaseMethod · 0.95

Tested by

no test coverage detected