Help us shape the future of Go! Take the 2026 Go Developer Survey

datalake

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package datalake provides a BinaryStore implementation backed by Azure Data Lake Storage Gen2. Each named file maps 1:1 to a path inside the configured filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureDataLakeStorage

func NewAzureDataLakeStorage(log logger.Logger) binarystore.BinaryStore

NewAzureDataLakeStorage returns a new AzureDataLakeStorage binary store.

Types

type AzureDataLakeStorage

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

AzureDataLakeStorage implements binarystore.BinaryStore using Azure Data Lake Storage Gen2.

func (*AzureDataLakeStorage) Close

func (a *AzureDataLakeStorage) Close() error

Close closes the underlying Azure Data Lake Storage client.

func (*AzureDataLakeStorage) Delete

Delete removes a path from Azure Data Lake Storage. If the path does not exist, binarystore.ErrFileNotFound is returned.

func (*AzureDataLakeStorage) Features

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

Features returns the optional features supported by this component.

func (*AzureDataLakeStorage) Get

Get downloads binary data from Azure Data Lake 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 (*AzureDataLakeStorage) GetComponentMetadata

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

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

func (*AzureDataLakeStorage) Init

Init initialises the Azure Data Lake Storage client from the component metadata.

func (*AzureDataLakeStorage) Set

Set uploads binary data to Azure Data Lake Storage.

When req.Overwrite is false, the file is created with an If-None-Match: * access condition so that the server rejects the operation atomically if the path already exists, returning binarystore.ErrFileAlreadyExists. When req.Overwrite is true, the file 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