GithubHelp home page GithubHelp logo

s3-like compatibility about go-pmtiles HOT 8 CLOSED

zifeo avatar zifeo commented on September 18, 2024
s3-like compatibility

from go-pmtiles.

Comments (8)

bdon avatar bdon commented on September 18, 2024

If you are inputting the URLs can you use virtual host-style URLs instead? AWS has been trying to deprecate path style URLs for a while https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access so it seem like they should be 1:1 equivalent.

from go-pmtiles.

zifeo avatar zifeo commented on September 18, 2024

@bdon Thanks for getting back, unfortunately our storage provider does not offer virtual ones, only path style are supported.

from go-pmtiles.

bdon avatar bdon commented on September 18, 2024

Which storage provider or storage engine is this so others can reproduce?

from go-pmtiles.

zifeo avatar zifeo commented on September 18, 2024

@bdon Openstack Swift, but I suppose you can also use minio to replicate.

from go-pmtiles.

bdon avatar bdon commented on September 18, 2024

PR here: #113

Currently we force the use of awssdkv2, but v1 is necessary to support those flags and work with Minio. Defaulting to v1 shouldn't have any functional impact. The alternative is to add more storage implementation-specific logic to go-pmtiles but that would defeat the purpose of using the gocloud abstraction.

Aligns with suggested way of using Minio in gocloud docs: https://gocloud.dev/howto/blob/#s3-compatible

from go-pmtiles.

bdon avatar bdon commented on September 18, 2024

I've merged it into main, please see if it fixes the issue and I'll make a minor release.

from go-pmtiles.

zifeo avatar zifeo commented on September 18, 2024

@bdon confirmed, thanks a lot!

from go-pmtiles.

bdon avatar bdon commented on September 18, 2024

Released in https://github.com/protomaps/go-pmtiles/releases/tag/v1.12.0

from go-pmtiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.