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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user