Documentation ¶ Index ¶ type FakeStore func (fs *FakeStore) Exists(name string) (bool, error) func (fs *FakeStore) List() ([]string, error) func (fs *FakeStore) Load(name string) (*host.Host, error) func (fs *FakeStore) Remove(name string) error func (fs *FakeStore) Save(host *host.Host) error 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 Source Files ¶ View all Source files fake_store.go Click to show internal directories. Click to hide internal directories.