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

21 lines
512 B
Go

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
}