(report *SyncReport, errTask error)
| 523 | } |
| 524 | |
| 525 | func 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 | |
| 542 | func pluginStatusFromManifest(manifest sdkpluginstore.Manifest) PluginInstallStatus { |
| 543 | return PluginInstallStatus{ |
no test coverage detected