regioninfomanager

package
v0.0.0-...-8fc61e2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnRegisterRegion

func UnRegisterRegion(regionName string) (bool, error)

Types

type RegionInfo

type RegionInfo struct {
	RegionName       string          // ex) "region01"
	ProviderName     string          // ex) "GCP"
	KeyValueInfoList []icbs.KeyValue // ex) { {region, us-east1},

}

====================================================================

func GetRegion

func GetRegion(regionName string) (*RegionInfo, error)

1. check params 2. get CredentialInfo from cb-store

func ListRegion

func ListRegion() ([]*RegionInfo, error)

func RegisterRegion

func RegisterRegion(regionName string, providerName string, keyValueInfoList []icbs.KeyValue) (*RegionInfo, error)

1. check params 2. insert them into cb-store

func RegisterRegionInfo

func RegisterRegionInfo(rgnInfo RegionInfo) (*RegionInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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