memoryfs

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 22

Documentation

Overview

Package memoryfs provides a memory based virtual filesystem implementation. The complete filesystem structure is kept in memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() vfs.FileSystem

Types

type DirectoryEntries

type DirectoryEntries map[string]*fileData

func (DirectoryEntries) Add

func (m DirectoryEntries) Add(name string, f *fileData)

func (DirectoryEntries) Files

func (m DirectoryEntries) Files() (files []os.FileInfo)

func (DirectoryEntries) Len

func (m DirectoryEntries) Len() int

func (DirectoryEntries) Names

func (m DirectoryEntries) Names() (names []string)

func (DirectoryEntries) Remove

func (m DirectoryEntries) Remove(name string)

Jump to

Keyboard shortcuts

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