Documentation ¶
Index ¶
- Variables
- func BenchmarkAction(nsId string, mcisId string, action string, option string) (multiInfo, error)
- func Close(client scp.Client)
- func Connect(sshInfo SSHInfo) (scp.Client, error)
- func ConnectKeyPath(sshKeyPathInfo SSHKeyPathInfo) (scp.Client, error)
- func Copy(client scp.Client, sourcePath string, remotePath string) error
- func InstallAgentToMcis(nsId string, mcisId string, req *mcisCmdReq) (agentInstallContent, error)
- 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 RestGetAllBenchmark(c echo.Context) error
- func RestGetAllMcis(c echo.Context) error
- func RestGetBenchmark(c echo.Context) error
- func RestGetMcis(c echo.Context) error
- func RestGetMcisVm(c echo.Context) error
- func RestPostCmdMcis(c echo.Context) error
- func RestPostCmdMcisVm(c echo.Context) error
- func RestPostInstallAgentToMcis(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
- func RunCommand(client scp.Client, cmd string) (string, error)
- func RunSSH(vmIP string, userName string, privateKey string, cmd string) (*string, error)
- func RunSSHAsync(wg *sync.WaitGroup, vmID string, vmIP string, userName string, ...)
- func SSHCopy(sshInfo SSHInfo, sourcePath string, remotePath string) error
- func SSHCopyByKeyPath(sshInfo SSHKeyPathInfo, sourcePath string, remotePath string) error
- func SSHRun(sshInfo SSHInfo, cmd string) (string, error)
- func SSHRunByKeyPath(sshInfo SSHKeyPathInfo, cmd string) (string, error)
- func ValidateStatus()
- type KeyValue
- type RegionInfo
- type SSHInfo
- type SSHKeyPathInfo
- type SpiderVMReqInfo
- type VMInfo
- type VMOperation
- type VMReqInfo
- type VMStatus
- type VMStatusInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var SPIDER_URL string
Functions ¶
func BenchmarkAction ¶ added in v0.1.4
func ConnectKeyPath ¶ added in v0.1.4
func ConnectKeyPath(sshKeyPathInfo SSHKeyPathInfo) (scp.Client, error)
func InstallAgentToMcis ¶ added in v0.1.9
func RestCheckMcis ¶
func RestCheckVm ¶
func RestDelAllMcis ¶
func RestDelMcis ¶
func RestDelMcisVm ¶
func RestGetAllBenchmark ¶ added in v0.1.9
func RestGetAllMcis ¶
func RestGetBenchmark ¶ added in v0.1.4
func RestGetMcis ¶
func RestGetMcisVm ¶
func RestPostCmdMcis ¶ added in v0.1.4
func RestPostCmdMcisVm ¶ added in v0.1.4
func RestPostInstallAgentToMcis ¶ added in v0.1.4
func RestPostMcis ¶
func RestPostMcisRecommand ¶
func RestPostMcisVm ¶
func RestPutMcis ¶
func RestPutMcisVm ¶
func RunCommand ¶ added in v0.1.4
func RunSSHAsync ¶ added in v0.1.5
func SSHCopyByKeyPath ¶ added in v0.1.4
func SSHCopyByKeyPath(sshInfo SSHKeyPathInfo, sourcePath string, remotePath string) error
func SSHRunByKeyPath ¶ added in v0.1.4
func SSHRunByKeyPath(sshInfo SSHKeyPathInfo, cmd string) (string, error)
func ValidateStatus ¶ added in v0.1.7
func ValidateStatus()
Types ¶
type RegionInfo ¶
type SSHInfo ¶ added in v0.1.4
type SSHInfo struct { UserName string // ex) "root" PrivateKey []byte // ex) []byte(`-----BEGIN RSA PRIVATE KEY----- // MIIEoQIBAAKCAQEArVNOLwMIp5VmZ4VPZotcoCHdEzimKalAsz+ccLfvAA1Y2ELH // ...`) ServerPort string // ex) "node12:22" }
====================================================================
type SSHKeyPathInfo ¶ added in v0.1.4
type SSHKeyPathInfo struct { UserName string // ex) "root" KeyPath string // ex) "/root/.ssh/id_rsa // You should use the full path. ServerPort string // ex) "node12:22" }
====================================================================
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 VMOperation ¶ added in v0.1.7
type VMOperation string
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.