chore: remove unused code

This commit is contained in:
Fu Diwei
2024-12-21 12:46:22 +08:00
parent b6203e57ed
commit ef9ddd27a5
20 changed files with 151 additions and 636 deletions

View File

@@ -15,8 +15,8 @@ import (
/*
提供商部署目标常量值。
注意:如果追加新的枚举值,请保持以 ASCII 排序。
NOTICE: If you add new enum, please keep ASCII order.
注意:如果追加新的常量值,请保持以 ASCII 排序。
NOTICE: If you add new constant, please keep ASCII order.
*/
const (
targetAliyunALB = "aliyun-alb"

View File

@@ -33,10 +33,13 @@ import (
"github.com/usual2970/certimate/internal/pkg/utils/maps"
)
// TODO: 该方法目前未实际使用,将在后续迭代中替换
func createDeployer(target string, accessConfig string, deployConfig map[string]any) (deployer.Deployer, deployer.Logger, error) {
logger := deployer.NewDefaultLogger()
/*
注意:如果追加新的常量值,请保持以 ASCII 排序。
NOTICE: If you add new constant, please keep ASCII order.
*/
switch target {
case targetAliyunALB, targetAliyunCDN, targetAliyunCLB, targetAliyunDCDN, targetAliyunNLB, targetAliyunOSS:
{