1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| func TestGetLiveServiceInfo(t *testing.T) { id := "1223445" key := "private_avfrdgdsdf"
result := GetLiveServiceInfo(id, key)
fmt.Printf( "Vm_type:%v\n"+ "ve_status:%v\nve_mac1:%v\nve_used_disk_space_b:%v\nve_disk_quota_gb:%v\nis_cpu_throttled:%v\nis_disk_throttled:%v\n"+ "ssh_port:%v\nlive_hostname:%v\n"+ "load_average:%v\nmem_available_kb:%v\nswap_total_kb:%v\nswap_available_kb:%v\nscreendump_png_base64:%v\n"+ "Hostname:%v\n"+ "Node_ip:%v\nNode_alias:%v\nNode_location:%v\nNode_location_id:%v\nNode_datacenter:%v\n"+ "Location_ipv6_ready:%v\nPlan:%v\nPlan_monthly_data:%v\nMonthly_data_multiplier Plan_disk:%v\nPlan_ram:%v\nPlan_swap:%v\n"+ "Plan_max_ipv6s:%v %v\nOs:%v\nEmail:%v\nData_counter:%v\nData_next_reset:%v\nIp_addresses:%v\nRdns_api_available:%v\n"+ "Suspended:%v\nPtr:%v\nError:%v\nS", result.Vm_type, result.VeStatus, result.VeMac1, result.VeUsedDiskSpaceB, result.VeDiskQuotaGb, result.IsCpuThrottled, result.IsDiskThrottled, result.SshPort, result.LiveHostName, result.LoadAverage, result.MemAvailableKb, result.SwapTotalKb, result.SwapAvailableKb, result.ScreendumpPngBase64, result.Hostname, result.Node_ip, result.Node_alias, result.Node_location, result.Node_location_id, result.Node_datacenter, result.Location_ipv6_ready, result.Plan, result.Plan_monthly_data, result.Monthly_data_multiplier, result.Plan_disk, result.Plan_ram, result.Plan_swap, result.Plan_max_ipv6s, result.Os, result.Email, result.Data_counter, result.Data_next_reset, result.Ip_addresses, result.Rdns_api_available, result.Suspended, result.Ptr, result.Error) }
|