filesystemmock

package
v0.0.0-...-746469e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemBackendMock

type FileSystemBackendMock struct {
	mock.Mock
}

func (*FileSystemBackendMock) Chmod

func (fom *FileSystemBackendMock) Chmod(name string, mode os.FileMode) error

func (*FileSystemBackendMock) Chtimes

func (fom *FileSystemBackendMock) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*FileSystemBackendMock) Create

func (fom *FileSystemBackendMock) Create(name string) (afero.File, error)

func (*FileSystemBackendMock) Mkdir

func (fom *FileSystemBackendMock) Mkdir(name string, perm os.FileMode) error

func (*FileSystemBackendMock) MkdirAll

func (fom *FileSystemBackendMock) MkdirAll(path string, perm os.FileMode) error

func (*FileSystemBackendMock) Name

func (fom *FileSystemBackendMock) Name() string

func (*FileSystemBackendMock) Open

func (fom *FileSystemBackendMock) Open(name string) (afero.File, error)

func (*FileSystemBackendMock) OpenFile

func (fom *FileSystemBackendMock) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

func (*FileSystemBackendMock) Remove

func (fom *FileSystemBackendMock) Remove(name string) error

func (*FileSystemBackendMock) RemoveAll

func (fom *FileSystemBackendMock) RemoveAll(path string) error

func (*FileSystemBackendMock) Rename

func (fom *FileSystemBackendMock) Rename(oldname, newname string) error

func (*FileSystemBackendMock) Stat

func (fom *FileSystemBackendMock) Stat(name string) (os.FileInfo, error)

type FileSystemHelperMock

type FileSystemHelperMock struct {
	mock.Mock
}

func (*FileSystemHelperMock) Format

func (fsm *FileSystemHelperMock) Format(targetDevice string, fsType string, formatOptions string) error

func (*FileSystemHelperMock) Mount

func (fsm *FileSystemHelperMock) Mount(targetDevice string, mountPath string, fsType string, mountOptions string) error

func (*FileSystemHelperMock) TempDir

func (fsm *FileSystemHelperMock) TempDir(fsb afero.Fs, prefix string) (string, error)

func (*FileSystemHelperMock) Umount

func (fsm *FileSystemHelperMock) Umount(mountPath string) error

Jump to

Keyboard shortcuts

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