Files
nomad/client/lib/numalib/detect_default.go
Seth Hoenig 6e4d57b330 numalib: provide a fallback for topology scanning on linux (#19457)
* numalib: provide a fallback for topology scanning on linux

* numalib: better package var names

* cl: add cl

* lint: fix my sloppy code

* cl: fixup wording
2023-12-13 13:06:30 -06:00

23 lines
509 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:build !linux && !darwin
package numalib
// PlatformScanners returns the set of SystemScanner for systems without a
// specific implementation.
func PlatformScanners() []SystemScanner {
return []SystemScanner{
new(Generic),
}
}
// Generic implements SystemScanner as a fallback for operating systems without
// a specific implementation.
type Generic struct{}
func (g *Generic) ScanSystem(top *Topology) {
scanGeneric(top)
}