common

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPIDER_URL string

Functions

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

func LookupKeyValueList

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

func NsValidation

func NsValidation() echo.MiddlewareFunc

func PrintJsonPretty

func PrintJsonPretty(v interface{})

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 RestGetNs

func RestGetNs(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 KeyValue

type KeyValue struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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