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

Method FindAll

ui/node/node.go:159–168  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

157}
158
159func (n Nodes) FindAll(id string) []Node {
160 var nodes []Node
161 for _, nn := range n {
162 if nn.ID() == id {
163 nodes = append(nodes, *nn)
164 }
165 }
166
167 return nodes
168}
169
170func (n Nodes) Reset(exclude ...string) {
171 for k, nn := range n {

Callers 1

TestNodes_FindAllFunction · 0.95

Calls 1

IDMethod · 0.65

Tested by 1

TestNodes_FindAllFunction · 0.76