yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/host_const.go (about) 1 // Copyright 2019 Yunion 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package compute 16 17 const ( 18 HOST_TYPE_BAREMETAL = "baremetal" 19 HOST_TYPE_HYPERVISOR = "hypervisor" // KVM 20 HOST_TYPE_KVM = "kvm" 21 HOST_TYPE_ESXI = "esxi" // # VMWare vSphere ESXi 22 HOST_TYPE_KUBELET = "kubelet" // # Kubernetes Kubelet 23 HOST_TYPE_HYPERV = "hyperv" // # Microsoft Hyper-V 24 HOST_TYPE_XEN = "xen" // # XenServer 25 26 HOST_TYPE_ALIYUN = "aliyun" 27 HOST_TYPE_APSARA = "apsara" 28 HOST_TYPE_AWS = "aws" 29 HOST_TYPE_QCLOUD = "qcloud" 30 HOST_TYPE_AZURE = "azure" 31 HOST_TYPE_HUAWEI = "huawei" 32 HOST_TYPE_HCSO = "hcso" 33 HOST_TYPE_HCS = "hcs" 34 HOST_TYPE_OPENSTACK = "openstack" 35 HOST_TYPE_UCLOUD = "ucloud" 36 HOST_TYPE_ZSTACK = "zstack" 37 HOST_TYPE_GOOGLE = "google" 38 HOST_TYPE_CTYUN = "ctyun" 39 HOST_TYPE_ECLOUD = "ecloud" 40 HOST_TYPE_JDCLOUD = "jdcloud" 41 HOST_TYPE_CLOUDPODS = "cloudpods" 42 HOST_TYPE_NUTANIX = "nutanix" 43 HOST_TYPE_BINGO_CLOUD = "bingocloud" 44 HOST_TYPE_INCLOUD_SPHERE = "incloudsphere" 45 HOST_TYPE_PROXMOX = "proxmox" 46 HOST_TYPE_REMOTEFILE = "remotefile" 47 48 HOST_TYPE_DEFAULT = HOST_TYPE_HYPERVISOR 49 50 // # possible status 51 HOST_ONLINE = "online" 52 HOST_ENABLED = "online" 53 HOST_OFFLINE = "offline" 54 HOST_DISABLED = "offline" 55 56 NIC_TYPE_IPMI = "ipmi" 57 NIC_TYPE_ADMIN = "admin" 58 // #NIC_TYPE_NORMAL = 'normal' 59 60 BAREMETAL_INIT = "init" 61 BAREMETAL_PREPARE = "prepare" 62 BAREMETAL_PREPARE_FAIL = "prepare_fail" 63 BAREMETAL_READY = "ready" 64 BAREMETAL_RUNNING = "running" 65 BAREMETAL_MAINTAINING = "maintaining" 66 BAREMETAL_START_MAINTAIN = "start_maintain" 67 BAREMETAL_MAINTAIN_FAIL = "maintain_fail" 68 BAREMETAL_DELETING = "deleting" 69 BAREMETAL_DELETE = "delete" 70 BAREMETAL_DELETE_FAIL = "delete_fail" 71 BAREMETAL_UNKNOWN = "unknown" 72 BAREMETAL_SYNCING_STATUS = "syncing_status" 73 BAREMETAL_SYNC = "sync" 74 BAREMETAL_SYNC_FAIL = "sync_fail" 75 BAREMETAL_START_CONVERT = "start_convert" 76 BAREMETAL_CONVERTING = "converting" 77 BAREMETAL_START_FAIL = "start_fail" 78 BAREMETAL_STOP_FAIL = "stop_fail" 79 80 BAREMETAL_START_PROBE = "start_probe" 81 BAREMETAL_PROBING = "probing" 82 BAREMETAL_PROBE_FAIL = "probe_fail" 83 84 BAREMETAL_START_INSERT_ISO = "start_insert" 85 BAREMETAL_INSERTING_ISO = "inserting_iso" 86 BAREMETAL_INSERT_FAIL = "insert_fail" 87 88 BAREMETAL_START_EJECT_ISO = "start_eject" 89 BAREMETAL_EJECTING_ISO = "ejecting_iso" 90 BAREMETAL_EJECT_FAIL = "eject_fail" 91 92 HOST_STATUS_RUNNING = BAREMETAL_RUNNING 93 HOST_STATUS_READY = BAREMETAL_READY 94 HOST_STATUS_UNKNOWN = BAREMETAL_UNKNOWN 95 ) 96 97 const ( 98 BAREMETAL_CDROM_ACTION_INSERT = "insert" 99 BAREMETAL_CDROM_ACTION_EJECT = "eject" 100 ) 101 102 const ( 103 HostResourceTypeShared = "shared" 104 HostResourceTypeDefault = HostResourceTypeShared 105 HostResourceTypePrepaidRecycle = "prepaid" 106 HostResourceTypeDedicated = "dedicated" 107 ) 108 109 var HOST_TYPES = []string{ 110 HOST_TYPE_BAREMETAL, 111 HOST_TYPE_HYPERVISOR, 112 HOST_TYPE_ESXI, 113 HOST_TYPE_KUBELET, 114 HOST_TYPE_XEN, 115 HOST_TYPE_ALIYUN, 116 HOST_TYPE_APSARA, 117 HOST_TYPE_AZURE, 118 HOST_TYPE_AWS, 119 HOST_TYPE_QCLOUD, 120 HOST_TYPE_HUAWEI, 121 HOST_TYPE_HCSO, 122 HOST_TYPE_HCS, 123 HOST_TYPE_OPENSTACK, 124 HOST_TYPE_UCLOUD, 125 HOST_TYPE_ZSTACK, 126 HOST_TYPE_CTYUN, 127 HOST_TYPE_GOOGLE, 128 HOST_TYPE_JDCLOUD, 129 HOST_TYPE_CLOUDPODS, 130 HOST_TYPE_NUTANIX, 131 HOST_TYPE_BINGO_CLOUD, 132 HOST_TYPE_INCLOUD_SPHERE, 133 HOST_TYPE_PROXMOX, 134 HOST_TYPE_REMOTEFILE, 135 }