MCPcopy
hub / github.com/Tencent/WeKnora / MemStore

Struct MemStore

cli/internal/secrets/secrets.go:109–109  ·  view source on GitHub ↗

MemStore is an in-memory implementation of Store used by tests across packages. It is intentionally exported (not _test.go-only) so that downstream packages can compose it without copying the same 20 lines.

Source from the content-addressed store, hash-verified

107// packages. It is intentionally exported (not _test.go-only) so that
108// downstream packages can compose it without copying the same 20 lines.
109type MemStore struct{ m map[string]string }
110
111// NewMemStore returns an empty in-memory secrets store.
112func NewMemStore() *MemStore { return &MemStore{m: map[string]string{}} }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected