Documentation ¶
Index ¶
- Constants
- Variables
- func RequestGet(url, token string, timeout time.Duration, header map[string]string) (jsonResp *simplejson.Json, err error)
- func RequestPost(url string, timeout time.Duration, body map[string]interface{}) (jsonResp *simplejson.Json, err error)
- type Config
- type HuaWei
- type Project
- type SubnetIPKey
- type Token
- type ToolDataSet
- type VPCIPKey
Constants ¶
View Source
const ( DEVICE_OWNER_VM_PRE = "compute" DEVICE_OWNER_VM = "compute:nova" DEVICE_OWNER_ROUTER_GW = "network:router_gateway" DEVICE_OWNER_ROUTER_IFACE = "network:router_interface" DEVICE_OWNER_FLOATING_IP = "network:floatingip" DEVICE_OWNER_DHCP = "network:dhcp" DEVICE_OWNER_NAT_GATEWAY = "network:nat_gateway" )
Variables ¶
View Source
var DEFAULT_DOMAIN = "myhuaweicloud.com"
View Source
var DEFAULT_IAM_HOST = strings.Join([]string{DEFAULT_IAM_HOST_PREFIX, DEFAULT_DOMAIN}, ".")
View Source
var DEFAULT_IAM_HOST_PREFIX = "iam"
View Source
var STATE_CONVERTION = map[string]int{ "ACTIVE": common.VM_STATE_RUNNING, "SHUTOFF": common.VM_STATE_STOPPED, }
Functions ¶
func RequestGet ¶
Types ¶
type Config ¶
type HuaWei ¶
type HuaWei struct {
// contains filtered or unexported fields
}
func NewHuaWei ¶
func NewHuaWei(orgID int, domain mysqlmodel.Domain, globalCloudCfg config.CloudConfig) (*HuaWei, error)
func (*HuaWei) ClearDebugLog ¶
func (h *HuaWei) ClearDebugLog()
func (*HuaWei) GetStatter ¶
func (h *HuaWei) GetStatter() statsd.StatsdStatter
type SubnetIPKey ¶
type ToolDataSet ¶
type ToolDataSet struct {
// contains filtered or unexported fields
}
func NewToolDataSet ¶
func NewToolDataSet() *ToolDataSet
Click to show internal directories.
Click to hide internal directories.