azure

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStorage

type BlobStorage struct {
	// contains filtered or unexported fields
}

BlobStorage is responsible for handling the connections to Azure Blob Storage nolint: golint

func NewBlobStorage

func NewBlobStorage(config *Config, inputBlobPrefix, outputBlobPrefix string) (*BlobStorage, error)

NewBlobStorage creates a new Azure Blob Storage object

func (*BlobStorage) Close

func (a *BlobStorage) Close()

Close cleans up any external resources

func (*BlobStorage) GetBlobs

func (a *BlobStorage) GetBlobs(outputDir string, filePaths []string) error

GetBlobs gets each of the provided blobs from Azure Blob Storage

func (*BlobStorage) PutBlobs

func (a *BlobStorage) PutBlobs(filePaths []string) (map[string]string, error)

PutBlobs puts a file into Azure Blob Storage

type Config

type Config struct {
	Enabled         bool   `description:"Enable Azure Blob storage provider"`
	BlobAccountName string `description:"Azure Blob Storage account name"`
	BlobAccountKey  string `description:"Azure Blob Storage account key"`
	ContainerName   string `description:"Azure Blob Storage container name"`
}

Config to setup a BlobStorage blob provider

Jump to

Keyboard shortcuts

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