Documentation ¶
Index ¶
- Constants
- Variables
- func GenClusterTag(cluster string) (key string, value string)
- func GenProjectTag(projectID string) (key string, value string)
- func GetProjectClusterName(ctx Context, projid string, workspace string) (clusterName, projectName string, err error)
- func ProcessFailedRecord(ctx Context, source string, addonID string, record *dbclient.Record, ...)
- func PutCachedRegions(ak_ctx Context, regions *CachedRegionIDs)
- func UpdateGlobalCachedRegions(regions *CachedRegionIDs)
- type AccessKeySecret
- type CachedRegionIDs
- type CloudResourceType
- type CloudVendor
- type Context
- type PageOption
- type ResponsePager
- type TagResourceType
Constants ¶
View Source
const ( ChargeTypePrepaid = "prepaid" ChargeTypePostPaid = "postpaid" )
View Source
const ( TagPrefixCluster = "dice-cluster" TagPrefixProject = "dice-project" )
View Source
const ( CloudSourceExpireDays = 10 CloudSourceRunning = "Running" CloudSourceStopped = "Stopped" CloudSourceExpired = "Expired" CloudSourceBeforeExpired = "BeforeExpired" CloudSourceBeforeExpiredInTenDays = "BeforeExpired (10 days)" )
View Source
const ( CloudVendorAliCloud CloudVendor = "alicloud" CloudResourceOverviewJsPrefix = "/dice/ops/resource_overview" CloudResourcePrefix = "/dice/ops" ResourceOverview = "resource_overview" ResourceRegions = "regions" )
Variables ¶
View Source
var DefaultPageOption = PageOption{
PageSize: &defaultPageSize,
PageNumber: &defaultPageNum,
}
View Source
var PageSizeOneOption = PageOption{
PageSize: &pageSizeOne,
PageNumber: &defaultPageNum,
}
Functions ¶
func GenClusterTag ¶
func GenProjectTag ¶
func GetProjectClusterName ¶
func ProcessFailedRecord ¶
func ProcessFailedRecord(ctx Context, source string, addonID string, record *dbclient.Record, detail *apistructs.CreateCloudResourceRecord, err error)
func PutCachedRegions ¶
func PutCachedRegions(ak_ctx Context, regions *CachedRegionIDs)
func UpdateGlobalCachedRegions ¶
func UpdateGlobalCachedRegions(regions *CachedRegionIDs)
Types ¶
type AccessKeySecret ¶
type CachedRegionIDs ¶
func ActiveRegionIDs ¶
func ActiveRegionIDs(ctx Context) CachedRegionIDs
func GetCachedRegions ¶
func GetCachedRegions(ak_ctx Context) *CachedRegionIDs
type CloudResourceType ¶
type CloudResourceType string
const ( CloudResourceTypeCompute CloudResourceType = "Compute" CloudResourceTypeNetwork CloudResourceType = "Network" CloudResourceTypeStorage CloudResourceType = "Storage" CloudResourceTypeAddon CloudResourceType = "Addon" )
func (CloudResourceType) String ¶
func (c CloudResourceType) String() string
type CloudVendor ¶
type CloudVendor string
func (CloudVendor) String ¶
func (c CloudVendor) String() string
type PageOption ¶
type ResponsePager ¶
type TagResourceType ¶
type TagResourceType string
const ( TagResourceTypeVpc TagResourceType = "VPC" TagResourceTypeVsw TagResourceType = "VSWITCH" TagResourceTypeEip TagResourceType = "EIP" TagResourceTypeRedis TagResourceType = "REDIS" TagResourceTypeOss TagResourceType = "OSS" TagResourceTypeRDS TagResourceType = "RDS" TagResourceTypeECS TagResourceType = "ECS" TagResourceTypeOnsInstance TagResourceType = "ONS" TagResourceTypeOnsGroup TagResourceType = "ONS_GROUP" TagResourceTypeOnsTopic TagResourceType = "ONS_TOPIC" TagResourceTypeOnsInstanceTag TagResourceType = "INSTANCE" TagResourceTypeOnsGroupTag TagResourceType = "GROUP" TagResourceTypeOnsTopicTag TagResourceType = "TOPIC" )
func (TagResourceType) String ¶
func (t TagResourceType) String() string
Click to show internal directories.
Click to hide internal directories.