Documentation ¶
Index ¶
- Variables
- func GenTenanter(configPath string)
- func GetAliRegionId(regionName string) (int32, error)
- func GetAliRegionName(regionId int32) (string, error)
- func GetAwsRegionName(regionId int32) (string, error)
- func GetHuaweiRegionId(regionName string) (int32, error)
- func GetHuaweiRegionName(regionId int32) (string, error)
- func GetK8SRegionId(regionName string) (int32, error)
- func GetK8SRegionName(regionId int32) (string, error)
- func GetTencentRegionId(regionName string) (int32, error)
- func GetTencentRegionName(regionId int32) (string, error)
- func LoadCloudConfigs(configFile string) error
- func LoadCloudConfigsFromFile(configFile string) error
- func LoadCloudConfigsFromOsEnv() error
- func ShowConfigJson() ([]byte, error)
- type AccessKeyTenant
- type Region
- type Tenanter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenTenanter ¶
func GenTenanter(configPath string)
func GetAliRegionId ¶
GetAliRegionId prefix ali_
func GetAliRegionName ¶
GetAliRegionName prefix ali_
func GetAwsRegionName ¶
GetAwsRegionName prefix aws_
func GetHuaweiRegionId ¶
GetHuaweiRegionId prefix huawei
func GetHuaweiRegionName ¶
GetHuaweiRegionName prefix huawei
func GetK8SRegionId ¶
GetK8SRegionId prefix ali_
func GetK8SRegionName ¶
GetK8SRegionName prefix ali_
func GetTencentRegionId ¶
GetTencentRegionId prefix tc_
func GetTencentRegionName ¶
GetTencentRegionName prefix tencent
func LoadCloudConfigs ¶
func LoadCloudConfigsFromOsEnv ¶
func LoadCloudConfigsFromOsEnv() error
func ShowConfigJson ¶
Types ¶
type AccessKeyTenant ¶
type AccessKeyTenant struct {
// contains filtered or unexported fields
}
func (*AccessKeyTenant) AccountName ¶
func (tenant *AccessKeyTenant) AccountName() string
func (*AccessKeyTenant) Clone ¶
func (tenant *AccessKeyTenant) Clone() Tenanter
func (*AccessKeyTenant) GetId ¶
func (tenant *AccessKeyTenant) GetId() string
func (*AccessKeyTenant) GetSecret ¶
func (tenant *AccessKeyTenant) GetSecret() string
func (*AccessKeyTenant) GetToken ¶
func (tenant *AccessKeyTenant) GetToken() string
func (*AccessKeyTenant) GetUrl ¶
func (tenant *AccessKeyTenant) GetUrl() string
type Region ¶
func GetAllRegionIds ¶
func GetAllRegionIds(provider pbtenant.CloudProvider) (regions []Region)
type Tenanter ¶
func GetTenanters ¶
func GetTenanters(provider pbtenant.CloudProvider) ([]Tenanter, error)
func NewTenantWithAccessKey ¶
Click to show internal directories.
Click to hide internal directories.