nfs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 4 Imported by: 4

Documentation

Overview

Package nfs is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var DefaultFileSystem = OSFileSystem{}

DefaultFileSystem is a file system wrapping os methods

Functions

This section is empty.

Types

type FileSystem

type FileSystem interface {
	// Open opens a file
	Open(string) (io.ReadCloser, error)
}

FileSystem is an interface to wrap a file system

type MockFileSystem

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

MockFileSystem is a mock of FileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

NewMockFileSystem creates a new mock instance

func (*MockFileSystem) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFileSystem) Open

func (m *MockFileSystem) Open(arg0 string) (io.ReadCloser, error)

Open mocks base method

type MockFileSystemMockRecorder

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

MockFileSystemMockRecorder is the mock recorder for MockFileSystem

func (*MockFileSystemMockRecorder) Open

func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

type OSFileSystem

type OSFileSystem struct{}

OSFileSystem is the file system implementation wrapping the `os` package

func (OSFileSystem) Open

func (osfs OSFileSystem) Open(p string) (io.ReadCloser, error)

Open opens a file, it wraps os.Open

Jump to

Keyboard shortcuts

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