memory

package
v4.0.0-rc3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory a very convenient filesystem based on memory files

func New

func New() *Memory

New returns a new Memory filesystem

func (*Memory) Base

func (fs *Memory) Base() string

func (*Memory) Create

func (fs *Memory) Create(filename string) (fs.File, error)

func (*Memory) Dir

func (fs *Memory) Dir(path string) fs.Filesystem

func (*Memory) Join

func (fs *Memory) Join(elem ...string) string

func (*Memory) Open

func (fs *Memory) Open(filename string) (fs.File, error)

func (*Memory) OpenFile

func (fs *Memory) OpenFile(filename string, flag int, perm os.FileMode) (fs.File, error)

func (*Memory) ReadDir

func (fs *Memory) ReadDir(base string) (entries []fs.FileInfo, err error)

func (*Memory) Remove

func (fs *Memory) Remove(filename string) error

func (*Memory) Rename

func (fs *Memory) Rename(from, to string) error

func (*Memory) Stat

func (fs *Memory) Stat(filename string) (fs.FileInfo, error)

func (*Memory) TempFile

func (fs *Memory) TempFile(dir, prefix string) (fs.File, error)

Jump to

Keyboard shortcuts

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