Command line utility to retrieve from consul service the URI of a running registered service, in various formats.
More...
|
| 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) |
| |
|
| def | parse_args (arguments) |
| | Static methods.
|
| |
| def | main (arguments) |
| | Execute the main using the command line arguments passed as a list.
|
| |
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()
◆ __init__()
| def consulGetUri.consulGetUri.ConsulGetUri.__init__ |
( |
|
self, |
|
|
|
log_level = logging.INFO, |
|
|
|
consul_host = '127.0.0.1', |
|
|
|
consul_port = 8500 |
|
) |
| |
ConsulGetUri constructor.
◆ 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:
◆ 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:
◆ request()
| def consulGetUri.consulGetUri.ConsulGetUri.request |
( |
|
self, |
|
|
|
request_type, |
|
|
|
service = None, |
|
|
|
iface = None |
|
) |
| |
◆ 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: