class Imperium::Catalog
A client for the Catalog
API.
Public Instance Methods
list_nodes_for_service(service)
click to toggle source
List the known nodes for the given service in the global catalog
Returns a {Response} object that coerces the returned data into {Service} objects
@param [String] :service @return [Array<Service>]
# File lib/imperium/catalog.rb, line 23 def list_nodes_for_service(service) response = @http_client.get(prefix_path("service/#{service}")) Response.new(response, response_object_class: Service) end
list_services()
click to toggle source
List services in the global catalog
@return [Response]
# File lib/imperium/catalog.rb, line 11 def list_services response = @http_client.get(prefix_path('services')) Response.new(response) end