sensor

package
v0.0.0-...-1b0f67f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: AGPL-3.0, GPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2015, Bergware International. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * Plugin development contribution by gfjardim

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIpmiPresence

func CheckIpmiPresence() (bool, error)

CheckIpmiPresence -

func CheckNetworkEnabled

func CheckNetworkEnabled() (bool, error)

CheckNetworkEnabled -

func GetSensorIDs

func GetSensorIDs(lines []string) map[string]bool

GetSensorIDs -

Types

type IpmiSensor

type IpmiSensor struct {
	// contains filtered or unexported fields
}

IpmiSensor -

func NewIpmiSensor

func NewIpmiSensor() *IpmiSensor

NewIpmiSensor -

func (*IpmiSensor) GetReadings

func (s *IpmiSensor) GetReadings(prefs dto.Prefs) []dto.Sample

GetReadings -

func (*IpmiSensor) Parse

func (s *IpmiSensor) Parse(prefs dto.Prefs, sensors map[string]bool, lines []string) []dto.Sample

Parse -

type Kind

type Kind int

Kind -

const (
	NOSENSOR Kind = iota // does not exist
	SYSTEM               // dynamix.system.temp
	IPMI                 // ipmi
)

NOSENSOR -

func IdentifySensor

func IdentifySensor() (Kind, error)

IdentifySensor -

type NoSensor

type NoSensor struct {
	// contains filtered or unexported fields
}

NoSensor -

func NewNoSensor

func NewNoSensor() *NoSensor

NewNoSensor -

func (*NoSensor) GetReadings

func (n *NoSensor) GetReadings(_ dto.Prefs) []dto.Sample

GetReadings -

type Sensor

type Sensor interface {
	GetReadings(prefs dto.Prefs) []dto.Sample
}

Sensor -

type SystemSensor

type SystemSensor struct{}

SystemSensor -

func NewSystemSensor

func NewSystemSensor() *SystemSensor

NewSystemSensor -

func (*SystemSensor) GetReadings

func (s *SystemSensor) GetReadings(prefs dto.Prefs) []dto.Sample

GetReadings -

func (*SystemSensor) Parse

func (s *SystemSensor) Parse(prefs dto.Prefs, lines []string) []dto.Sample

Parse -

Jump to

Keyboard shortcuts

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