roles | R Documentation |
etcd authentication - roles
role |
(character) Role to act upon |
perm_read |
Read permission to set |
perm_write |
Write permission to set |
grant_read |
Grant read permission to set |
grant_write |
Grant write permission to set |
revoke_read |
Revoke read permission to set |
revoke_write |
Revoke write permission to set |
auth_user, auth_pwd |
(character) Username and password for the authenticated user, the root user |
... |
Further args passed on to |
see return for each method
role_list: list roles, a list of roles
role_add: add a role, returns a list on success
role_get: get a role by name, a list of details for the role
role_delete: delete a role by name, nothing returned on success
## Not run: # make a client cli <- etcd() # Add role #perms <- list(fun = list(kv = list(read = "/message/*"))) #cli$role_add(role = "fun", perm_read = perms, auth_user="root", # auth_pwd="pickbetterpwd") # List roles cli$role_list() # Get a single role cli$role_get("root") cli$role_get("fun") # Delete role cli$role_delete("fun", "root", "pickbetterpwd") # Update a role ### FIXME - still working on this ## First, create # cli$role_add("stuff", perm_read = "/message/*", perm_write = "/message/*", # auth_user = "root", auth_pwd = "pickbetterpwd") ## udpate # "xxx" ## get # cli$role_get("stuff") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.