class

Consul::KV

Inherits Consul::Transport / Reference / Object

Instance methods

create_key(path : String, content : String)

create_key creates or updates an key. The return value is either true or false, indicating whether the create/update succeeded

Source
delete_key(path : String)

delete_key deletes a single key or all keys sharing a prefix

Source
get_key(path : String, recurse : Bool, keys : Bool) : Array(String)

overload get key - get all keys without value

Source
get_key(path : String, recurse : Bool) : Array(Consul::Types::KV::KvPair)

overload get_key, recurse option

Source
get_key(path : String) : Consul::Types::KV::KvPair

get_key returns the specified key. If no key exists at the given path, a 404 is returned instead of a 200 response

Source