Documentation
¶
Overview ¶
Package azureblob is the Azure Blob Storage adapter for the Origin interface. Block Blobs only; PageBlob and AppendBlob are rejected at Head() with UnsupportedBlobTypeError.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements origin.Origin against Azure Blob Storage.
func New ¶
New builds an Adapter from config. The log receives debug-level emissions for every Head / GetRange call and the error mapping decision (not-found / auth / precondition / unsupported blob type) on failure paths. Passing nil falls back to slog.Default().
func (*Adapter) GetRange ¶
func (a *Adapter) GetRange(ctx context.Context, bucket, key, etag string, off, n int64) (io.ReadCloser, error)
GetRange fetches [off, off+n) of the blob, sending If-Match: <etag>.
Click to show internal directories.
Click to hide internal directories.