Unverified Commit 467aa1fb authored by vinukumar-vs's avatar vinukumar-vs Committed by GitHub
Browse files

Issue #KN-231 merge: Merge pull request #871 from project-sunbird/release-4.10.1

Issue #KN-231 feat: from 4.10.1 to 5.0.0
Showing with 13 additions and 8 deletions
+13 -8
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<dependency> <dependency>
<groupId>org.sunbird</groupId> <groupId>org.sunbird</groupId>
<artifactId>cloud-store-sdk</artifactId> <artifactId>cloud-store-sdk</artifactId>
<version>1.3.0</version> <version>1.4.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.scala-lang</groupId> <groupId>org.scala-lang</groupId>
......
...@@ -28,14 +28,17 @@ class StorageService { ...@@ -28,14 +28,17 @@ class StorageService {
val storageKey = Platform.config.getString("aws_storage_key") val storageKey = Platform.config.getString("aws_storage_key")
val storageSecret = Platform.config.getString("aws_storage_secret") val storageSecret = Platform.config.getString("aws_storage_secret")
storageService = StorageServiceFactory.getStorageService(new StorageConfig(storageType, storageKey, storageSecret)) storageService = StorageServiceFactory.getStorageService(new StorageConfig(storageType, storageKey, storageSecret))
} else if (StringUtils.equalsIgnoreCase(storageType, "gcloud")) {
val storageKey = Platform.config.getString("gcloud_client_key")
val storageSecret = Platform.config.getString("gcloud_private_secret")
storageService = StorageServiceFactory.getStorageService(new StorageConfig(storageType, storageKey, storageSecret))
} }
else if (StringUtils.equalsIgnoreCase(storageType, "cephs3")) { // else if (StringUtils.equalsIgnoreCase(storageType, "cephs3")) {
val storageKey = Platform.config.getString("cephs3_storage_key") // val storageKey = Platform.config.getString("cephs3_storage_key")
val storageSecret = Platform.config.getString("cephs3_storage_secret") // val storageSecret = Platform.config.getString("cephs3_storage_secret")
val endpoint = Platform.config.getString("cephs3_storage_endpoint") // val endpoint = Platform.config.getString("cephs3_storage_endpoint")
storageService = StorageServiceFactory.getStorageService(new StorageConfig(storageType, storageKey, storageSecret, Option(endpoint))) // storageService = StorageServiceFactory.getStorageService(new StorageConfig(storageType, storageKey, storageSecret, Option(endpoint)))
// }
}
else throw new ServerException("ERR_INVALID_CLOUD_STORAGE", "Error while initialising cloud storage") else throw new ServerException("ERR_INVALID_CLOUD_STORAGE", "Error while initialising cloud storage")
} }
storageService storageService
...@@ -46,6 +49,8 @@ class StorageService { ...@@ -46,6 +49,8 @@ class StorageService {
Platform.config.getString("azure_storage_container") Platform.config.getString("azure_storage_container")
else if (StringUtils.equalsIgnoreCase(storageType, "aws")) else if (StringUtils.equalsIgnoreCase(storageType, "aws"))
Platform.config.getString("aws_storage_container") Platform.config.getString("aws_storage_container")
else if (StringUtils.equalsIgnoreCase(storageType, "gcloud"))
Platform.config.getString("gcloud_storage_bucket")
else if (StringUtils.equalsIgnoreCase(storageType, "cephs3")) else if (StringUtils.equalsIgnoreCase(storageType, "cephs3"))
Platform.config.getString("cephs3_storage_container") Platform.config.getString("cephs3_storage_container")
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment