Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2020 Changes in this version + var ErrApiNotRunning = errors.New("api not running") + type Datastore interface + type Mock struct + C config.Config + D Datastore + F *filestore.FileManager + K keystore.Keystore + func (m *Mock) BackupConfig(prefix string) (string, error) + func (m *Mock) Close() error + func (m *Mock) Config() (*config.Config, error) + func (m *Mock) Datastore() Datastore + func (m *Mock) FileManager() *filestore.FileManager + func (m *Mock) GetConfigKey(key string) (interface{}, error) + func (m *Mock) GetStorageUsage() (uint64, error) + func (m *Mock) Keystore() keystore.Keystore + func (m *Mock) SetAPIAddr(addr ma.Multiaddr) error + func (m *Mock) SetConfig(updated *config.Config) error + func (m *Mock) SetConfigKey(key string, value interface{}) error + func (m *Mock) SwarmKey() ([]byte, error) + type OnlyOne struct + func (o *OnlyOne) Open(key interface{}, open func() (Repo, error)) (Repo, error) + type Repo interface + BackupConfig func(prefix string) (string, error) + Config func() (*config.Config, error) + Datastore func() Datastore + FileManager func() *filestore.FileManager + GetConfigKey func(key string) (interface{}, error) + GetStorageUsage func() (uint64, error) + Keystore func() keystore.Keystore + SetAPIAddr func(addr ma.Multiaddr) error + SetConfig func(*config.Config) error + SetConfigKey func(key string, value interface{}) error + SwarmKey func() ([]byte, error)