- Update go.mod files to use github.com/Fimeg/RedFlag module path - Fix all import statements across server and agent code - Resolves build errors when cloning from GitHub - Utils package (version comparison) is actually needed and working
28 lines
700 B
Go
28 lines
700 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package scanner
|
|
|
|
import "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
|
|
|
|
// WindowsUpdateScanner stub for non-Windows platforms
|
|
type WindowsUpdateScanner struct{}
|
|
|
|
// NewWindowsUpdateScanner creates a stub Windows scanner for non-Windows platforms
|
|
func NewWindowsUpdateScanner() *WindowsUpdateScanner {
|
|
return &WindowsUpdateScanner{}
|
|
}
|
|
|
|
// IsAvailable always returns false on non-Windows platforms
|
|
func (s *WindowsUpdateScanner) IsAvailable() bool {
|
|
return false
|
|
}
|
|
|
|
// Scan always returns no updates on non-Windows platforms
|
|
func (s *WindowsUpdateScanner) Scan() ([]client.UpdateReportItem, error) {
|
|
return []client.UpdateReportItem{}, nil
|
|
}
|
|
|
|
|
|
|