Documentation ¶
Index ¶
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) GetOpenStores() []storage.Store
- func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
- func (p *Provider) OpenStore(name string) (storage.Store, error)
- func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a LevelDB implementation of the spi.Provider interface.
func (*Provider) GetOpenStores ¶
GetOpenStores returns all Stores currently open in the Provider.
func (*Provider) GetStoreConfig ¶
func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
GetStoreConfig returns the current store configuration. TODO (#2948) When checking for the store, look for the underlying database instead of the stores open in memory
in order to comply with the interface docs.
func (*Provider) SetStoreConfig ¶
func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
SetStoreConfig isn't needed for LevelDB. For consistency with other store implementations, it saves the store config for later retrieval.
Click to show internal directories.
Click to hide internal directories.