Giter Club home page Giter Club logo

koazblob's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.