* Implemented AmazonS3PathPrefix

* Remove unecessary method

* fix for test

* fix for test which are failing

* fix for test which are failing

* fix for test

Co-authored-by: Dusan Panic <dusan@salestrekker.com>
Этот коммит содержится в:
Dušan Panić
2020-07-07 00:20:13 +02:00
коммит произвёл GitHub
родитель 70084f107c
Коммит 83a80a2422
6 изменённых файлов: 52 добавлений и 18 удалений

Просмотреть файл

@@ -1265,6 +1265,7 @@ type FileSettings struct {
AmazonS3AccessKeyId *string `restricted:"true"`
AmazonS3SecretAccessKey *string `restricted:"true"`
AmazonS3Bucket *string `restricted:"true"`
AmazonS3PathPrefix *string `restricted:"true"`
AmazonS3Region *string `restricted:"true"`
AmazonS3Endpoint *string `restricted:"true"`
AmazonS3SSL *bool `restricted:"true"`
@@ -1329,6 +1330,10 @@ func (s *FileSettings) SetDefaults(isUpdate bool) {
s.AmazonS3Bucket = NewString("")
}
if s.AmazonS3PathPrefix == nil {
s.AmazonS3PathPrefix = NewString("")
}
if s.AmazonS3Region == nil {
s.AmazonS3Region = NewString("")
}