Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAzureBlobPath ¶
IsAzureBlobPath reports if the location is an Azure Blob Storage path.
Types ¶
type AzureBlobDownloader ¶
type AzureBlobDownloader struct {
// contains filtered or unexported fields
}
AzureBlobDownloader downloads files from Azure Blob storage.
func NewAzureBlobDownloader ¶
func NewAzureBlobDownloader(l logger.Logger, c AzureBlobDownloaderConfig) *AzureBlobDownloader
NewAzureBlobDownloader creates a new AzureBlobDownloader.
type AzureBlobDownloaderConfig ¶
type AzureBlobDownloaderConfig struct { Path string Repository string Destination string Retries int DebugHTTP bool }
AzureBlobUploaderConfig configures AzureBlobDownloader.
type AzureBlobLocation ¶
AzureBlobLocation specifies the location of a blob in Azure Blob Storage.
func ParseAzureBlobLocation ¶
func ParseAzureBlobLocation(loc string) (*AzureBlobLocation, error)
ParseAzureBlobLocation parses a URL into an Azure Blob Storage location.
func (*AzureBlobLocation) String ¶
func (l *AzureBlobLocation) String() string
String returns the location as a URL string.
func (*AzureBlobLocation) URL ¶
func (l *AzureBlobLocation) URL(blob string) string
URL returns an Azure Blob Storage URL for the blob.
type AzureBlobUploader ¶
type AzureBlobUploader struct {
// contains filtered or unexported fields
}
AzureBlobUploader uploads artifacts to Azure Blob Storage.
func NewAzureBlobUploader ¶
func NewAzureBlobUploader(l logger.Logger, c AzureBlobUploaderConfig) (*AzureBlobUploader, error)
NewAzureBlobUploader creates a new AzureBlobUploader.
type AzureBlobUploaderConfig ¶
type AzureBlobUploaderConfig struct { // The destination which includes the storage account name and the path. // For example, "https://my-storage-account.blob.core.windows.net/my-container/my-virtual-directory/artifacts-go-here/" Destination string }
AzureBlobUploaderConfig configures AzureBlobUploader.