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

Method remove

app/service/data_svc.py:148–152  ·  view source on GitHub ↗
(self, object_name, match)

Source from the content-addressed store, hash-verified

146 self.log.error('[!] SEARCH: %s' % e)
147
148 async def remove(self, object_name, match):
149 try:
150 self.ram[object_name][:] = [obj for obj in self.ram[object_name] if not obj.match(match)]
151 except Exception as e:
152 self.log.error('[!] REMOVE: %s' % e)
153
154 async def load_ability_file(self, filename, access):
155 for entries in self.strip_yml(filename):

Callers 15

deleteTabFunction · 0.45
downloadJsonFunction · 0.45
downloadObjectAsJsonFunction · 0.45
removeSectionFunction · 0.45
iFunction · 0.45
wnFunction · 0.45
alpine.min.jsFile · 0.45
GnFunction · 0.45
oFunction · 0.45
RtFunction · 0.45
jFunction · 0.45
aFunction · 0.45

Calls 1

matchMethod · 0.80

Tested by 11

test_file_uploadMethod · 0.36
test_event_logsMethod · 0.36
test_upload_fileMethod · 0.36
test_encrypt_uploadMethod · 0.36
test_removeMethod · 0.36
sample_agentFunction · 0.36