register

command module
v0.0.0-...-7cd9e6c Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: MIT Imports: 8 Imported by: 0

README

register

Build Status GoDoc

This tools use Golang template

Usage

export <docker_event_uppercase>_TMPL_<tempalte_name>=<HTTP_CMD>:/my-query data
export DOCKER_HOST=tcp://<ip:port>

# Run listener
register http://<ip:port>

Docker usage

docker run -it --rm -e HOST_IP="<public_ip>"" -e REGISTER_URL="http://xx.xx.xx.xx:xxxx" -e DOCKER_URL="" dockingtools/register:latest 

or use config file on folder $DOCKING_TOOLS/config.json

For consul, use http://:8500/v1/kv/

Templating

env

Reads the given environment variable accessible to the current process.

{{env "CLUSTER_ID"}} This function can be chained to manipulate the output:

{{env "CLUSTER_ID" | toLower}}

convertGraphTopath

Read MetadataGraph and convert them to map key=URL_Path value

{{ range $key, $val := (convertGraphTopath .MetaDataGraph)}}{{$key}} {{$val}}\n{{end}}

Documentation

Overview

Package main is auto-generated at build-time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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