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 ¶
func PowerOff(c *cli.Context) error
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 ¶
func PowerOn(c *cli.Context) error
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 ¶
func PowerStatus(c *cli.Context) error
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 ¶
func ProfileAdd(c *cli.Context) error
ProfileAdd is a function that adds a new BMC profile to the configuration
func ProfileList ¶
func ProfileList(c *cli.Context) error
ProfileList is a function that lists all BMC profiles from the configuration
func ProfileRemove ¶
func ProfileRemove(c *cli.Context) error
ProfileRemove is a function that removes a BMC profile from the configuration
func ProfileShow ¶
func ProfileShow(c *cli.Context) error
ProfileShow is a function that shows a BMC profile from the configuration
func SensorList ¶
func SensorList(c *cli.Context) error
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" )