feat: add local file system storage provider (#224)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-08 14:18:44 +08:00
committed by Yang Luo
parent 44150a6781
commit c55fa4f452
9 changed files with 178 additions and 11 deletions

View File

@ -18,6 +18,8 @@ import "github.com/qor/oss"
func GetStorageProvider(providerType string, clientId string, clientSecret string, region string, bucket string, endpoint string) oss.StorageInterface {
switch providerType {
case "Local File System":
return NewLocalFileSystemStorageProvider(clientId, clientSecret, region, bucket, endpoint)
case "AWS S3":
return NewAwsS3StorageProvider(clientId, clientSecret, region, bucket, endpoint)
case "Aliyun OSS":