feat: add huaweicloud elb deployer

This commit is contained in:
Fu Diwei
2024-10-24 22:37:55 +08:00
parent af3e20709d
commit dc720a5d99
13 changed files with 673 additions and 37 deletions

View File

@@ -65,6 +65,7 @@ export type Statistic = {
type DeployTarget = {
type: string;
provider: string;
name: string;
icon: string;
};
@@ -77,10 +78,11 @@ export const deployTargetsMap: Map<DeployTarget["type"], DeployTarget> = new Map
["tencent-cdn", "common.provider.tencent.cdn", "/imgs/providers/tencent.svg"],
["tencent-cos", "common.provider.tencent.cos", "/imgs/providers/tencent.svg"],
["huaweicloud-cdn", "common.provider.huaweicloud.cdn", "/imgs/providers/huaweicloud.svg"],
["huaweicloud-elb", "common.provider.huaweicloud.elb", "/imgs/providers/huaweicloud.svg"],
["qiniu-cdn", "common.provider.qiniu.cdn", "/imgs/providers/qiniu.svg"],
["local", "common.provider.local", "/imgs/providers/local.svg"],
["ssh", "common.provider.ssh", "/imgs/providers/ssh.svg"],
["webhook", "common.provider.webhook", "/imgs/providers/webhook.svg"],
["k8s-secret", "common.provider.kubernetes.secret", "/imgs/providers/k8s.svg"],
].map(([type, name, icon]) => [type, { type, name, icon }])
].map(([type, name, icon]) => [type, { type, provider: type.split("-")[0], name, icon }])
);