azure

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Package azure implements Azure Blob Storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opt *Options) (blob.Storage, error)

New creates new Azure Blob Storage-backed storage with specified options:

- the 'Container', 'StorageAccount' and 'StorageKey' fields are required and all other parameters are optional.

Types

type Options

type Options struct {
	// Container is the name of the azure storage container where data is stored.
	Container string `json:"container"`

	// Prefix specifies additional string to prepend to all objects.
	Prefix string `json:"prefix,omitempty"`

	// Azure Storage account name and key
	StorageAccount string `json:"storageAccount"`
	StorageKey     string `json:"storageKey" kopia:"sensitive"`

	// Alternatively provide SAS Token
	SASToken string `json:"sasToken" kopia:"sensitive"`

	StorageDomain string `json:"storageDomain,omitempty"`

	throttling.Limits
}

Options defines options for Azure blob storage storage.

Jump to

Keyboard shortcuts

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