Documentation ¶
Index ¶
- type MockupPlatform
- func (mockup *MockupPlatform) GetFanDuty(c *cli.Context) error
- func (mockup *MockupPlatform) GetFanSpeed(c *cli.Context) error
- func (mockup *MockupPlatform) GetLed(c *cli.Context) error
- func (mockup *MockupPlatform) GetSysEeprom(c *cli.Context) error
- func (mockup *MockupPlatform) Init(c *cli.Context) error
- func (mockup *MockupPlatform) SetFanDuty(c *cli.Context) error
- func (mockup *MockupPlatform) SetLed(c *cli.Context) error
- type Platform
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
Click to show internal directories.
Click to hide internal directories.