Delete and Move APIs #12
Labels
breaking change
This issue or pull request introduces a breaking change
enhancement
New feature or request
good first issue
Good for newcomers
The purpose of this issue is to expand upon the existing
ConfigStore
API to add methods for removing and renaming keys in theConfigStore
.API
Currently there is no mechanism for performing these operations within venom, however, the logic to implement them should be fairly simple. Two new methods should be added to the
ConfigStore
interface:Both of these methods must be implemented by the
Venom
type, which is itself aConfigStore
, along with one additional method:This
MoveAndAlias
method will, just like it sounds, perform aMove
and anAlias
to ensure that the configuration data is available under the new keyspace, but that any applications using the old name will still be supported.Additional Considerations
Delete
operations should be considered successful even if the specified key does not existMove
should return an error if either thefrom
key does not exist or if data is already stored under theto
keyspace.Note: The addition of the
Move
andDelete
methods to theConfigStore
API is a breaking change and will require a major version bump once merged.The text was updated successfully, but these errors were encountered: