mocks

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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, filename string, metadata []byte, leader bool) (config.File, error)

Create ...

func (*FileSystemMock) OpenFile

func (m *FileSystemMock) OpenFile(chainID, filename string, metadata []byte, flag int, perm os.FileMode, leader bool) (config.File, error)

OpenFile ...

func (*FileSystemMock) Stat

func (m *FileSystemMock) Stat(chainID, filename string, metadata []byte, leader bool) (os.FileInfo, error)

Stat ...

Jump to

Keyboard shortcuts

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