Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 1 | // This file was auto-generated via go generate. |
| 2 | // DO NOT UPDATE MANUALLY |
| 3 | |
| 4 | /* |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 5 | The vrpc tool facilitates interaction with Veyron RPC servers. In particular, it |
| 6 | can be used to 1) find out what API a Veyron RPC server exports and 2) send |
| 7 | requests to a Veyron RPC server. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 8 | |
| 9 | Usage: |
| 10 | vrpc <command> |
| 11 | |
| 12 | The vrpc commands are: |
| 13 | describe Describe the API of an Veyron RPC server |
| 14 | invoke Invoke a method of an Veyron RPC server |
| 15 | help Display help for commands or topics |
| 16 | Run "vrpc help [command]" for command usage. |
| 17 | |
| 18 | The global flags are: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 19 | -acl= |
| 20 | acl is an optional JSON-encoded security.ACL that is used to construct a |
| 21 | security.Authorizer. Example: {"In":{"veyron/alice/...":"RW"}} is a |
| 22 | JSON-encoded ACL that allows all delegates of "veyron/alice" to access all |
| 23 | methods with ReadLabel or WriteLabel. If this flag is provided then the |
| 24 | \"--acl_file\" must be absent. |
| 25 | -acl_file= |
| 26 | acl_file is an optional path to a file containing a JSON-encoded security.ACL |
| 27 | that is used to construct a security.Authorizer. If this flag is provided |
| 28 | then the "--acl_file" flag must be absent. |
| 29 | -alsologtostderr=true |
| 30 | log to standard error as well as files |
| 31 | -log_backtrace_at=:0 |
| 32 | when logging hits line file:N, emit a stack trace |
| 33 | -log_dir= |
| 34 | if non-empty, write log files to this directory |
| 35 | -logtostderr=false |
| 36 | log to standard error instead of files |
| 37 | -max_stack_buf_size=4292608 |
| 38 | max size in bytes of the buffer to use for logging stack traces |
| 39 | -stderrthreshold=2 |
| 40 | logs at or above this threshold go to stderr |
| 41 | -v=0 |
| 42 | log level for V logs |
| 43 | -veyron.credentials= |
| 44 | directory to use for storing security credentials |
| 45 | -veyron.namespace.root=[/proxy.envyor.com:8101] |
| 46 | local namespace root; can be repeated to provided multiple roots |
| 47 | -veyron.proxy= |
| 48 | object name of proxy service to use to export services across network |
| 49 | boundaries |
| 50 | -veyron.tcp.address=:0 |
| 51 | address to listen on |
| 52 | -veyron.tcp.protocol=tcp |
| 53 | protocol to listen with |
| 54 | -veyron.vtrace.cache_size=1024 |
| 55 | The number of vtrace traces to store in memory. |
| 56 | -veyron.vtrace.dump_on_shutdown=false |
| 57 | If true, dump all stored traces on runtime shutdown. |
| 58 | -veyron.vtrace.sample_rate=0 |
| 59 | Rate (from 0.0 to 1.0) to sample vtrace traces. |
| 60 | -vmodule= |
| 61 | comma-separated list of pattern=N settings for file-filtered logging |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 62 | |
| 63 | Vrpc Describe |
| 64 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 65 | Describe connects to the Veyron RPC server identified by <server>, finds out |
| 66 | what its API is, and outputs a succint summary of this API to the standard |
| 67 | output. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 68 | |
| 69 | Usage: |
| 70 | vrpc describe <server> |
| 71 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 72 | <server> identifies the Veyron RPC server. It can either be the object address |
| 73 | of the server or an Object name in which case the vrpc will use Veyron's name |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 74 | resolution to match this name to an end-point. |
| 75 | |
| 76 | Vrpc Invoke |
| 77 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 78 | Invoke connects to the Veyron RPC server identified by <server>, invokes the |
| 79 | method identified by <method>, supplying the arguments identified by <args>, and |
| 80 | outputs the results of the invocation to the standard output. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 81 | |
| 82 | Usage: |
| 83 | vrpc invoke <server> <method> <args> |
| 84 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 85 | <server> identifies the Veyron RPC server. It can either be the object address |
| 86 | of the server or an Object name in which case the vrpc will use Veyron's name |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 87 | resolution to match this name to an end-point. |
| 88 | |
| 89 | <method> identifies the name of the method to be invoked. |
| 90 | |
| 91 | <args> identifies the arguments of the method to be invoked. It should be a list |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 92 | of values in a VOM JSON format that can be reflected to the correct type using |
| 93 | Go's reflection. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 94 | |
| 95 | Vrpc Help |
| 96 | |
| 97 | Help with no args displays the usage of the parent command. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 98 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 99 | Help with args displays the usage of the specified sub-command or help topic. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 100 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 101 | "help ..." recursively displays help for all commands and topics. |
| 102 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 103 | The output is formatted to a target width in runes. The target width is |
| 104 | determined by checking the environment variable CMDLINE_WIDTH, falling back on |
| 105 | the terminal width from the OS, falling back on 80 chars. By setting |
| 106 | CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and |
| 107 | if x == 0 or is unset one of the fallbacks is used. |
| 108 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 109 | Usage: |
| 110 | vrpc help [flags] [command/topic ...] |
| 111 | |
| 112 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 113 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 114 | The vrpc help flags are: |
| 115 | -style=text |
| 116 | The formatting style for help output, either "text" or "godoc". |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 117 | */ |
| 118 | package main |