mocks

package
Version: v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemMock

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

FileSystemMock mocks a file system

func NewFSMock

func NewFSMock(basedir string) *FileSystemMock

NewFSMock creates a new FileSystemMock instance

func (*FileSystemMock) Create

func (m *FileSystemMock) Create(chainID string, fmeta config.FileMeta) (config.File, error)

Create ...

func (*FileSystemMock) OpenFile

func (m *FileSystemMock) OpenFile(chainID string, fmeta config.FileMeta, flag int, perm os.FileMode) (config.File, error)

OpenFile ...

func (*FileSystemMock) Stat

func (m *FileSystemMock) Stat(chainID string, fmeta config.FileMeta) (os.FileInfo, error)

Stat ...

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL