Documentation
¶
Index ¶
- func Command(fn func(*cli.Context) error) func(*cli.Context) error
- func PowerOff(c *cli.Context) error
- func PowerOn(c *cli.Context) error
- func PowerStatus(c *cli.Context) error
- func ProfileAdd(c *cli.Context) error
- func ProfileList(c *cli.Context) error
- func ProfileRemove(c *cli.Context) error
- func ProfileShow(c *cli.Context) error
- func SensorList(c *cli.Context) error
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PowerOff ¶
PowerOn is a function that powers off server using the BMC API It does the login to the BMC or gets the session if it's available, and then calls the power on API
func PowerOn ¶
PowerOn is a function that powers on server using the BMC API It does the login to the BMC or gets the session if it's available, and then calls the power on API
func PowerStatus ¶
PowerStatus is a function that gets the power status of the server using the BMC API It does the login to the BMC or gets the session if it's available, and then calls the power status API
func ProfileAdd ¶
ProfileAdd is a function that adds a new BMC profile to the configuration
func ProfileList ¶
ProfileList is a function that lists all BMC profiles from the configuration
func ProfileRemove ¶
ProfileRemove is a function that removes a BMC profile from the configuration
func ProfileShow ¶
ProfileShow is a function that shows a BMC profile from the configuration
func SensorList ¶
SensorList is a function that lists sensors using the BMC API It does the login to the BMC or gets the session if it's available, and then calls the sensor list API
Types ¶
type OutputFormat ¶ added in v0.0.6
type OutputFormat string
const ( OutputFormatText OutputFormat = "text" OutputFormatJSON OutputFormat = "json" )