Learn R Programming

etseed (version 0.1.0)

members: Manage etcd members

Description

Manage etcd members

Arguments

id
(character) A member id
newid
(logical) new member id
...
Further args passed on to GET

Value

Logical or a list, see Methods for what each returns

Methods

  • member_list: list all members, a list of members
  • member_add: add a member, a list of info just added
  • member_change: change a member, may not be working quite yet
  • member_delete: delete a member, returns nothing on success

Details

Be careful with these commands

Examples

Run this code
## Not run: 
# Sys.setenv(ETSEED_USER = "root")
# Sys.setenv(ETSEED_PWD = "pickbetterpwd")
# 
# # make a client
# cli <- etcd()
# 
# # list members
# cli$member_list()
# 
# # add a member
# # cli$member_add("http://10.0.0.10:2380")
# 
# # change a member - not sure this is working...
# ## mms <- cli$member_list()
# ## cli$member_change(mms$members[[1]]$id, "http://10.0.0.10:8380", config=verbose())
# 
# # delete a member
# # mms <- cli$member_list()
# # cli$member_delete(mms$members[[1]]$id)
# ## End(Not run)

Run the code above in your browser using DataLab