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

Method GetAllMetadata

plugins/pass/teststore/teststore.go:117–124  ·  view source on GitHub ↗
(_ context.Context)

Source from the content-addressed store, hash-verified

115}
116
117func (m *MockStore) GetAllMetadata(_ context.Context) (map[store.ID]store.Secret, error) {
118 m.lock.RLock()
119 defer m.lock.RUnlock()
120 if m.errGetAll != nil {
121 return nil, m.errGetAll
122 }
123 return maps.Clone(m.store), nil
124}
125
126func (m *MockStore) Save(_ context.Context, id store.ID, secret store.Secret) error {
127 m.lock.Lock()

Callers 1

Test_RmCommandFunction · 0.95

Calls

no outgoing calls

Tested by 1

Test_RmCommandFunction · 0.76