Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/azblob
A trivial Azure Blob Storage interface for OCaml
https://github.com/kkazuo/azblob
azure ocaml storage
Last synced: 26 days ago
JSON representation
A trivial Azure Blob Storage interface for OCaml
- Host: GitHub
- URL: https://github.com/kkazuo/azblob
- Owner: kkazuo
- License: isc
- Created: 2019-11-26T12:16:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T15:11:43.000Z (over 4 years ago)
- Last Synced: 2024-11-15T15:47:54.949Z (3 months ago)
- Topics: azure, ocaml, storage
- Language: OCaml
- Size: 24.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azblob -- A trivial Azure Blob Storage interface for OCaml
You can get, put, append and delete blobs.
We use Azure Blob REST API,
and this library depends as small as possible
and provides raw http response.You can also reads [Azure Blob Storage API](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api).
## Usage
```
open! Core
open! Async
open! Cohttp
open! Cohttp_asynclet example () =
let conn = Azblob.Conn.parse_exn "" in
let headers = Header.of_list ["content-type", "text/plain"] in
let path = "/your-container/your-blob.txt" in
let body = Body.of_string "Hello, world.\n" in
Azblob_async.put_blob conn ~headers ~path ~body
>>= fun (_res, _body) ->
()
```