vfsafero

package
v0.0.0-...-2a449b3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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

View Source
const AvatarFilename = "avatar"

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 NewAvatarFs

func NewAvatarFs(fs afero.Fs) vfs.Avatarer

NewAvatarFs creates a new avatar filesystem base on a afero.Fs.

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