aptly
aptly copied to clipboard
Add GCS backend
Hello,
Would that be possible to add a Google Cloud Storage backend for aptly ? Here is the API : https://cloud.google.com/storage/docs/json_api/v1/?hl=FR It seems to have a go library : https://cloud.google.com/storage/docs/json_api/v1/json-api-go-samples?hl=FR
Thoughts ?
I'm not using Google Cloud Storage myself, do you care to provide pull request for that?
Rough plan should be something like that:
- create wrapper around GCS implementing
aptly.PublishedStorageinterface (for Amazon S3, it is https://github.com/smira/aptly/tree/master/s3) - create configuration for
GCSPublishRootin https://github.com/smira/aptly/blob/master/utils/config.go - create
gcs.PublishedStoragebased on config and prefix inAptlyContext.GetPublishedStorage: https://github.com/smira/aptly/blob/master/context/context.go#L247 - that should be all on implementation side, we need system test to verify correct operations, like one for S3: https://github.com/smira/aptly/blob/master/system/t06_publish/s3.py