Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureDownloader ¶
type AzureDownloader struct { Credential *azblob.SharedKeyCredential StorageAccountURL *url.URL ContainerURL azblob.ContainerURL }
AzureDownloader contains data needed to list or dowload blobs from azure.
func NewAzureDownloader ¶
func NewAzureDownloader(accountName string, accountKey string, containerName string) *AzureDownloader
NewAzureDownloader creates and returns data a DownloaderData.
func (*AzureDownloader) DownloadFile ¶
func (downloader *AzureDownloader) DownloadFile(fileName string) io.ReadCloser
DownloadFile downloads the blob with the given name from azure.
func (*AzureDownloader) ListFileNames ¶
func (downloader *AzureDownloader) ListFileNames() []string
ListFileNames lists the blobs in the azure container.
type FileDownloader ¶
type FileDownloader interface { ListFileNames() []string DownloadFile(fileName string) io.ReadCloser }
FileDownloader interface describes the methods needed to list and download files to process.
Click to show internal directories.
Click to hide internal directories.