rgw: The type of caps can be any value.
When executing the command of [radosgw-admin caps add --uid=wkm --caps="122=write"], the results show we add caps successfully.But I read source files and documents of ceph 0.94.2, and found that the “types” of caps are certain values, which means the number 122 in the above is incorrect. But I am not sure how many,because there are 5 types according to the document, but i found more in the source code.
#4 Updated by Kongming Wu over 8 years ago
Yehuda Sadeh wrote:
The solution would require mapping out the different types of caps that exist, and then to restrict that to those existing types. This is an easy project to work on for anyone who wants to start looking at the code!
About 2 months ago, I added a pull request on github with the No.#6051. Among the modifying I listed All existed types of caps that can be found in the source code.