Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/az-blob
A Clojure library designed to access Azure Blob Storage API without Azure SDK.
https://github.com/kkazuo/az-blob
azure clojure storage
Last synced: about 14 hours ago
JSON representation
A Clojure library designed to access Azure Blob Storage API without Azure SDK.
- Host: GitHub
- URL: https://github.com/kkazuo/az-blob
- Owner: kkazuo
- License: epl-2.0
- Created: 2019-10-29T12:25:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T16:07:29.000Z (about 5 years ago)
- Last Synced: 2024-10-28T13:06:42.147Z (19 days ago)
- Topics: azure, clojure, storage
- Language: Clojure
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# az-blob
A Clojure library designed to access Azure Blob Storage API without Azure SDK.
Azure SDK has huge dependencies.
You can avoid dependency conflict with this library.
## Usage
```
(require '[az-blob.core :as az])
```First of all, make account map from connection string.
```
(def ac (conn-str->map "DefaultEndpointsProtocol=https;...=core.windows.net"))
```List containers.
```
(list-containers ac)
```List blobs in a container.
```
(list-blobs ac "example")
```Get Blob in a container.
```
(get-blob ac "example" "test.txt")
```Put Blob to a container.
```
(put-blob "hello" ac "example" "hello.txt")
```## License
Copyright © 2019 Koga Kazuo
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.