cloud drive: add support for Tencent COS

This commit is contained in:
Chris Lu
2021-08-24 23:19:45 -07:00
parent 19a81d25af
commit a19c728034
5 changed files with 223 additions and 140 deletions

View File

@@ -76,6 +76,10 @@ func (c *commandRemoteConfigure) Do(args []string, commandEnv *CommandEnv, write
remoteConfigureCommand.StringVar(&conf.AliyunSecretKey, "aliyun.secret_key", "", "Aliyun secret key")
remoteConfigureCommand.StringVar(&conf.AliyunEndpoint, "aliyun.endpoint", "", "Aliyun endpoint")
remoteConfigureCommand.StringVar(&conf.TencentSecretId, "tencent.secret_id", "", "Tencent Secret Id")
remoteConfigureCommand.StringVar(&conf.TencentSecretKey, "tencent.secret_key", "", "Tencent secret key")
remoteConfigureCommand.StringVar(&conf.TencentEndpoint, "tencent.endpoint", "", "Tencent endpoint")
if err = remoteConfigureCommand.Parse(args); err != nil {
return nil
}