MCPcopy
hub / github.com/apache/caldera / locate

Method locate

app/service/data_svc.py:136–140  ·  view source on GitHub ↗
(self, object_name, match=None)

Source from the content-addressed store, hash-verified

134 self.log.error('[!] can only store first-class objects: %s' % e)
135
136 async def locate(self, object_name, match=None):
137 try:
138 return [obj for obj in self.ram[object_name] if obj.match(match)]
139 except Exception as e:
140 self.log.error('[!] LOCATE: %s' % e)
141
142 async def search(self, value, object_name):
143 try:

Callers 15

_loadMethod · 0.95
_verify_abilitiesMethod · 0.95
get_facts_from_sourceMethod · 0.95
run_tasksFunction · 0.45
obfuscate_commandsMethod · 0.45
bootstrapMethod · 0.45
deadmanMethod · 0.45
_load_objectiveMethod · 0.45

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected