vfsafero

package
v0.0.0-...-a7c217f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 21 Imported by: 2

Documentation

Overview

Package vfsafero is the implementation of the Virtual File System by using afero. Afero is a library for manipulating files and directory on the local file system.

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 vfs.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