memmapfs

package
v0.0.0-...-6a41818 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

README

Taken from https://github.com/spf13/afero/tree/master/ on 2021-10-22, adapted to support custom time sources.

Commit SHA: cb1d580bf497eb65dcfcbf4d9d7d9596f340eac0

Documentation

Index

Constants

View Source
const FilePathSeparator = "/"

Variables

View Source
var ErrFileExists = afero.ErrFileExists
View Source
var ErrFileNotFound = afero.ErrFileNotFound

Functions

This section is empty.

Types

type File

type File = afero.File

type Fs

type Fs = afero.Fs

func NewMemMapFs

func NewMemMapFs(timeSource func() time.Time) Fs

type MemMapFs

type MemMapFs struct {
	// contains filtered or unexported fields
}

func (*MemMapFs) Chmod

func (m *MemMapFs) Chmod(name string, mode os.FileMode) error

func (*MemMapFs) Chown

func (m *MemMapFs) Chown(name string, uid, gid int) error

func (*MemMapFs) Chtimes

func (m *MemMapFs) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*MemMapFs) Create

func (m *MemMapFs) Create(name string) (File, error)

func (*MemMapFs) List

func (m *MemMapFs) List()

func (*MemMapFs) LstatIfPossible

func (m *MemMapFs) LstatIfPossible(name string) (os.FileInfo, bool, error)

func (*MemMapFs) Mkdir

func (m *MemMapFs) Mkdir(name string, perm os.FileMode) error

func (*MemMapFs) MkdirAll

func (m *MemMapFs) MkdirAll(name string, perm os.FileMode) error

func (*MemMapFs) Name

func (*MemMapFs) Name() string

func (*MemMapFs) Open

func (m *MemMapFs) Open(name string) (File, error)

func (*MemMapFs) OpenFile

func (m *MemMapFs) OpenFile(name string, flag int, perm os.FileMode) (File, error)

func (*MemMapFs) Remove

func (m *MemMapFs) Remove(name string) error

func (*MemMapFs) RemoveAll

func (m *MemMapFs) RemoveAll(path string) error

func (*MemMapFs) Rename

func (m *MemMapFs) Rename(oldname, newname string) error

func (*MemMapFs) Stat

func (m *MemMapFs) Stat(name string) (os.FileInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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