mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-21 17:45:43 +02:00
24 lines
464 B
Go
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)
|
|
}
|