https://github.com/jakobht/azurex
Implementation of the Azure Blob Storage Rest API for elixir
https://github.com/jakobht/azurex
api azure blob-storage elixir
Last synced: 8 months ago
JSON representation
Implementation of the Azure Blob Storage Rest API for elixir
- Host: GitHub
- URL: https://github.com/jakobht/azurex
- Owner: jakobht
- License: mit
- Created: 2020-11-06T08:09:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T09:52:05.000Z (over 1 year ago)
- Last Synced: 2024-04-23T10:08:18.276Z (over 1 year ago)
- Topics: api, azure, blob-storage, elixir
- Language: Elixir
- Homepage:
- Size: 143 KB
- Stars: 10
- Watchers: 3
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/jakobht/azurex/actions/workflows/elixir.yml)
[](https://hex.pm/packages/azurex)
# Azurex
Implementation of the Azure Blob Storage [Rest API](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api) for Elixir.
## Supported actions
Currently supports:
1. Downloading blobs
2. Uploading blobs
3. Deleting blobs
4. Stream uploading blobs
5. Listing blobs
6. Creating containers
7. Listing containers
## Installation
[Available in Hex](https://hex.pm/packages/azurex), the package can be installed
by adding `azurex` to your list of dependencies in `mix.exs` e.g.:
```elixir
def deps do
[
{:azurex, "~> 1.1.0"}
]
end
```
## Configuration
The configuration should _either_ define `storage_account_name` and `storage_account_key` _or_ `storage_account_connection_string`.
```elixir
config :azurex, Azurex.Blob.Config,
api_url: "https://sample.blob.core.windows.net", # Optional
default_container: "defaultcontainer", # Optional
storage_account_name: "name",
storage_account_key: "access key",
storage_account_connection_string: "Storage=Account;Connection=String" # Required if storage account `name` and `key` not set
```
## Documentation
Documentation can be found at [https://hexdocs.pm/azurex](https://hexdocs.pm/azurex). Or generated using [ExDoc](https://github.com/elixir-lang/ex_doc)
## Development
The goal is to support all actions in the Azure Blob Storage [Rest API](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api) - PRs welcome :)