/bosh-azureblobcli

Primary LanguageGoApache License 2.0Apache-2.0

bosh-azureblobcli

A Golang CLI for uploading, fetching and deleting content to/from Azure Blob Storage. TODO: This tool exists to work with the bosh-cli and director.

Installation

git clone https://github.com/bingosummer/bosh-azureblobcli $GOPATH/src/github.com/cloudfoundry/bosh-azureblobcli

Commands

Usage

bosh-azureblobcli --help

Upload an object

bosh-azureblobcli -c config.json put <path/to/file> <remote-blob>

Fetch an object

bosh-azureblobcli -c config.json get <remote-blob> <path/to/file>

Delete an object

bosh-azureblobcli -c config.json delete <remote-blob>

Check if an object exists

bosh-azureblobcli -c config.json exists <remote-blob>```

Configuration

The command line tool expects a JSON configuration file. Run bosh-azureblobcli --help for details.

Authentication Methods (credentials_source)

  • static: storage_account_name and storage_account_access_key will be provided.
  • none: No credentials are provided. The client is reading from a public bucket.
  • env_or_profile: The environment storage_account_name and storage_account_access_key will be provided.

Running Integration Tests

Development

  • A Makefile is provided that automates integration testing. Try make help to get started.
  • gvt is used for vendoring.

Contributing

For details on how to contribute to this project - including filing bug reports and contributing code changes - please see CONTRIBUTING.md.

License

This tool is licensed under Apache 2.0. Full license text is available in LICENSE.