common

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPIDER_URL string

Functions

func GenId

func GenId(name string) string

func GenMcisKey

func GenMcisKey(nsId string, mcisId string, vmId string) string

func GenResourceKey

func GenResourceKey(nsId string, resourceType string, resourceId string) string

func GenUuid

func GenUuid() string

func GetCspResourceId

func GetCspResourceId(nsId string, resourceType string, resourceId string) (string, error)

func LookupKeyValueList

func LookupKeyValueList(kvl []KeyValue, key string) string

func NsValidation

func NsValidation() echo.MiddlewareFunc

func PrintJsonPretty

func PrintJsonPretty(v interface{})

func RestCheckNs

func RestCheckNs(c echo.Context) error

func RestDelAllNs

func RestDelAllNs(c echo.Context) error

func RestDelNs

func RestDelNs(c echo.Context) error

func RestGetAllNs

func RestGetAllNs(c echo.Context) error

func RestGetConnConfig

func RestGetConnConfig(c echo.Context) error

func RestGetConnConfigList

func RestGetConnConfigList(c echo.Context) error

func RestGetNs

func RestGetNs(c echo.Context) error

func RestGetRegion

func RestGetRegion(c echo.Context) error

func RestGetRegionList

func RestGetRegionList(c echo.Context) error

func RestPostNs

func RestPostNs(c echo.Context) error

MCIS API Proxy: Ns

func RestPutNs

func RestPutNs(c echo.Context) error

Types

type ConnConfig

type ConnConfig struct {
	ConfigName     string
	ProviderName   string
	DriverName     string
	CredentialName string
	RegionName     string
}

func GetConnConfig

func GetConnConfig(ConnConfigName string) (ConnConfig, error)

type ConnConfigList

type ConnConfigList struct {
	Connectionconfig []ConnConfig `json:"connectionconfig"`
}

func GetConnConfigList

func GetConnConfigList() (ConnConfigList, error)

type IID added in v0.1.3

type IID struct {
	NameId   string // NameID by user
	SystemId string // SystemID by CloudOS
}

Spider 2020-03-30 https://github.com/cloud-barista/cb-spider/blob/master/cloud-control-manager/cloud-driver/interfaces/resources/IId.go

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type Region

type Region struct {
	RegionName       string
	ProviderName     string
	KeyValueInfoList []KeyValue
}

func GetRegion

func GetRegion(RegionName string) (Region, error)

type RegionList

type RegionList struct {
	Region []Region `json:"region"`
}

func GetRegionList

func GetRegionList() (RegionList, error)

Jump to

Keyboard shortcuts

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