Files
compute-blade-agent/pkg/hal/hal.go
Matthias Riegler 8d5eb4349b chore: refactor
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
2023-07-03 13:34:40 +02:00

24 lines
464 B
Go

package hal
type FanUnit uint8
type ComputeModule uint8
const (
FAN_UNIT_STANDARD = iota
FAN_UNIT_ADVANCED
)
type ComputeBladeHalOpts struct {
FanUnit FanUnit
DefaultFanSpeed uint8
DefaultStealthModeEnabled bool
}
// COmputeBladeHal abstracts hardware details of the Compute Blade and provides a simple interface
type ComputeBladeHal interface {
Init()
Close() error
SetFanSpeed(speed uint8)
SetStealthMode(enabled bool)
}