MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / finishReport

Function finishReport

internal/homeplugins/sync.go:525–540  ·  view source on GitHub ↗
(report *SyncReport, errTask error)

Source from the content-addressed store, hash-verified

523}
524
525func finishReport(report *SyncReport, errTask error) {
526 if report == nil {
527 return
528 }
529 now := time.Now().UTC()
530 report.FinishedAt = now
531 report.UpdatedAt = now
532 report.OK = errTask == nil
533 if errTask != nil {
534 report.Status = pluginTaskStatusError
535 report.Error = errTask.Error()
536 return
537 }
538 report.Status = pluginTaskStatusOK
539 report.Error = ""
540}
541
542func pluginStatusFromManifest(manifest sdkpluginstore.Manifest) PluginInstallStatus {
543 return PluginInstallStatus{

Callers 3

SyncPlatformWithReportFunction · 0.85
DeleteWithReportFunction · 0.85
MarkLoadResultsFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected