packer-cn/vendor/github.com/ucloud/ucloud-sdk-go/services/uhost/enums.go

21 lines
512 B
Go
Raw Normal View History

2019-06-13 03:16:49 -04:00
package uhost
// State is the state of UHost instance
type State string
// Enum values for State
const (
StateInitializing State = "Initializing"
StateStarting State = "Starting"
StateRunning State = "Running"
StateStopping State = "Stopping"
StateStopped State = "Stopped"
StateInstallFail State = "InstallFail"
StateRebooting State = "Rebooting"
)
// MarshalValue will marshal state value to string
func (enum State) MarshalValue() (string, error) {
return string(enum), nil
}