azurestorage

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStorageClient

type BlobStorageClient interface {
	// ListBlobs returns an object that contains list of blobs in the
	// container, pagination token and other information in the response
	// of List Blobs call.
	//
	// See https://godoc.org/github.com/Azure/azure-sdk-for-go/storage#BlobStorageClient.ListBlobs
	ListBlobs(container string, params storage.ListBlobsParameters) (storage.BlobListResponse, error)

	// DeleteBlobIfExists deletes the given blob from the specified
	// container If the blob is deleted with this call, returns true.
	// Otherwise returns false.
	//
	// See https://godoc.org/github.com/Azure/azure-sdk-for-go/storage#BlobStorageClient.DeleteBlobIfExists
	DeleteBlobIfExists(container, name string, extraHeaders map[string]string) (bool, error)
}

BlobStorageClient is an interface providing access to Azure blob storage.

This interface the subet of functionality provided by https://godoc.org/github.com/Azure/azure-sdk-for-go/storage#BlobStorageClient that is required by Juju.

type Client

type Client interface {
	// GetBlobService returns a BlobStorageClient which can operate
	// on the blob service of the storage account.
	GetBlobService() BlobStorageClient
}

Client is an interface providing access to Azure storage services.

func NewClient

func NewClient(accountName, accountKey, blobServiceBaseURL, apiVersion string, useHTTPS bool) (Client, error)

NewClient returns a Client that is backed by a storage.Client created with storage.NewClient

type NewClientFunc

type NewClientFunc func(
	accountName, accountKey, blobServiceBaseURL, apiVersion string,
	useHTTPS bool,
) (Client, error)

NewClientFunc is the type of the NewClient function.

Jump to

Keyboard shortcuts

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