service

package
v0.3.0-espresso Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cb spider call rest api handlers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudConnectionUrl = os.Getenv("SPIDER_URL")

var CloudConnectionUrl = "http://15.165.16.67:1024"

View Source
var MCISUrl = os.Getenv("TUMBLE_URL")
View Source
var NameSpaceUrl = os.Getenv("TUMBLE_URL")

var NameSpaceUrl = "http://15.165.16.67:1323"

View Source
var SpiderUrl = os.Getenv("SPIDER_URL")
View Source
var TumbleUrl = os.Getenv("TUMBLE_URL")

Functions

func AuthenticationHandler added in v0.2.8

func AuthenticationHandler() string

func GetGeoMetryInfo

func GetGeoMetryInfo(wg *sync.WaitGroup, ip_address string, status string, vm_id string, vm_name string, returnResult *[]IPStackInfo)

func GetNSCnt added in v0.2.8

func GetNSCnt() int

func GetVMStatus

func GetVMStatus(vm_name string, connectionConfig string) string

func HttpGetHandler added in v0.2.8

func HttpGetHandler(url string) io.ReadCloser

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 IPStackInfo

type IPStackInfo struct {
	IP          string  `json:"ip"`
	Lat         float64 `json:"latitude"`
	Long        float64 `json:"longitude"`
	CountryCode string  `json:"country_code"`
	VMName      string
	VMID        string
	Status      string
}

type Image added in v0.2.8

type Image struct {
	KeyValueList []KeyValueInfo `json:"KeyValueList"`
	// contains filtered or unexported fields
}

func GetImageList added in v0.2.8

func GetImageList() []Image

type ImageRESP added in v0.2.8

type ImageRESP struct {
	Image []struct {
		KeyValueList []KeyValueInfo `json:"KeyValueList"`
		// contains filtered or unexported fields
	} `json:"image"`
}

type KeepZero

type KeepZero float64

func (KeepZero) MarshalJSON

func (f KeepZero) MarshalJSON() ([]byte, error)

type KeyValueInfo

type KeyValueInfo struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

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

type RESP

type RESP struct {
	Region []struct {
		RegionName       string         `json:"RegionName"`
		ProviderName     string         `json:"ProviderName"`
		KeyValueInfoList []KeyValueInfo `json:"KeyValueInfoList"`
	} `json:"region"`
}

type RegionInfo

type RegionInfo struct {
	RegionName       string `json:"RegionName"`
	ProviderName     string `json:"ProviderName"`
	KeyValueInfoList []KeyValueInfo
}

func GetRegionList

func GetRegionList() []RegionInfo

Jump to

Keyboard shortcuts

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