fs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(rootDir string, filesystem afero.Fs) (storage.Backend, error)

NewStorage returns a new ListerSaver implementation that stores everything under rootDir If the root directory does not exist an error is returned

func NewTestSuite

func NewTestSuite(model *suite.Model) (storage.TestSuite, error)

NewTestSuite creates a common test suite

Types

type TestSuite

type TestSuite struct {
	*suite.Model
	// contains filtered or unexported fields
}

TestSuite implements storage.TestSuite interface

func (*TestSuite) Cleanup

func (ts *TestSuite) Cleanup()

Cleanup tears down test

func (*TestSuite) Storage

func (ts *TestSuite) Storage() storage.Backend

Storage retrieves initialized storage backend

func (*TestSuite) StorageHumanReadableName

func (ts *TestSuite) StorageHumanReadableName() string

StorageHumanReadableName retrieves readable identifier of the storage

Jump to

Keyboard shortcuts

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