azurehandler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAzureURL

func IsAzureURL(path string) bool

IsAzureURL checks if a string is an Azure Blob URL

Types

type AzureHandler

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

AzureHandler handles downloading files from Azure Blob Storage

func NewAzureHandler

func NewAzureHandler() *AzureHandler

NewAzureHandler creates a new Azure handler

func (*AzureHandler) Cleanup

func (h *AzureHandler) Cleanup() error

Cleanup removes all downloaded temp files

func (*AzureHandler) ResolveFiles

func (h *AzureHandler) ResolveFiles(filePaths []string) ([]string, error)

ResolveFiles resolves Azure Blob URLs to local temp files Returns the modified file paths with Azure URLs replaced by local paths

type AzureLocation

type AzureLocation struct {
	AccountName   string
	ContainerName string
	BlobName      string
}

AzureLocation represents a parsed Azure Blob URL

func ParseAzureURL

func ParseAzureURL(azureURL string) (*AzureLocation, error)

ParseAzureURL parses an Azure Blob URL into account, container and blob

Jump to

Keyboard shortcuts

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