MCPcopy Create free account
hub / github.com/docker/secrets-engine / MockStore

Struct MockStore

plugins/pass/teststore/teststore.go:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27var _ store.Store = &MockStore{}
28
29type MockStore struct {
30 lock sync.RWMutex
31 errSave error
32 errGetAll error
33 errDelete error
34 errGet error
35 errFilter error
36 errUpsert error
37 store map[store.ID]store.Secret
38}
39
40func NewMockStore(options ...Option) store.Store {
41 s := &MockStore{store: map[store.ID]store.Secret{}}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected