mirror of
https://github.com/fleetdm/fleet
synced 2026-04-30 09:57:37 +00:00
> 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)).
33 lines
1.3 KiB
Go
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 }
|