mem

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage() (storage.BackendConnector, error)

NewStorage creates new in-memory storage using the afero.NewMemMapFs() in memory file system

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