Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skelpo/GoogleCloudStorage
A skelpo/Storage implementation for Google Cloud Storage
https://github.com/skelpo/GoogleCloudStorage
Last synced: 2 months ago
JSON representation
A skelpo/Storage implementation for Google Cloud Storage
- Host: GitHub
- URL: https://github.com/skelpo/GoogleCloudStorage
- Owner: skelpo
- License: mit
- Created: 2018-12-17T16:50:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T12:18:06.000Z (over 5 years ago)
- Last Synced: 2024-08-02T00:22:25.885Z (6 months ago)
- Language: Swift
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Swift-Packages - GoogleCloudStorage - A skelpo/Storage implementation for Google Cloud Storage. (Storage)
README
# GoogleCloudStorage
An implementation of [skelpo/Storage](https://github.com/skelpo/Storage) for Amazon S3. Uses the [google-cloud-provider](https://github.com/vapor-community/google-cloud-provider) package for interacting with the S3 API.
## Installing
Add the package declaration to your manifest's `dependencies` array with the [latest version](https://github.com/skelpo/GoogleCloudStorage/releases/latest):
```swift
.package(url: "https://github.com/skelpo/GoogleCloudStorage.git", from: "0.1.0")
```Then run `swift package update` and regenerate your Xcode project (if you have one).
## Configuration
Register `GoogleCloudProviderConfig`, `GoogleCloudStorageConfig`, and `GoogleCloudProvider` instances with your app's services.
Then you can either register a `GoogleCloudStorage` instance or register the `GoogleCloudStorage` type:
```swift
services.register { container in
return try GoogleCloudStorage(worker: container, client: container.make(), bucket: "myproject-31415")
}
```Or
```swift
services.register(Bucket(name: "myproject-31415"))
try services.register(GoogleCloudStorage.self)
```## API
You can find API documentation [here](http://www.skelpo.codes/GoogleCloudStorage/).
## License
GoogleCloudStorage is under the [MIT license agreement](https://github.com/skelpo/GoogleCloudStorage/blob/master/LICENSE).