cpuburn

package
v0.0.0-...-03891ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

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

View Source
var (
	ErrInvalidLengthCpuburn        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCpuburn          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCpuburn = fmt.Errorf("proto: unexpected end of group")
)

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) ConfigURL

func (*CPUBurn) ConfigURL() string

ConfigURL should return the unique url for the Config ModuleWithConfig

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) Name

func (*CPUBurn) Name() string

Name returns a unique URL name for the module Module

func (*CPUBurn) NewConfig

func (*CPUBurn) NewConfig() (r proto.Message)

NewConfig should return a guaranteed sane (default) config ModuleWithConfig

func (*CPUBurn) SetDiscoveryChan

func (c *CPUBurn) SetDiscoveryChan(dc chan<- types.Event)

SetDiscoveryChan takes a discovery channel (and presumably stores it) ModuleWithDiscovery

func (*CPUBurn) Stop

func (*CPUBurn) Stop()

Stop should gracefully exit a running service instance ModuleSelfService

func (*CPUBurn) UpdateConfig

func (c *CPUBurn) UpdateConfig(cfg proto.Message) (e error)

UpdateConfig should update the running module config ModuleWithConfig

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) Descriptor() ([]byte, []int)

func (*Config) GetTempSensor

func (m *Config) GetTempSensor() string

func (*Config) GetThermalCrit

func (m *Config) GetThermalCrit() uint32

func (*Config) GetThermalPoll

func (m *Config) GetThermalPoll() uint32

func (*Config) GetThermalResume

func (m *Config) GetThermalResume() uint32

func (*Config) GetThermalThrottle

func (m *Config) GetThermalThrottle() bool

func (*Config) GetWorkers

func (m *Config) GetWorkers() uint32

func (*Config) GetWorkersThrottled

func (m *Config) GetWorkersThrottled() uint32

func (*Config) Marshal

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_MessageName

func (*Config) XXX_MessageName() string

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type Kernel

type Kernel func()

A Kernel is a function that can be executed as stress kernels

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL