How to Create a Client Keyring Using Go-Ceph? #949
Replies: 1 comment
-
Generally, Because we support other projects that want convenient APIs to access these ceph commands we have a number of "admin" apis that handle the JSON serialization/de-serialization into Go data structures. Examples: cephfs/admin, common/admin/nfs, common/admin/manager. You could look at the code that implements these packages and see how the JSON objects are created before being passed to the MonCommand or MgrCommand funcs. I would also be open to the idea of adding a See also: https://github.com/ceph/go-ceph/blob/master/docs/hints.md#cant-find-the-api-you-want |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm interested in using Go-Ceph to create a client keyring for Ceph-Fuse. Previously, I used the following command to create a keyring:
ceph auth get-or-create client.abcdef mon 'allow r' mds 'allow rw path=/abcdef' osd 'allow *'
Is it possible to achieve this with Go-Ceph? If not, is there a feature that allows remote creation of keyrings? (I don't want to log in to the server to create a keyring every time.)
thanks.
Beta Was this translation helpful? Give feedback.
All reactions