Versions in this module Expand all Collapse all v0 v0.0.1 Jul 26, 2023 Changes in this version + const FanUnitSmart + const FanUnitStandard + const LedEdge + const LedTop + const PowerPoe802at + const PowerPoeOrUsbC + type ComputeBladeHal interface + Close func() error + GetFanRPM func() (float64, error) + GetPowerStatus func() (PowerStatus, error) + SetFanSpeed func(speed uint8) error + SetLed func(idx uint, color LedColor) error + SetStealthMode func(enabled bool) error + WaitForEdgeButtonPress func(ctx context.Context) error + func NewCm4Hal(opts ComputeBladeHalOpts) (ComputeBladeHal, error) + type ComputeBladeHalMock struct + func (m *ComputeBladeHalMock) Close() error + func (m *ComputeBladeHalMock) GetFanRPM() (float64, error) + func (m *ComputeBladeHalMock) GetPowerStatus() (PowerStatus, error) + func (m *ComputeBladeHalMock) SetFanSpeed(percent uint8) error + func (m *ComputeBladeHalMock) SetLed(idx uint, color LedColor) error + func (m *ComputeBladeHalMock) SetStealthMode(enabled bool) error + func (m *ComputeBladeHalMock) WaitForEdgeButtonPress(ctx context.Context) error + type ComputeBladeHalOpts struct + FanUnit FanUnit + type ComputeModule uint8 + type FanUnit uint8 + type LedColor struct + Blue uint8 + Green uint8 + Red uint8 + type PowerStatus uint8 + func (p PowerStatus) String() string + type SimulatedHal struct — darwin/amd64 + func (m *SimulatedHal) Close() error + func (m *SimulatedHal) GetFanRPM() (float64, error) + func (m *SimulatedHal) GetPowerStatus() (PowerStatus, error) + func (m *SimulatedHal) SetFanSpeed(percent uint8) error + func (m *SimulatedHal) SetLed(idx uint, color LedColor) error + func (m *SimulatedHal) SetStealthMode(enabled bool) error + func (m *SimulatedHal) WaitForEdgeButtonPress(ctx context.Context) error