(platform Platform)
| 508 | } |
| 509 | |
| 510 | func newSyncReport(platform Platform) SyncReport { |
| 511 | now := time.Now().UTC() |
| 512 | return SyncReport{ |
| 513 | SchemaVersion: 1, |
| 514 | Task: pluginTaskName, |
| 515 | Status: pluginTaskStatusOK, |
| 516 | Phase: pluginTaskPhaseInstall, |
| 517 | OK: true, |
| 518 | StartedAt: now, |
| 519 | UpdatedAt: now, |
| 520 | Platform: NormalizePlatform(platform), |
| 521 | Plugins: []PluginInstallStatus{}, |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | func finishReport(report *SyncReport, errTask error) { |
| 526 | if report == nil { |
no test coverage detected