quarkiverse / quarkus-azure-services

Quarkus extensions for Azure services
Apache License 2.0
13 stars 18 forks source link

Be able to define containers #41

Open agoncal opened 1 year ago

agoncal commented 1 year ago

At startup it would be good to create containers. We could do that using a set of properties:

quarkus.azure.storage.blob.container."containerA".generation=create
quarkus.azure.storage.blob.container."containerB".generation=drop-and-create
quarkus.azure.storage.blob.container."containerC".generation=none

And then be able to set some properties:

quarkus.azure.storage.blob.container."containerA".auth-mode=key
quarkus.azure.storage.blob.container."containerA".fail-on-exist=true
quarkus.azure.storage.blob.container."containerA".public-access=blob
quarkus.azure.storage.blob.container."containerA".metadata={key1/value1,key2/value2,key3/value3}

Where:

melloware commented 1 year ago

This would be an awesome feature!

JoaoBrandao commented 1 year ago

@agoncal I would recommend adding another property that enables the developer to insert files on those containers

quarkus.azure.storage.blob.container."containerA".folder="resources/demo"

In this case, demo would be a root folder with files inside