Documentation ¶
Index ¶
- Constants
- Variables
- type CPUBurn
- func (*CPUBurn) ConfigURL() string
- func (c *CPUBurn) Entry()
- func (c *CPUBurn) Init(api types.ModuleAPIClient)
- func (*CPUBurn) Name() string
- func (*CPUBurn) NewConfig() (r proto.Message)
- func (c *CPUBurn) SetDiscoveryChan(dc chan<- types.Event)
- func (*CPUBurn) Stop()
- func (c *CPUBurn) UpdateConfig(cfg proto.Message) (e error)
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetTempSensor() string
- func (m *Config) GetThermalCrit() uint32
- func (m *Config) GetThermalPoll() uint32
- func (m *Config) GetThermalResume() uint32
- func (m *Config) GetThermalThrottle() bool
- func (m *Config) GetWorkers() uint32
- func (m *Config) GetWorkersThrottled() uint32
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (*Config) XXX_MessageName() string
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Kernel
Constants ¶
View Source
const ( CONTROL_STOP = iota CONTROL_START CONTROL_THROTTLE CONTROL_UNTHROTTLE )
View Source
const SrvStateURL = "/Services/cpuburn/State"
SrvStateURL is the URL For this service instance
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CPUBurn ¶
type CPUBurn struct {
// contains filtered or unexported fields
}
A CPUBurn manages burners on a cpu
func (*CPUBurn) Entry ¶
func (c *CPUBurn) Entry()
Entry provides the module entry point ModuleSelfService
func (*CPUBurn) Init ¶
func (c *CPUBurn) Init(api types.ModuleAPIClient)
Init is run before Entry, provides an ModuleAPIClient ModuleSelfService
func (*CPUBurn) NewConfig ¶
NewConfig should return a guaranteed sane (default) config ModuleWithConfig
func (*CPUBurn) SetDiscoveryChan ¶
SetDiscoveryChan takes a discovery channel (and presumably stores it) ModuleWithDiscovery
type Config ¶
type Config struct { TempSensor string `protobuf:"bytes,1,opt,name=temp_sensor,json=tempSensor,proto3" json:"temp_sensor,omitempty"` ThermalThrottle bool `protobuf:"varint,2,opt,name=thermal_throttle,json=thermalThrottle,proto3" json:"thermal_throttle,omitempty"` ThermalPoll uint32 `protobuf:"varint,3,opt,name=thermal_poll,json=thermalPoll,proto3" json:"thermal_poll,omitempty"` ThermalResume uint32 `protobuf:"varint,4,opt,name=thermal_resume,json=thermalResume,proto3" json:"thermal_resume,omitempty"` ThermalCrit uint32 `protobuf:"varint,5,opt,name=thermal_crit,json=thermalCrit,proto3" json:"thermal_crit,omitempty"` Workers uint32 `protobuf:"varint,6,opt,name=workers,proto3" json:"workers,omitempty"` WorkersThrottled uint32 `protobuf:"varint,7,opt,name=workers_throttled,json=workersThrottled,proto3" json:"workers_throttled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetTempSensor ¶
func (*Config) GetThermalCrit ¶
func (*Config) GetThermalPoll ¶
func (*Config) GetThermalResume ¶
func (*Config) GetThermalThrottle ¶
func (*Config) GetWorkers ¶
func (*Config) GetWorkersThrottled ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_MessageName ¶
func (*Config) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.