1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 16:27:05 +00:00
node-feature-discovery/source/cpu
Markus Lehtonen 81378a3235 source: make sources register themselves
Implement new registration infrastructure under the "source" package.
This change loosens the coupling between label sources and the
nfd-worker, making it easier to refactor and move the code around.

Also, create a separate interface (ConfigurableSource) for configurable
feature sources in order to eliminate boilerplate code.

Add safety checks to the sources that they actually implement the
interfaces they should.

In sake of consistency and predictability (of behavior) change all
methods of the sources to use pointer receivers.

Add simple unit tests for the new functionality and include source/...
into make test target.
2021-09-15 18:41:37 +03:00
..
cpu.go source: make sources register themselves 2021-09-15 18:41:37 +03:00
cstate_amd64.go cstate/pstate: Skip check on non intel arches 2021-08-19 16:37:54 +02:00
cstate_stub.go cstate/pstate: Skip check on non intel arches 2021-08-19 16:37:54 +02:00
power_amd64.go source: perform all sysfs discovery under host sysfs 2020-05-20 22:15:41 +03:00
power_stub.go source/cpu: detect SST-BF 2019-04-12 15:11:55 +03:00
pstate_amd64.go cstate/pstate: Skip check on non intel arches 2021-08-19 16:37:54 +02:00
pstate_stub.go cstate/pstate: Skip check on non intel arches 2021-08-19 16:37:54 +02:00
rdt_amd64.go sources: move all cpu related features under the cpu source 2019-05-09 20:18:36 +03:00
rdt_stub.go sources: move all cpu related features under the cpu source 2019-05-09 20:18:36 +03:00