Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/koazblob
Microsoft Azure Blob Storage API for Common Lisp
https://github.com/kkazuo/koazblob
azure common-lisp
Last synced: 15 days ago
JSON representation
Microsoft Azure Blob Storage API for Common Lisp
- Host: GitHub
- URL: https://github.com/kkazuo/koazblob
- Owner: kkazuo
- License: isc
- Created: 2019-10-12T16:22:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T02:36:36.000Z (over 5 years ago)
- Last Synced: 2024-11-15T15:47:53.122Z (3 months ago)
- Topics: azure, common-lisp
- Language: Common Lisp
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# KoAzBlob
Azure Blob Storage API.
## Status
Very basic functionality.
You may also read Blob REST API.
https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api## Usage
Setup Blob service context.
```
;; pass connection string as is.
(setq ac (koazblob:az-storage-account "DefaultEndpointsProtocol=https;AccountName=...;...=core.windows.net"))
```List containers.
```
(koazblob:az-list-containers ac)
```List blobs.
```
(koazblob:az-list-blobs ac :container "example")
```Create container.
```
(koazblob:az-create-container ac :container "example")
```Delete container.
```
(koazblob:az-delete-container ac :container "example")
```Get Blob contents.
```
(koazblob:az-get-blob ac :container "mycontainer" :path "/file/2019/10/log.txt")
```Get Blob properties.
```
(koazblob:az-get-blob-props ac :container "mycontainer" :path "/file/2019/10/log.txt")
```Operation on Block Blob.
```
;; Put (create new, or replace exists).
(koazblob:az-put-blob ac
:container "example"
:path "/test.txt"
:content "hello, world"
:headers '(("content-type" . "text/plain; charset=utf-8")))
```Operation on Append Blob.
```
;; First. Empty append entry.
(koazblob:az-put-blob ac
:container "example"
:path "/append.txt"
:headers '(("content-type" . "text/plain"))
:blob-type koazblob:+az-blob-type-append+)
;; Append block.
(koazblob:az-append-block ac
:container "example"
:path "/append.txt"
:content "hello")
```Delete Blob.
```
(koazblob:az-delete-blob ac :container "mycontainer" :path "/file/2019/10/log.txt")
```## Installation