etseed (version 0.1.0)

etcd: etseed client

Description

etseed client

Usage

etcd(host = "127.0.0.1", port = 2379, api_version = "v2", allow_redirect = TRUE, scheme = "http")

Arguments

host
(character) Host url. Deafault: 127.0.0.1
port
(character/numeric) Port. Default: 2379
api_version
(characrter) etcd API version. Default: 'v2'
allow_redirect
(logical) Allow redirects? Default: TRUE
scheme
(character) http scheme, one of http or https. Default: http

Value

Various output, see help files for each grouping of methods.

etcd methods

Methods

Details

etcd creates a R6 class object. The object is not cloneable and is portable, so it can be inherited across packages without complication.

etcd is used to initialize a client that knows about your etcd instance, with options for setting host, port, etcd api version, whether to allow redirects, and the http scheme.

Examples

Run this code
## Not run: 
# # make a client
# cli <- etcd()
# 
# # ping
# ## ping to make sure it's up
# cli$ping()
# 
# # version
# ## get etcd version information
# cli$version()
# 
# # etcd variables
# cli$host
# cli$port
# cli$api_version
# cli$allow_redirect
# cli$scheme
# 
# # set a different host
# etcd(host = 'stuff.com')
# 
# # set a different port
# etcd(host = 3456)
# 
# # set a different etcd API version
# etcd(host = 'v3')
# 
# # set a different http scheme
# etcd(scheme = 'https')
# 
# # don't allow redirects
# etcd(allow_redirect = FALSE)
# ## End(Not run)

Run the code above in your browser using DataLab