yunionmeta

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY_MD5 = "d751713988987e9331980363e24189ce"
)

Variables

This section is empty.

Functions

func GetZoneIdBySuffix

func GetZoneIdBySuffix(zoneMaps map[string]string, suffix string) string

Types

type SSkuResourcesMeta

type SSkuResourcesMeta struct {
	// RDS套餐
	DBInstanceBase string `json:"dbinstance_base"`
	// 虚拟机套餐
	ServerBase string `json:"server_base"`
	// Redis套餐
	ElasticCacheBase string `json:"elastic_cache_base"`
	// 公有云镜像
	ImageBase string `json:"image_base"`

	NatBase string `json:"nat_base"`
	NasBase string `json:"nas_base"`
	WafBase string `json:"waf_base"`

	CloudpolicyBase string `json:"cloudpolicy_base"`

	RateBase string `json:"rate_base"`
	// 汇率转换
	CurrencyExchangeBase string `json:"currency_exchange_base"`
	// contains filtered or unexported fields
}

func FetchYunionmeta

func FetchYunionmeta(ctx context.Context) (*SSkuResourcesMeta, error)

func (*SSkuResourcesMeta) Get

func (self *SSkuResourcesMeta) Get(url string, retVal interface{}) error

func (*SSkuResourcesMeta) GetCurrencyRate

func (self *SSkuResourcesMeta) GetCurrencyRate(src, dest string) (float64, error)

func (*SSkuResourcesMeta) Index

func (self *SSkuResourcesMeta) Index(resType string) (map[string]string, error)

func (*SSkuResourcesMeta) List

func (self *SSkuResourcesMeta) List(resType string, regionId string, retVal interface{}) error

Jump to

Keyboard shortcuts

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