bmc-toolbox/bmclib

Power states as type aliases

joelrebel opened this issue · 0 comments

The power states passed as parameters to the PowerSetter interfaces should be constants and type aliases

https://github.com/bmc-toolbox/bmclib/blob/master/bmc/power.go#L24

This was also suggested in #261 (comment)

type PowerState string

PowerStateOn PowerState = "On"
PowerStateOff PowerState = "Off"