go>> yoc>> 返回
项目作者: richardprice

项目描述 :
Yo Consul! A Hashicorp Consul Catalog client
高级语言: Go
项目地址: git://github.com/richardprice/yoc.git
创建时间: 2017-06-06T14:09:33Z
项目社区:https://github.com/richardprice/yoc

开源协议:Apache License 2.0

下载


Yo Consul! A Hashicorp Consul Catalog client

This is a command line client which provides basic admin interaction with a local Hashicorp Consul Catalog - I wrote it because I was getting annoyed having to maintain JSON files and uploading them manually to Consul for any services that couldn’t register themselves.

Usage

  • Registering a service:
    yoc register --id service_id --name service_name --address address_of_service --port 8080 --tag "Tags for use by service"

  • Deregistering a service:
    yoc deregister service_id

  • Listing registered services:
    yoc services

Limitations

In this initial release you can only talk to the local (127.0.0.1 or localhost) Consul server on the default port and there is no authentication involved. These things are coming.