mirror of
https://github.com/fleetdm/fleet
synced 2026-05-04 05:48:26 +00:00
Resolves #40396. No changes file because there should be no user visible changes. ## Testing - [x] QA'd all new/changed functionality manually ## fleetd/orbit/Fleet Desktop - [x] Verified compatibility with the latest released version of Fleet (see [Must rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md)) - [X] Verified that fleetd runs on macOS, Linux and Windows - [X] Verified auto-update works from the released version of component to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
//go:build !darwin
|
|
|
|
package useraction
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"github.com/fleetdm/fleet/v4/client"
|
|
"github.com/fleetdm/fleet/v4/orbit/pkg/migration"
|
|
)
|
|
|
|
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 *client.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 }
|