Documentation
¶
Overview ¶
Package memory provides a FileSystem implementation backed by a in-memory storage mechanism that does not require any access to the underlying OS. All File IO operations happen in memory making this FileSystem ideal for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() fsx.FileSystem
New creates and returns a new fsx.FileSystem backed by an in-memory storage system so that file io operations can be performed as normal but without touching the real OS filesystem.
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
InMemory is an implementation of an fsx.FileSystem backed by an in-memory storage backend.
Click to show internal directories.
Click to hide internal directories.