hal

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockupPlatform

type MockupPlatform struct {
}

MockupPlatform is a implementation for mockup

func (*MockupPlatform) GetFanDuty

func (mockup *MockupPlatform) GetFanDuty(c *cli.Context) error

GetFanDuty is a implementation for mockup

func (*MockupPlatform) GetFanSpeed

func (mockup *MockupPlatform) GetFanSpeed(c *cli.Context) error

GetFanSpeed is a implementation for mockup

func (*MockupPlatform) GetLed

func (mockup *MockupPlatform) GetLed(c *cli.Context) error

GetLed is a implementation for mockup

func (*MockupPlatform) GetSysEeprom

func (mockup *MockupPlatform) GetSysEeprom(c *cli.Context) error

GetSysEeprom is a implementation for mockup

func (*MockupPlatform) Init

func (mockup *MockupPlatform) Init(c *cli.Context) error

Init is a implementation for mockup

func (*MockupPlatform) SetFanDuty

func (mockup *MockupPlatform) SetFanDuty(c *cli.Context) error

SetFanDuty is a implementation for mockup

func (*MockupPlatform) SetLed

func (mockup *MockupPlatform) SetLed(c *cli.Context) error

SetLed is a implementation for mockup

type Platform

type Platform interface {
	Init(c *cli.Context) error
	Deinit(c *cli.Context) error
	GetInfo(c *cli.Context) error
	GetSensor(c *cli.Context) error
	GetEntry(c *cli.Context) error
	GetSysEeprom(c *cli.Context) error
	SetSysEeprom(c *cli.Context) error
	SyncSysEeprom(c *cli.Context) error
	GetFan(c *cli.Context) error
	SetFan(c *cli.Context) error
	GetLed(c *cli.Context) error
	SetLed(c *cli.Context) error
	GetFpga(c *cli.Context) error
	SetFpga(c *cli.Context) error
	GetSfp(c *cli.Context) error
	SetSfp(c *cli.Context) error
	GetPsu(c *cli.Context) error
	GetThermal(c *cli.Context) error
	Update(c *cli.Context) error
}

Platform is a basic interface for each platform

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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