persisttest

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeStore

type FakeStore struct {
	Hosts                                           []*host.Host
	ExistsErr, ListErr, LoadErr, RemoveErr, SaveErr error
}

func (*FakeStore) Exists

func (fs *FakeStore) Exists(name string) (bool, error)

func (*FakeStore) List

func (fs *FakeStore) List() ([]string, error)

func (*FakeStore) Load

func (fs *FakeStore) Load(name string) (*host.Host, error)

func (*FakeStore) Remove

func (fs *FakeStore) Remove(name string) error

func (*FakeStore) Save

func (fs *FakeStore) Save(host *host.Host) error

Jump to

Keyboard shortcuts

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