fleet/orbit/pkg/useraction/mdm_migration_notdarwin.go
Jahziel Villasana-Espinoza e0135fc568
fix: cleanup tasks for MDM migration updates (#21325)
> No issue, just cleanup  

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Manual QA for all new/changed functionality
- For Orbit and Fleet Desktop changes:
- [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
feature/bugfix should only apply to one platform (`runtime.GOOS`).
- [x] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-08-15 17:16:56 -04:00

33 lines
1.3 KiB
Go

//go:build !darwin
package useraction
import (
"context"
"time"
"github.com/fleetdm/fleet/v4/orbit/pkg/migration"
"github.com/fleetdm/fleet/v4/server/service"
)
func NewMDMMigrator(path string, frequency time.Duration, handler MDMMigratorHandler, mrw *migration.ReadWriter, fleetURL string, showCh chan struct{}) MDMMigrator {
return &NoopMDMMigrator{}
}
func StartMDMMigrationOfflineWatcher(ctx context.Context, client *service.DeviceClient, swiftDialogPath string, swiftDialogCh chan struct{}, fileWatcher migration.FileWatcher) MDMOfflineWatcher {
return &NoopOfflineWatcher{}
}
type NoopOfflineWatcher struct{}
func (o *NoopOfflineWatcher) ShowIfOffline(ctx context.Context) bool { return false }
type NoopMDMMigrator struct{}
func (m *NoopMDMMigrator) CanRun() bool { return false }
func (m *NoopMDMMigrator) SetProps(MDMMigratorProps) {}
func (m *NoopMDMMigrator) Show() error { return nil }
func (m *NoopMDMMigrator) ShowInterval() error { return nil }
func (m *NoopMDMMigrator) Exit() {}
func (m *NoopMDMMigrator) MigrationInProgress() (string, error) { return "", nil }
func (m *NoopMDMMigrator) MarkMigrationCompleted() error { return nil }