blobstorage

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package blobstorage provides a BinaryStore implementation backed by Azure Blob Storage. Each named file maps 1:1 to a block blob inside the configured container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureBlobStorage

func NewAzureBlobStorage(log logger.Logger) binarystore.BinaryStore

NewAzureBlobStorage returns a new AzureBlobStorage binary store.

Types

type AzureBlobStorage

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

AzureBlobStorage implements binarystore.BinaryStore using Azure Blob Storage.

func (*AzureBlobStorage) Close

func (a *AzureBlobStorage) Close() error

Close closes the underlying Azure Blob Storage client.

func (*AzureBlobStorage) Delete

Delete removes a blob from Azure Blob Storage. If the blob does not exist, binarystore.ErrFileNotFound is returned.

func (*AzureBlobStorage) Features

func (a *AzureBlobStorage) Features() []binarystore.Feature

Features returns the optional features supported by this component.

func (*AzureBlobStorage) Get

Get downloads binary data from Azure Blob Storage as a streaming reader.

The Data field of the returned GetResponse wraps the HTTP response body and must be closed by the caller when reading is complete.

func (*AzureBlobStorage) GetComponentMetadata

func (a *AzureBlobStorage) GetComponentMetadata() (metadataInfo contribMetadata.MetadataMap)

GetComponentMetadata returns the metadata schema for this component, used by the Dapr metadata linter.

func (*AzureBlobStorage) Init

Init initialises the Azure Blob Storage client from the component metadata.

func (*AzureBlobStorage) Set

Set uploads binary data to Azure Blob Storage.

When req.Overwrite is false an If-None-Match: * access condition is applied so that the server rejects the upload atomically if the blob already exists, returning binarystore.ErrFileAlreadyExists. When req.Overwrite is true the blob is created or replaced without a condition check.

Jump to

Keyboard shortcuts

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