MCPcopy
hub / github.com/ory/kratos / ResetNodesWithPrefix

Method ResetNodesWithPrefix

ui/node/node.go:189–195  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

187}
188
189func (n Nodes) ResetNodesWithPrefix(prefix string) {
190 for k := range n {
191 if strings.HasPrefix(n[k].ID(), prefix) {
192 n[k].Reset()
193 }
194 }
195}
196
197func getStringSliceIndexOf(needle []string, haystack string) int {
198 for k := range needle {

Callers 1

hydrateFormMethod · 0.80

Calls 3

HasPrefixMethod · 0.80
IDMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected