azure-blob-md5

command module
v0.0.0-...-ab1fc98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2019 License: MIT Imports: 6 Imported by: 0

README

Azure Blob MD5

Go Report Card

Asynchronously computes the MD5 hash of blobs in Azure Blob Storage to maximize performance. Azure blob MD5 computes the hash of several blobs concurrently. Local files are also supported so that you can use this functionality as a validation step for your data transfers to Azure blob storage.

Getting Started

Pre-requisites

Install Go

Get and build from the source.

go get github.com/giventocode/azure-blob-md5
go build -o bmd5 github.com/giventocode/azure-blob-md5

Set the credentials to the storage account via the environment variables.

export ACCOUNT_NAME=<YOUR_ACCOUNT_NAME>
export ACCOUNT_KEY=<YOUR_ACCOUNT_KEY>

Examples

The following calculates the MD5 hash for the blob file in container docs

./bmd5 -b file -c docs

You can use the -m option to set the Content-MD5 property of the blob after the MD5 hash is calculated.

./bmd5 -m -b file -c docs

Calculating the MD5 hash for local files is supported.

./bmd5 -f file

Blobs and local files can be set and MD5 hashes will be calculated for both sources. The target scenario is validation of a data uploads.

./bmd5 -f file -b file -c docs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL