diff --git a/src/Storage/Device/DreamObjects.php b/src/Storage/Device/DreamObjects.php new file mode 100644 index 00000000..e5e09ab5 --- /dev/null +++ b/src/Storage/Device/DreamObjects.php @@ -0,0 +1,46 @@ +headers['host'] = $bucket.'objects-'.$region.'.'.'dream.io'; + } + + /** + * @return string + */ + public function getName(): string + { + return 'DreamHost Object Storage'; + } + + /** + * @return string + */ + public function getDescription(): string + { + return 'DreamHost Object Storage'; + } +} diff --git a/tests/Storage/Device/DreamObjectsTest.php b/tests/Storage/Device/DreamObjectsTest.php new file mode 100644 index 00000000..f52594b0 --- /dev/null +++ b/tests/Storage/Device/DreamObjectsTest.php @@ -0,0 +1,30 @@ +root = '/root'; + $key = $_SERVER['DREAMOBJECTS_ACCESS_KEY'] ?? ''; + $secret = $_SERVER['DREAMOBJECTS_SECRET'] ?? ''; + $bucket = "utopia-dreamobjects-store"; + + $this->object = new DreamObjects($this->root, $key, $secret, $bucket, DreamObjects::US_EAST_1, DreamObjects::ACL_PUBLIC_READ); + + } + + protected function getAdapterName(): string + { + return 'DreamHost Object Storage'; + } + + protected function getAdapterDescription(): string + { + return 'DreamHost Object Storage'; + } +}