
Last chance! 50% off unlimited learning
Sale ends in
etcd(host = "127.0.0.1", port = 2379, api_version = "v2", allow_redirect = TRUE, scheme = "http")
TRUE
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.
## 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