Swiftpack.co - skelpo/GoogleCloudStorage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by skelpo.
skelpo/GoogleCloudStorage 0.1.0
A skelpo/Storage implementation for Google Cloud Storage
⭐️ 1
🕓 4 years ago
.package(url: "https://github.com/skelpo/GoogleCloudStorage.git", from: "0.1.0")

GoogleCloudStorage

An implementation of skelpo/Storage for Amazon S3. Uses the 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:

.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:

services.register { container in
  return try GoogleCloudStorage(worker: container, client: container.make(), bucket: "myproject-31415")
}

Or

services.register(Bucket(name: "myproject-31415"))
try services.register(GoogleCloudStorage.self)

API

You can find API documentation here.

License

GoogleCloudStorage is under the MIT license agreement.

GitHub

link
Stars: 1
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v0.1.0
5 years ago

Google Cloud Storage

This is a working implementation of the Google Cloud version of the Storage API. Feel free to check out the README and propose updates!

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics