hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
consulGetUri.consulGetUri.ConsulGetUri Class Reference

Command line utility to retrieve from consul service the URI of a running registered service, in various formats. More...

Public Member Functions

def __init__ (self, log_level=logging.INFO, consul_host='127.0.0.1', consul_port=8500)
 ConsulGetUri constructor.
 
def request (self, request_type, service=None, iface=None)
 

Static Public Member Functions

def parse_args (arguments)
 Static methods.
 
def main (arguments)
 Execute the main using the command line arguments passed as a list.
 

Public Attributes

 arg_log_level
 
 arg_consul_host
 
 arg_consul_port
 
 consul
 

Detailed Description

Command line utility to retrieve from consul service the URI of a running registered service, in various formats.

To be used in shell based applications. It relies on hlcc.utils.ConsulClient()

Constructor & Destructor Documentation

◆ __init__()

def consulGetUri.consulGetUri.ConsulGetUri.__init__ (   self,
  log_level = logging.INFO,
  consul_host = '127.0.0.1',
  consul_port = 8500 
)

ConsulGetUri constructor.

Member Function Documentation

◆ main()

def consulGetUri.consulGetUri.ConsulGetUri.main (   arguments)
static

Execute the main using the command line arguments passed as a list.

If you pass the command line arguments, first remove argv[0] by passing:

sys.argv[1:]

◆ parse_args()

def consulGetUri.consulGetUri.ConsulGetUri.parse_args (   arguments)
static

Static methods.

Parses the command line arguments passed as a list If you pass the command line arguments, first remove argv[0] by passing:

sys.argv[1:]

◆ request()

def consulGetUri.consulGetUri.ConsulGetUri.request (   self,
  request_type,
  service = None,
  iface = None 
)

Member Data Documentation

◆ arg_consul_host

consulGetUri.consulGetUri.ConsulGetUri.arg_consul_host

◆ arg_consul_port

consulGetUri.consulGetUri.ConsulGetUri.arg_consul_port

◆ arg_log_level

consulGetUri.consulGetUri.ConsulGetUri.arg_log_level

◆ consul

consulGetUri.consulGetUri.ConsulGetUri.consul

The documentation for this class was generated from the following file: