Description
There are multiple type of keys stored in KSM database
- Volume Key
- Bucket Key
- Object Key
- User Key
Currently they are represented as plain string with some conventions, such as
- /volume
- /volume/bucket
- /volume/bucket/key
- $user
this approach makes it so difficult to parse volume/bucket/keys from KSM database. Propose to encapsulate these types of keys into protobuf messages, and take advantage of protobuf to serialize(deserialize) classes to byte arrays (and vice versa).