MCPcopy
hub / github.com/borgbackup/borg / make_json

Method make_json

src/borg/helpers/progress.py:27–29  ·  view source on GitHub ↗
(self, *, finished=False, **kwargs)

Source from the content-addressed store, hash-verified

25 self.msgid = msgid
26
27 def make_json(self, *, finished=False, **kwargs):
28 kwargs |= dict(operation=self.id, msgid=self.msgid, type=self.JSON_TYPE, finished=finished, time=time.time())
29 return json.dumps(kwargs)
30
31 def finish(self):
32 j = self.make_json(message="", finished=True)

Callers 3

finishMethod · 0.95
outputMethod · 0.80
outputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected