Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Micronaut's ResourceLoader to be able to get objects using a short URI format #112

Open
alvarosanchez opened this issue Sep 7, 2022 · 0 comments
Labels
type: enhancement New feature or request

Comments

@alvarosanchez
Copy link
Member

Implement the ResourceLoader interface to get the objects using shorter URI in common format.


<object-storage-name>://path/to/file
  • is the ObjectStorage#getName

Then for configuration:

micronaut:
  object-storage:
    aws:
      public-images:
        bucket: public-images-bucket

The locator would be: public-images://path/to/file


[s3|os|gs|azb]:([cloud-provider-specifics]:)*//<storage-name>/path/to/file

Where for the cloud providers:

  • AWS
    • format: s3://<bucket-name>/path/to/file
    • example: s3://micronaut-object-storage/micronaut-buffer-netty-3.1.1.pom
  • Azure
    • format: azb:<storage-account-name>://<container>/path/to/file
    • example: azb:micronautpgressatest://micronaut-object-storate/micronaut-buffer-netty-3.1.1.pom
  • Google Cloud
    • format: gs://<bucket-name>/path/to/file
    • example: sgs//micronaut-object-storage/micronaut-buffer-netty-3.1.1.pom
  • Oracle Cloud
    • format: os:<region>:<namespace>://<bucket-name>/path/to/file
    • example: os:us-ashburn-1:cloudnative-devrel://micronaut-object-storate/micronaut-buffer-netty-3.1.1.pom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant