testfs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestFS

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

func (*TestFS) CreateDir

func (fs *TestFS) CreateDir(name string)

func (*TestFS) CreateFile

func (fs *TestFS) CreateFile(name string, data []byte)

func (*TestFS) Name

func (*TestFS) Name() string

func (*TestFS) Open

func (fs *TestFS) Open(name string) (forensicfs.ForensicItem, error)

type TestFile

type TestFile struct {
	forensicfs.ForensicFileDefaults
	// contains filtered or unexported fields
}

func (*TestFile) Attributes

func (f *TestFile) Attributes() (attrs map[string]interface{})

func (*TestFile) Name

func (f *TestFile) Name() (name string)

func (*TestFile) Read

func (f *TestFile) Read(dst []byte) (int, error)

func (*TestFile) ReadAt

func (f *TestFile) ReadAt(b []byte, off int64) (int, error)

func (*TestFile) Seek

func (f *TestFile) Seek(offset int64, whence int) (pos int64, err error)

func (*TestFile) Size

func (f *TestFile) Size() (n int64)

type TestFolder

type TestFolder struct {
	forensicfs.ForensicFolderDefaults
	// contains filtered or unexported fields
}

func (*TestFolder) Attributes

func (*TestFolder) Attributes() (attrs map[string]interface{})

func (*TestFolder) Name

func (d *TestFolder) Name() (name string)

func (*TestFolder) Readdirnames

func (d *TestFolder) Readdirnames(int) (items []string, err error)

Jump to

Keyboard shortcuts

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