vfsafero

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemFS

func GetMemFS(key string) afero.Fs

GetMemFS returns a file system in memory for the given key

func New

func New(db prefixer.Prefixer, index vfs.Indexer, disk vfs.DiskThresholder, mu lock.ErrorRWLocker, fsURL *url.URL, pathSegment string) (vfs.VFS, error)

New returns a vfs.VFS instance associated with the specified indexer and storage url.

The supported scheme of the storage url are file://, for an OS-FS store, and mem:// for an in-memory store. The backend used is the afero package.

func NewThumbsFs

func NewThumbsFs(fs afero.Fs) vfs.Thumbser

NewThumbsFs creates a new thumb filesystem base on a afero.Fs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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