blobfs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 25 Imported by: 4

Documentation

Overview

Package blobfs provides an interface to blob stores such as Google Cloud Storage, Azure Blob Storage, or AWS S3, allowing you to interact with the store as a standard filesystem.

This filesystem's behaviour complies with fstest.TestFS.

Usage

To use this filesystem, call New with a base URL. All reads from the filesystem are relative to this base URL. The schemes "s3", "gs", and "azblob" are supported.

Index

Constants

This section is empty.

Variables

View Source
var FS = fsimpl.FSProviderFunc(New, s3blob.Scheme, gcsblob.Scheme, azureblob.Scheme)

FS is used to register this filesystem with an fsimpl.FSMux

Functions

func New

func New(u *url.URL) (fs.FS, error)

New provides a filesystem (an fs.FS) backed by an blob storage bucket, rooted at the given URL.

A context can be given by using WithContextFS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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