storage

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountIDSchema added in v1.35.0

func AccountIDSchema() *schema.Schema

func ExpandMetaData

func ExpandMetaData(input map[string]interface{}) map[string]string

func FlattenMetaData

func FlattenMetaData(input map[string]string) map[string]interface{}

func MetaDataComputedSchema

func MetaDataComputedSchema() *schema.Schema

func MetaDataSchema

func MetaDataSchema() *schema.Schema

func ValidateAccountID added in v1.35.0

func ValidateAccountID(i interface{}, k string) (warnings []string, errors []error)

Types

type AccountID added in v1.35.0

type AccountID struct {
	Name          string
	ResourceGroup string

	ID azure.ResourceID
}

func ParseAccountID added in v1.35.0

func ParseAccountID(id string) (*AccountID, error)

type BlobUpload added in v1.34.0

type BlobUpload struct {
	Client *blobs.Client

	AccountName   string
	BlobName      string
	ContainerName string

	BlobType      string
	ContentType   string
	MetaData      map[string]string
	Parallelism   int
	Size          int
	Source        string
	SourceContent string
	SourceUri     string
}

func (BlobUpload) Create added in v1.34.0

func (sbu BlobUpload) Create(ctx context.Context) error

type Client

type Client struct {
	AccountsClient           *storage.AccountsClient
	FileSystemsClient        *filesystems.Client
	ManagementPoliciesClient storage.ManagementPoliciesClient
	// contains filtered or unexported fields
}

func BuildClient

func BuildClient(options *common.ClientOptions) *Client

func (Client) AddToCache added in v1.36.0

func (client Client) AddToCache(accountName string, props storage.Account) error

func (Client) BlobsClient

func (client Client) BlobsClient(ctx context.Context, account accountDetails) (*blobs.Client, error)

func (Client) ContainersClient

func (client Client) ContainersClient(ctx context.Context, account accountDetails) (*containers.Client, error)

func (Client) FileShareDirectoriesClient

func (client Client) FileShareDirectoriesClient(ctx context.Context, account accountDetails) (*directories.Client, error)

func (Client) FileSharesClient

func (client Client) FileSharesClient(ctx context.Context, account accountDetails) (*shares.Client, error)

func (Client) FindAccount added in v1.36.0

func (client Client) FindAccount(ctx context.Context, accountName string) (*accountDetails, error)

func (Client) QueuesClient

func (client Client) QueuesClient(ctx context.Context, account accountDetails) (*queues.Client, error)

func (Client) RemoveAccountFromCache added in v1.36.0

func (client Client) RemoveAccountFromCache(accountName string)

func (Client) TableEntityClient

func (client Client) TableEntityClient(ctx context.Context, account accountDetails) (*entities.Client, error)

func (Client) TablesClient

func (client Client) TablesClient(ctx context.Context, account accountDetails) (*tables.Client, error)

Jump to

Keyboard shortcuts

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