azure

package
v3.0.0-...-893c202 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package azure provides a storagedriver.StorageDriver implementation to store blobs in Microsoft Azure Blob Storage Service.

Index

Constants

View Source
const (
	UDCGracePeriod = 30.0 * time.Minute
	UDCExpiryTime  = 48.0 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Type     string `mapstructure:"type"`
	ClientID string `mapstructure:"clientid"`
	TenantID string `mapstructure:"tenantid"`
	Secret   string `mapstructure:"secret"`
}

type Driver

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

Driver is a storagedriver.StorageDriver implementation backed by Microsoft Azure Blob Storage Service.

func New

func New(params *Parameters) (*Driver, error)

New constructs a new Driver from parameters

type Parameters

type Parameters struct {
	Container              string      `mapstructure:"container"`
	AccountName            string      `mapstructure:"accountname"`
	AccountKey             string      `mapstructure:"accountkey"`
	Credentials            Credentials `mapstructure:"credentials"`
	ConnectionString       string      `mapstructure:"connectionstring"`
	Realm                  string      `mapstructure:"realm"`
	RootDirectory          string      `mapstructure:"rootdirectory"`
	ServiceURL             string      `mapstructure:"serviceurl"`
	CopyStatusPollMaxRetry int         `mapstructure:"copy_status_poll_max_retry"`
	CopyStatusPollDelay    string      `mapstructure:"copy_status_poll_delay"`
}

func NewParameters

func NewParameters(parameters map[string]interface{}) (*Parameters, error)

Jump to

Keyboard shortcuts

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