コード例 #1
0
ファイル: main.go プロジェクト: tooooolong/mesos-consul
func Help() string {
	helpText := `
Usage: mesos-consul [options]

Options:

  --version 			Print mesos-consul version
  --log-level=<log_level>	Set the Logging level to one of [ "DEBUG", "INFO", "WARN", "ERROR" ]
				(default "WARN")
  --refresh=<time>		Set the Mesos refresh rate (default 1m)
  --zk=<address>		Zookeeper path to Mesos (default zk://127.0.0.1:2181/mesos)
  --healthcheck 		Enables a http endpoint for health checks. When this
				flag is enabled, serves a service health status on 127.0.0.1:24476 (default not enabled)
  --healthcheck-ip=<ip> 	Health check interface ip (default 127.0.0.1)
  --healthcheck-port=<port>	Health check service port (default 24476)
  --mesos-ip-order		Comma separated list to control the order in
				which github.com/CiscoCloud/mesos-consul searches for the task IP
				address. Valid options are 'netinfo', 'mesos', 'docker' and 'host'
				(default netinfo,mesos,host)
  --heartbeats-before-remove	Number of times that registration needs to fail before removing
				task from Consul. (default: 1)
  --whitelist=<regex>		Only register services matching the provided regex. 
				Can be specified multiple times
  --service-name=<name>		Service name of the Mesos hosts. (default: mesos)
  --service-tags=<tag>,...	Comma delimited list of tags to add to the mesos hosts
				Hosts are registered as
				(leader|master|follower).<tag>.mesos.service.conul
` + consul.Help()

	return strings.TrimSpace(helpText)
}
コード例 #2
0
ファイル: main.go プロジェクト: micahlmartin/mesos-consul
func Help() string {
	helpText := `
Usage: mesos-consul [options]

Options:

  --log-level=<log_level>	Set the Logging level to one of [ "DEBUG", "INFO", "WARN", "ERROR" ]
				(default "WARN")
  --refresh=<time>		Set the Mesos refresh rate
				(default 1m)
  --registry-auth=<user[:pass]>	Set the basic authentication username
				(and password)
  --registry-port=<port>	Port to connect to consul agents
				(default 8500)
  --registry-ssl		Use SSL when connecting to the registry
  --registry-ssl-verify		Verify certificates when connecting via SSL
  --registry-ssl-cert		SSL certificates to send to registry
  --registry-ssl-cacert		Validate server certificate against this CA
				certificate file list
  --registry-token=<token>	Set registry ACL token
  --zk=<address>		Zookeeper path to Mesos
				(default zk://127.0.0.1:2181/mesos)
` + consul.Help()

	return strings.TrimSpace(helpText)
}
コード例 #3
0
ファイル: main.go プロジェクト: jnonon/mesos-consul
func Help() string {
	helpText := `
Usage: mesos-consul [options]

Options:

  --log-level=<log_level>	Set the Logging level to one of [ "DEBUG", "INFO", "WARN", "ERROR" ]
				(default "WARN")
  --refresh=<time>		Set the Mesos refresh rate
				(default 1m)
  --zk=<address>		Zookeeper path to Mesos
				(default zk://127.0.0.1:2181/mesos)
  --mesos-ip-order=		Comma separated list to control the order in
				which mesos-consul searches for the task IP
				address. Valid options are 'netinfo', 'mesos',
				'docker' and 'host'
				(default netinfo,mesos,host)
` + consul.Help()

	return strings.TrimSpace(helpText)
}
コード例 #4
0
ファイル: main.go プロジェクト: TeaBough/mesos-consul
func Help() string {
	helpText := `
Usage: mesos-consul [options]

Options:

  --version 			Print mesos-consul version
  --log-level=<log_level>	Set the Logging level to one of [ "DEBUG", "INFO", "WARN", "ERROR" ]
				(default "WARN")
  --refresh=<time>		Set the Mesos refresh rate (default 1m)
  --zk=<address>		Zookeeper path to Mesos (default zk://127.0.0.1:2181/mesos)
  --healthcheck 		Enables a http endpoint for health checks. When this
				flag is enabled, serves a service health status on 127.0.0.1:24476 (default not enabled)
  --healthcheck-ip=<ip> 	Health check interface ip (default 127.0.0.1)
  --healthcheck-port=<port>	Health check service port (default 24476)
  --mesos-ip-order		Comma separated list to control the order in
				which github.com/CiscoCloud/mesos-consul searches for the task IP
				address. Valid options are 'netinfo', 'mesos', 'docker' and 'host'
				(default netinfo,mesos,host)
` + consul.Help()

	return strings.TrimSpace(helpText)
}