Help us shape the future of Go! Take the 2026 Go Developer Survey

consult

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

Consult

Query Consul from the command line and SSH into a server from Consul catalog.

Building

go get -u github.com/outbrain/consult

Using

consult needs to know where Consul's API is, this can be configured using the CONSUL_URL environment variable or the --server command line flag. Run consult -h for a complete list of flags.

consult ssh --service=my_awesome_service --tag=some_tag --username=joe

--username is optional of course

To list the node for service and tag:

consult query --service=my_awesome_service --tag=some_tag

Multiple tags - you can choose to match any or all tags. By default, all tags must be matched.

consult query -s my_awesome_service -t tag1 -t tag2 -m any

License

Apache V2

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL