Documentation
¶
Overview ¶
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ActionReboot string = "Reboot"
const ActionResume string = "Resume"
const ActionSuspend string = "Suspend"
const ActionTerminate string = "Terminate"
const StatusCreating string = "Creating"
const StatusFailed string = "Failed"
const StatusRebooting string = "Rebooting"
const StatusResuming string = "Resuming"
const StatusRunning string = "Running"
const StatusSuspended string = "Suspended"
const StatusSuspending string = "Suspending"
const StatusTerminated string = "Terminated"
const StatusTerminating string = "Terminating"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type McisRecommendReq ¶ added in v0.2.5
type McisRecommendReq struct { Vm_req []TbVmRecommendReq `json:"vm_req"` Placement_algo string `json:"placement_algo"` Placement_param []KeyValue `json:"placement_param"` Max_result_num string `json:"max_result_num"` }
type McisStatusInfo ¶ added in v0.2.5
type McisStatusInfo struct { Id string `json:"id"` Name string `json:"name"` //Vm_num string `json:"vm_num"` Status string `json:"status"` Vm []TbVmStatusInfo `json:"vm"` }
type RegionInfo ¶
type TbMcisInfo ¶ added in v0.2.5
type TbMcisInfo struct { // Fields for both request and response Name string `json:"name"` Vm []TbVmInfo `json:"vm"` Placement_algo string `json:"placement_algo"` Description string `json:"description"` // Additional fields for response Id string `json:"id"` Status string `json:"status"` TargetStatus string `json:"targetStatus"` TargetAction string `json:"targetAction"` }
type TbVmInfo ¶ added in v0.2.5
type TbVmInfo struct { Id string `json:"id"` Name string `json:"name"` ConnectionName string `json:"connectionName"` SpecId string `json:"specId"` ImageId string `json:"imageId"` VNetId string `json:"vNetId"` SubnetId string `json:"subnetId"` //Vnic_id string `json:"vnic_id"` //Public_ip_id string `json:"public_ip_id"` SecurityGroupIds []string `json:"securityGroupIds"` SshKeyId string `json:"sshKeyId"` Description string `json:"description"` VmUserAccount string `json:"vmUserAccount"` VmUserPassword string `json:"vmUserPassword"` Location GeoLocation `json:"location"` // 2. Provided by CB-Spider Region RegionInfo `json:"region"` // AWS, ex) {us-east1, us-east1-c} or {ap-northeast-2} PublicIP string `json:"publicIP"` PublicDNS string `json:"publicDNS"` PrivateIP string `json:"privateIP"` PrivateDNS string `json:"privateDNS"` VMBootDisk string `json:"vmBootDisk"` // ex) /dev/sda1 VMBlockDisk string `json:"vmBlockDisk"` // 3. Required by CB-Tumblebug Status string `json:"status"` TargetStatus string `json:"targetStatus"` TargetAction string `json:"targetAction"` CspViewVmDetail SpiderVMInfo `json:"cspViewVmDetail"` }
type TbVmPriority ¶ added in v0.2.5
type TbVmPriority struct { Priority string `json:"priority"` Vm_spec mcir.TbSpecInfo `json:"vm_spec"` }
type TbVmRecommendInfo ¶ added in v0.2.5
type TbVmRecommendInfo struct { Vm_req TbVmRecommendReq `json:"vm_req"` Vm_priority []TbVmPriority `json:"vm_priority"` Placement_algo string `json:"placement_algo"` Placement_param []KeyValue `json:"placement_param"` }
type TbVmRecommendReq ¶ added in v0.2.5
type TbVmRecommendReq struct { Request_name string `json:"request_name"` Max_result_num string `json:"max_result_num"` Vcpu_size string `json:"vcpu_size"` Memory_size string `json:"memory_size"` Disk_size string `json:"disk_size"` Placement_algo string `json:"placement_algo"` Placement_param []KeyValue `json:"placement_param"` }