Documentation ¶
Overview ¶
stor-client is command line utility for downloading from stor
what is stor?
Stor (https://github.com/avast/stor) is storage HTTP interface for sha256 files (objects). Stor can help with step by step migration from posix storage to object storage (aka S3).
features
* download retry * concurent download (default `4`) * S3 download as primary place, stor as fallback
cli
read (parse) SHA256 from STDIN and download it to `destinationDir`
echo EE2BF0BFD365EBF829F8D07B197B7A15F39760CD14C6D3BFDFBAD2B145CB72B8 | stor-client --storage http://stor.domain.tld .
golang client
look to github.com/avast/stor-client/client
Directories ¶
Path | Synopsis |
---|---|
Package storclient to download samples from stor service SYNOPSIS client := storclient.New(storageUrl, storclient.StorClientOpts{}) client.Start() for _, sha := range shaList { client.Download(sha) } downloadStatus := client.Wait()
|
Package storclient to download samples from stor service SYNOPSIS client := storclient.New(storageUrl, storclient.StorClientOpts{}) client.Start() for _, sha := range shaList { client.Download(sha) } downloadStatus := client.Wait() |
Click to show internal directories.
Click to hide internal directories.