Skip to content

HTTP proxy with REST API to interact with Azure Blob Storage

License

Notifications You must be signed in to change notification settings

cirruslabs/azure-blob-storage-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

HTTP proxy with REST API to interact with Azure's Blob Storage.

Simply allows to use HEAD, GET or PUT requests to check blob's availability, as well as downloading or uploading blobs to a specified Azure container by blob's name.

For example, GET for <proxy_url>/some/file will return some/file blob if it exists.

Prebuilt Docker image is available on Docker Hub:

docker pull ghcr.io/cirruslabs/azure-blob-storage-proxy:latest

Usage

$: proxy --help
  -account-key string
        Azure Account Key
  -account-name string
        Azure Account Name
  -container string
        Container to use for storing caches. (default "cirrus-ci-caches")
  -port int
        Port to serve (default 8080)
  -prefix string
        Optional prefix for all objects. For example, use --prefix=foo/.

Testing

Tests expect to have Azure API available on localhost:10000. It is recommended to run azurite like this:

docker run -d -t -p 10000:10000 -p 10001:10001 mcr.microsoft.com/azure-storage/azurite

After azurite is up and running on 10000 port simply run go test ./... to test all the things.

About

HTTP proxy with REST API to interact with Azure Blob Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages