vfs

package
v0.0.0-...-44808bf Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package vfs wraps the mock fs from vfs package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultFilesystem

func SetDefaultFilesystem()

SetDefaultFilesystem sets the current fs manager to vfs.DefaultFilesystem, which should be vfs.NativeFilesystem.

func SetFilesystem

func SetFilesystem(fs vfs.Filesystem)

SetFilesystem sets the current filesystem manager to the provided one.

Types

type MockFilesystem

type MockFilesystem struct {
	*vfs.MockFilesystem
}

MockFilesystem wraps vfs.MockFilesystem.

func NewMockFilesystem

func NewMockFilesystem(files ...string) *MockFilesystem

NewFilesystem returns a new mock filesystem with the supplied filenames created in the root tree, if any...

Jump to

Keyboard shortcuts

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