coretest

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockObjectStore

type MockObjectStore struct {
	Objects map[string][]byte
}

func NewMockObjectStore

func NewMockObjectStore() *MockObjectStore

func (*MockObjectStore) Get

func (objstore *MockObjectStore) Get(path string, subpath ...string) ([]byte, error)

Get an object

func (*MockObjectStore) Put

func (objstore *MockObjectStore) Put(data []byte, path string, subpath ...string) error

Put a string into the objectStore

func (*MockObjectStore) PutFile added in v0.4.5

func (objstore *MockObjectStore) PutFile(localPath string, path string, subpath ...string) error

PutFile into the objectStore by reading `localPath` from disk

Jump to

Keyboard shortcuts

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