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 ¶
Package store implements the go-micro store interface
Index ¶
- Variables
- func New(cfg *config.Config) settings.Manager
- type Store
- func (s Store) AddSettingToBundle(bundleID string, setting *proto.Setting) (*proto.Setting, error)
- func (s Store) ListBundles(bundleType proto.Bundle_Type) ([]*proto.Bundle, error)
- func (s Store) ListRoleAssignments(accountUUID string) ([]*proto.UserRoleAssignment, error)
- func (s Store) ListValues(bundleID, accountUUID string) ([]*proto.Value, error)
- func (s Store) ReadBundle(bundleID string) (*proto.Bundle, error)
- func (s Store) ReadSetting(settingID string) (*proto.Setting, error)
- func (s Store) ReadValue(valueID string) (*proto.Value, error)
- func (s Store) ReadValueByUniqueIdentifiers(accountUUID, settingID string) (*proto.Value, error)
- func (s Store) RemoveRoleAssignment(assignmentID string) error
- func (s Store) RemoveSettingFromBundle(bundleID string, settingID string) error
- func (s Store) WriteBundle(record *proto.Bundle) (*proto.Bundle, error)
- func (s Store) WriteRoleAssignment(accountUUID, roleID string) (*proto.UserRoleAssignment, error)
- func (s Store) WriteValue(value *proto.Value) (*proto.Value, error)
Constants ¶
This section is empty.
Variables ¶
var (
// Name is the default name for the settings store
Name = "ocis-settings"
)
Functions ¶
Types ¶
type Store ¶
Store interacts with the filesystem to manage settings information
func (Store) AddSettingToBundle ¶ added in v0.2.0
AddSettingToBundle adds the given setting to the bundle with the given bundleID.
func (Store) ListBundles ¶
ListBundles returns all bundles in the dataPath folder that match the given type.
func (Store) ListRoleAssignments ¶ added in v0.2.0
ListRoleAssignments loads and returns all role assignments matching the given assignment identifier.
func (Store) ListValues ¶
ListValues reads all values that match the given bundleId and accountUUID. If the bundleId is empty, it's ignored for filtering. If the accountUUID is empty, only values with empty accountUUID are returned. If the accountUUID is not empty, values with an empty or with a matching accountUUID are returned.
func (Store) ReadBundle ¶
ReadBundle tries to find a bundle by the given id within the dataPath.
func (Store) ReadSetting ¶ added in v0.2.0
ReadSetting tries to find a setting by the given id within the dataPath.
func (Store) ReadValueByUniqueIdentifiers ¶ added in v0.2.0
ReadValueByUniqueIdentifiers tries to find a value given a set of unique identifiers
func (Store) RemoveRoleAssignment ¶ added in v0.2.0
RemoveRoleAssignment deletes the given role assignment from the existing assignments of the respective account.
func (Store) RemoveSettingFromBundle ¶ added in v0.2.0
RemoveSettingFromBundle removes the setting from the bundle with the given ids.
func (Store) WriteBundle ¶
WriteBundle writes the given record into a file within the dataPath.
func (Store) WriteRoleAssignment ¶ added in v0.2.0
WriteRoleAssignment appends the given role assignment to the existing assignments of the respective account.
func (Store) WriteValue ¶
WriteValue writes the given value into a file within the dataPath