Documentation
¶
Index ¶
- Variables
- func RestCheckMcis(c echo.Context) error
- func RestCheckVm(c echo.Context) error
- func RestDelAllMcis(c echo.Context) error
- func RestDelMcis(c echo.Context) error
- func RestDelMcisVm(c echo.Context) error
- func RestGetAllMcis(c echo.Context) error
- func RestGetMcis(c echo.Context) error
- func RestGetMcisVm(c echo.Context) error
- func RestPostMcis(c echo.Context) error
- func RestPostMcisRecommand(c echo.Context) error
- func RestPostMcisVm(c echo.Context) error
- func RestPutMcis(c echo.Context) error
- func RestPutMcisVm(c echo.Context) error
- type KeyValue
- type RegionInfo
- type SpiderVMReqInfo
- type VMInfo
- type VMReqInfo
- type VMStatus
- type VMStatusInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var SPIDER_URL string
Functions ¶
func RestCheckMcis ¶
func RestCheckVm ¶
func RestDelAllMcis ¶
func RestDelMcis ¶
func RestDelMcisVm ¶
func RestGetAllMcis ¶
func RestGetMcis ¶
func RestGetMcisVm ¶
func RestPostMcis ¶
func RestPostMcisRecommand ¶
func RestPostMcisVm ¶
func RestPutMcis ¶
func RestPutMcisVm ¶
Types ¶
type RegionInfo ¶
type SpiderVMReqInfo ¶ added in v0.1.3
type VMInfo ¶ added in v0.1.3
type VMInfo struct {
IId common.IID // {NameId, SystemId}
ImageIId common.IID
VpcIID common.IID
SubnetIID common.IID // AWS, ex) subnet-8c4a53e4
SecurityGroupIIds []common.IID // AWS, ex) sg-0b7452563e1121bb6
KeyPairIId common.IID
VMSpecName string // instance type or flavour, etc... ex) t2.micro or f1.micro
StartTime time.Time // Timezone: based on cloud-barista server location.
Region RegionInfo // ex) {us-east1, us-east1-c} or {ap-northeast-2}
VMUserId string // ex) user1
VMUserPasswd string
NetworkInterface string // ex) eth0
PublicIP string
PublicDNS string
PrivateIP string
PrivateDNS string
VMBootDisk string // ex) /dev/sda1
VMBlockDisk string // ex)
KeyValueList []KeyValue
}
type VMStatus ¶ added in v0.1.3
type VMStatus string // Spider
GO do not support Enum. So, define like this.
const ( Creating VMStatus = "Creating" // from launch to running Running VMStatus = "Running" Suspending VMStatus = "Suspending" // from running to suspended Suspended VMStatus = "Suspended" Resuming VMStatus = "Resuming" // from suspended to running Rebooting VMStatus = "Rebooting" // from running to running Terminating VMStatus = "Terminating" // from running, suspended to terminated Terminated VMStatus = "Terminated" NotExist VMStatus = "NotExist" // VM does not exist Failed VMStatus = "Failed" )
type VMStatusInfo ¶ added in v0.1.3
type VMStatusInfo struct {
VmStatus VMStatus
}
Click to show internal directories.
Click to hide internal directories.