Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power states as type aliases #266

Open
joelrebel opened this issue Apr 22, 2022 · 0 comments
Open

Power states as type aliases #266

joelrebel opened this issue Apr 22, 2022 · 0 comments

Comments

@joelrebel
Copy link
Member

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"
@joelrebel joelrebel mentioned this issue Apr 22, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant