service

package
v0.0.0-...-9c72d28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: Apache-2.0, Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

README

cb spider call rest api handlers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudConnectionUrl = "http://15.165.16.67:1024"
View Source
var MCISUrl = "http://15.165.16.67:1323"
View Source
var NameSpaceUrl = "http://15.165.16.67:1323"
View Source
var SPiderUrl = "http://15.165.16.67:1024"

Functions

func GetVMStatus

func GetVMStatus(vm_name string, connectionConfig string) string

func RequestGet

func RequestGet(url string)

Types

type CloudConnectionInfo

type CloudConnectionInfo struct {
	ID             string `json:"id"`
	ConfigName     string `json:"ConfigName"`
	ProviderName   string `json:"ProviderName"`
	DriverName     string `json:"DriverName"`
	CredentialName string `json:"CredentialName"`
	RegionName     string `json:"RegionName"`
	Description    string `json:"description"`
}

func GetConnectionList

func GetConnectionList() []CloudConnectionInfo

func GetConnectionconfig

func GetConnectionconfig(drivername string) CloudConnectionInfo

func GetCredentialList

func GetCredentialList() []CloudConnectionInfo

func GetCredentialReg

func GetCredentialReg() []CloudConnectionInfo

func GetDriverReg

func GetDriverReg() []CloudConnectionInfo

type MCISInfo

type MCISInfo struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Status string `json:"status"`
	VMNum  string `json:"vm_num"`
}

func GetMCIS

func GetMCIS(nsid string, mcisId string) []MCISInfo

func GetMCISList

func GetMCISList(nsid string) []MCISInfo

type NSInfo

type NSInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

func GetNS

func GetNS(nsID string) NSInfo

func GetNSList

func GetNSList() []NSInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL