Switch to uuids and simplify names

- bundles, settings and values now have uuids as identifier
- removed unnecessary name parts (SettingsBundle -> Bundle,
SettingsValue -> Value, ...)
This commit is contained in:
Benedikt Kulmann
2020-08-19 10:20:51 +02:00
parent 33720f2b5a
commit 3cb272e76e
17 changed files with 2631 additions and 1941 deletions
+8 -6
View File
@@ -21,14 +21,16 @@ type Manager interface {
// BundleManager is a bundle service interface for abstraction of storage implementations
type BundleManager interface {
ReadBundle(identifier *proto.Identifier) (*proto.SettingsBundle, error)
WriteBundle(bundle *proto.SettingsBundle) (*proto.SettingsBundle, error)
ListBundles(identifier *proto.Identifier) ([]*proto.SettingsBundle, error)
ListBundles(bundleType proto.Bundle_Type) ([]*proto.Bundle, error)
ReadBundle(bundleID string) (*proto.Bundle, error)
WriteBundle(bundle *proto.Bundle) (*proto.Bundle, error)
ReadSetting(settingID string) (*proto.Setting, error)
}
// ValueManager is a value service interface for abstraction of storage implementations
type ValueManager interface {
ReadValue(identifier *proto.Identifier) (*proto.SettingsValue, error)
WriteValue(value *proto.SettingsValue) (*proto.SettingsValue, error)
ListValues(identifier *proto.Identifier) ([]*proto.SettingsValue, error)
ListValues(bundleID, accountUUID string) ([]*proto.Value, error)
ReadValue(valueID string) (*proto.Value, error)
ReadValueByUniqueIdentifiers(accountUUID, settingID string) (*proto.Value, error)
WriteValue(value *proto.Value) (*proto.Value, error)
}