azure

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 23 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, isCreate bool) (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"`

	// Storage account name
	StorageAccount string `json:"storageAccount"`

	// Storage account access key
	StorageKey string `json:"storageKey"     kopia:"sensitive"`

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

	// the tenant-ID/client-ID/client-Secret of the service principal
	TenantID     string
	ClientID     string
	ClientSecret string

	StorageDomain string `json:"storageDomain,omitempty"`

	throttling.Limits

	// PointInTime specifies a view of the (versioned) store at that time
	PointInTime *time.Time `json:"pointInTime,omitempty"`
}

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