Skip to content

Power states as type aliases #266

@joelrebel

Description

@joelrebel

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions