Documentation
¶
Index ¶
Constants ¶
View Source
const KEY_COLUMN_NAME = "region_name"
====================================================================
Variables ¶
This section is empty.
Functions ¶
func UnRegisterRegion ¶
Types ¶
type RegionInfo ¶
type RegionInfo struct { RegionName string `gorm:"primaryKey"` // ex) "region01" ProviderName string // ex) "GCP" KeyValueInfoList infostore.KVList `gorm:"type:text"` // stored with json format, ex) { {region, us-east1}, {zone, us-east1-c}, ...} AvailableZoneList infostore.AZList `gorm:"type:text"` // stored with json format, ex) { us-east1-c, us-east1-d, ...} }
func GetRegion ¶
func GetRegion(regionName string) (*RegionInfo, error)
1. check params 2. get RegionIfno from info-store
func ListRegion ¶
func ListRegion() ([]*RegionInfo, error)
func RegisterRegion ¶
func RegisterRegionInfo ¶
func RegisterRegionInfo(rgnInfo RegionInfo) (*RegionInfo, error)
1. check params 2. insert them into info-store
Click to show internal directories.
Click to hide internal directories.