mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
* 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
23 lines
509 B
Go
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)
|
|
}
|