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

Method Filter

plugins/pass/teststore/teststore.go:148–163  ·  view source on GitHub ↗
(_ context.Context, pattern store.Pattern)

Source from the content-addressed store, hash-verified

146}
147
148func (m *MockStore) Filter(_ context.Context, pattern store.Pattern) (map[store.ID]store.Secret, error) {
149 m.lock.Lock()
150 defer m.lock.Unlock()
151
152 if m.errFilter != nil {
153 return nil, m.errFilter
154 }
155
156 filtered := make(map[store.ID]store.Secret)
157 for id, f := range m.store {
158 if pattern.Match(id) {
159 filtered[id] = f
160 }
161 }
162 return filtered, nil
163}

Callers

nothing calls this directly

Calls 2

UnlockMethod · 0.65
MatchMethod · 0.65

Tested by

no test coverage detected