aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Add GCS backend

Open rvrignaud opened this issue 10 years ago • 1 comments

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 ?

rvrignaud avatar Nov 04 '14 07:11 rvrignaud

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.PublishedStorage interface (for Amazon S3, it is https://github.com/smira/aptly/tree/master/s3)
  • create configuration for GCSPublishRoot in https://github.com/smira/aptly/blob/master/utils/config.go
  • create gcs.PublishedStorage based on config and prefix in AptlyContext.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

smira avatar Nov 04 '14 10:11 smira