Documentation ¶
Index ¶
- Constants
- Variables
- type CPUTempObj
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetFreqSensorUrl() string
- func (m *Config) GetLogHere() string
- func (m *Config) GetLogThermalData() bool
- func (m *Config) GetLowerCritical() int32
- func (m *Config) GetLowerHigh() int32
- func (m *Config) GetLowerNormal() int32
- func (m *Config) GetPollingInterval() string
- func (m *Config) GetTempSensorPath() string
- func (m *Config) GetUpperCritical() int32
- func (m *Config) GetUpperHigh() int32
- func (m *Config) GetUpperNormal() int32
- 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 HostDisc
- func (hostDisc *HostDisc) CapturingStatData()
- func (*HostDisc) ConfigURL() string
- func (hostDisc *HostDisc) DiscFreqScaler()
- func (hostDisc *HostDisc) Entry()
- func (hostDisc *HostDisc) GetCPUTemp() CPUTempObj
- func (hostDisc *HostDisc) GetNodeIPAddress() string
- func (hostDisc *HostDisc) Init(api types.ModuleAPIClient)
- func (*HostDisc) Name() string
- func (*HostDisc) NewConfig() proto.Message
- func (hostDisc *HostDisc) ReadCPUTemp() int32
- func (hostDisc *HostDisc) ReadFreqScaler() string
- func (hostDisc *HostDisc) SetDiscoveryChan(c chan<- types.Event)
- func (hostDisc *HostDisc) Stop()
- func (hostDisc *HostDisc) UpdateConfig(cfg proto.Message) (e error)
Constants ¶
View Source
const ( // HostThermalStateURL points to Thermal extension HostThermalStateURL = "type.googleapis.com/HostThermal.Temp/State" // ModuleStateURL refers to module state ModuleStateURL = "/Services/hostthermaldiscovery/State" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CPUTempObj ¶
CPUTempObj is strututure for node CPU temperature
type Config ¶
type Config struct { PollingInterval string `protobuf:"bytes,1,opt,name=polling_interval,json=pollingInterval,proto3" json:"polling_interval,omitempty"` TempSensorPath string `protobuf:"bytes,2,opt,name=temp_sensor_path,json=tempSensorPath,proto3" json:"temp_sensor_path,omitempty"` FreqSensorUrl string `protobuf:"bytes,3,opt,name=freq_sensor_url,json=freqSensorUrl,proto3" json:"freq_sensor_url,omitempty"` LogThermalData bool `protobuf:"varint,4,opt,name=log_thermal_data,json=logThermalData,proto3" json:"log_thermal_data,omitempty"` LogHere string `protobuf:"bytes,5,opt,name=log_here,json=logHere,proto3" json:"log_here,omitempty"` LowerNormal int32 `protobuf:"varint,6,opt,name=lower_normal,json=lowerNormal,proto3" json:"lower_normal,omitempty"` UpperNormal int32 `protobuf:"varint,7,opt,name=upper_normal,json=upperNormal,proto3" json:"upper_normal,omitempty"` LowerHigh int32 `protobuf:"varint,8,opt,name=lower_high,json=lowerHigh,proto3" json:"lower_high,omitempty"` UpperHigh int32 `protobuf:"varint,9,opt,name=upper_high,json=upperHigh,proto3" json:"upper_high,omitempty"` LowerCritical int32 `protobuf:"varint,10,opt,name=lower_critical,json=lowerCritical,proto3" json:"lower_critical,omitempty"` UpperCritical int32 `protobuf:"varint,11,opt,name=upper_critical,json=upperCritical,proto3" json:"upper_critical,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetFreqSensorUrl ¶
func (*Config) GetLogHere ¶
func (*Config) GetLogThermalData ¶
func (*Config) GetLowerCritical ¶
func (*Config) GetLowerHigh ¶
func (*Config) GetLowerNormal ¶
func (*Config) GetPollingInterval ¶
func (*Config) GetTempSensorPath ¶
func (*Config) GetUpperCritical ¶
func (*Config) GetUpperHigh ¶
func (*Config) GetUpperNormal ¶
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 ¶
type HostDisc ¶
type HostDisc struct {
// contains filtered or unexported fields
}
HostDisc provides hostdiscovery module capabilities
func (*HostDisc) CapturingStatData ¶
func (hostDisc *HostDisc) CapturingStatData()
CapturingStatData logs thermal information
func (*HostDisc) DiscFreqScaler ¶
func (hostDisc *HostDisc) DiscFreqScaler()
DiscFreqScaler cpu frequency scaler
func (*HostDisc) Entry ¶
func (hostDisc *HostDisc) Entry()
Entry is the module's executable entrypoint
func (*HostDisc) GetCPUTemp ¶
func (hostDisc *HostDisc) GetCPUTemp() CPUTempObj
GetCPUTemp returns CPU temperature
func (*HostDisc) GetNodeIPAddress ¶
GetNodeIPAddress returns non local loop IP address
func (*HostDisc) Init ¶
func (hostDisc *HostDisc) Init(api types.ModuleAPIClient)
Init is used to intialize an executable module prior to entrypoint
func (*HostDisc) ReadCPUTemp ¶
ReadCPUTemp function reads the CPU thermal sensor
func (*HostDisc) ReadFreqScaler ¶
ReadFreqScaler cpu frequency scaler
func (*HostDisc) SetDiscoveryChan ¶
SetDiscoveryChan sets the current discovery channel this is generally done by the API
Click to show internal directories.
Click to hide internal directories.