chore: remove legacy DNS providers (AliCloud, HuaweiCloud, WestCN, RainYun, Dode)
This commit is contained in:
@@ -41,7 +41,7 @@ func (config *Config) Command() {
|
||||
days = flag.Int("d", 30, "-t <days>")
|
||||
save = flag.String("s", "/tmp/ssl", "-s <save file>")
|
||||
email = flag.String("e", "", "-e <email>")
|
||||
DNSProvider = flag.String("D", "", "-D <DNS Provider> (e.g., TencentCloud, AliCloud, HuaweiCloud, WestCN, RainYun)")
|
||||
DNSProvider = flag.String("D", "", "-D <DNS Provider> (e.g., TencentCloud, Cloudflare)")
|
||||
kvp := flag.String("kv", "", "-kv <key=value>,<key=value>...")
|
||||
flag.Parse()
|
||||
|
||||
@@ -61,31 +61,13 @@ func (config *Config) Command() {
|
||||
Days: *days,
|
||||
SavePath: *save,
|
||||
Email: *email,
|
||||
DNSProviderConfig: DNSProviderConfig{
|
||||
DNSProvider: *DNSProvider,
|
||||
TencentCloud: TencentCloud{
|
||||
SecretID: KVP["SecretID"],
|
||||
SecretKey: KVP["SecretKey"],
|
||||
DNSProviderConfig: DNSProviderConfig{
|
||||
DNSProvider: *DNSProvider,
|
||||
TencentCloud: TencentCloud{
|
||||
SecretID: KVP["SecretID"],
|
||||
SecretKey: KVP["SecretKey"],
|
||||
},
|
||||
},
|
||||
AliCloud: AliCloud{
|
||||
AccessKeyId: KVP["AccessKeyId"],
|
||||
AccessKeySecret: KVP["AccessKeySecret"],
|
||||
RAMRole: KVP["RAMRole"],
|
||||
STSToken: KVP["STSToken"],
|
||||
},
|
||||
HuaweiCloud: HuaweiCloud{
|
||||
AccessKeyId: KVP["AccessKeyId"],
|
||||
Region: KVP["Region"],
|
||||
SecretAccessKey: KVP["SecretAccessKey"],
|
||||
},
|
||||
WestCN: WestCN{
|
||||
Username: KVP["Username"],
|
||||
Password: KVP["Password"],
|
||||
},
|
||||
RainYun: RainYun{
|
||||
ApiKey: KVP["ApiKey"],
|
||||
},
|
||||
},
|
||||
}
|
||||
config.VerifyCommand()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user