Documentation
¶
Overview ¶
Package store implements the go-micro store interface
Package store implements the go-micro store interface ¶
Package store implements the go-micro store interface
Index ¶
- Variables
- func New(cfg *config.Config) settings.Manager
- type Store
- func (s Store) ListBundles(identifier *proto.Identifier) ([]*proto.SettingsBundle, error)
- func (s Store) ListValues(identifier *proto.Identifier) ([]*proto.SettingsValue, error)
- func (s Store) ReadBundle(identifier *proto.Identifier) (*proto.SettingsBundle, error)
- func (s Store) ReadValue(identifier *proto.Identifier) (*proto.SettingsValue, error)
- func (s Store) WriteBundle(record *proto.SettingsBundle) (*proto.SettingsBundle, error)
- func (s Store) WriteValue(value *proto.SettingsValue) (*proto.SettingsValue, error)
Constants ¶
This section is empty.
Variables ¶
var (
// Name is the default name for the settings store
Name = "ocis-settings-store"
)
Functions ¶
Types ¶
type Store ¶
Store interacts with the filesystem to manage settings information
func (Store) ListBundles ¶
func (s Store) ListBundles(identifier *proto.Identifier) ([]*proto.SettingsBundle, error)
ListBundles returns all bundles in the mountPath folder belonging to the given extension
func (Store) ListValues ¶
func (s Store) ListValues(identifier *proto.Identifier) ([]*proto.SettingsValue, error)
ListValues reads all values within the scope of the given identifier AccountUuid is required.
func (Store) ReadBundle ¶
func (s Store) ReadBundle(identifier *proto.Identifier) (*proto.SettingsBundle, error)
ReadBundle tries to find a bundle by the given identifier within the mountPath. Extension and BundleKey within the identifier are required.
func (Store) ReadValue ¶
func (s Store) ReadValue(identifier *proto.Identifier) (*proto.SettingsValue, error)
ReadValue tries to find a value by the given identifier attributes within the mountPath All identifier fields are required.
func (Store) WriteBundle ¶
func (s Store) WriteBundle(record *proto.SettingsBundle) (*proto.SettingsBundle, error)
WriteBundle writes the given record into a file within the mountPath Extension and BundleKey within the record identifier are required.
func (Store) WriteValue ¶
func (s Store) WriteValue(value *proto.SettingsValue) (*proto.SettingsValue, error)
WriteValue writes the given SettingsValue into a file within the mountPath All identifier fields within the value are required.