roles: etcd authentication - roles

Description Arguments Value Methods Examples

Description

etcd authentication - roles

Arguments

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 GET, PUT, or DELETE

Value

see return for each method

Methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## 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)

etseed documentation built on May 2, 2019, 10:20 a.m.