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

Struct stubModelStore

pkg/runtime/gateway_models_test.go:23–26  ·  view source on GitHub ↗

stubModelStore is a ModelStore backed by in-memory data, used to verify which of the gateway / catalog code paths populated the picker.

Source from the content-addressed store, hash-verified

21// stubModelStore is a ModelStore backed by in-memory data, used to verify
22// which of the gateway / catalog code paths populated the picker.
23type stubModelStore struct {
24 db *modelsdev.Database
25 models map[string]*modelsdev.Model
26}
27
28func (s stubModelStore) GetModel(_ context.Context, id modelsdev.ID) (*modelsdev.Model, error) {
29 if m, ok := s.models[id.String()]; ok {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected