blob: 69f90d6295fb80bba190fcce99b398d77524c235 [file] [log] [blame]
Todd Wang0d12d712014-10-06 17:25:41 -07001// This file was auto-generated via go generate.
2// DO NOT UPDATE MANUALLY
3
4/*
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -08005The vrpc tool facilitates interaction with Veyron RPC servers. In particular, it
6can be used to 1) find out what API a Veyron RPC server exports and 2) send
7requests to a Veyron RPC server.
Todd Wang0d12d712014-10-06 17:25:41 -07008
9Usage:
10 vrpc <command>
11
12The 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
16Run "vrpc help [command]" for command usage.
17
18The global flags are:
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080019 -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 Wang0d12d712014-10-06 17:25:41 -070062
63Vrpc Describe
64
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080065Describe connects to the Veyron RPC server identified by <server>, finds out
66what its API is, and outputs a succint summary of this API to the standard
67output.
Todd Wang0d12d712014-10-06 17:25:41 -070068
69Usage:
70 vrpc describe <server>
71
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080072<server> identifies the Veyron RPC server. It can either be the object address
73of the server or an Object name in which case the vrpc will use Veyron's name
Todd Wang0d12d712014-10-06 17:25:41 -070074resolution to match this name to an end-point.
75
76Vrpc Invoke
77
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080078Invoke connects to the Veyron RPC server identified by <server>, invokes the
79method identified by <method>, supplying the arguments identified by <args>, and
80outputs the results of the invocation to the standard output.
Todd Wang0d12d712014-10-06 17:25:41 -070081
82Usage:
83 vrpc invoke <server> <method> <args>
84
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080085<server> identifies the Veyron RPC server. It can either be the object address
86of the server or an Object name in which case the vrpc will use Veyron's name
Todd Wang0d12d712014-10-06 17:25:41 -070087resolution 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 Nicolaoud83b90b2014-11-30 15:01:31 -080092of values in a VOM JSON format that can be reflected to the correct type using
93Go's reflection.
Todd Wang0d12d712014-10-06 17:25:41 -070094
95Vrpc Help
96
97Help with no args displays the usage of the parent command.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080098
Todd Wang0d12d712014-10-06 17:25:41 -070099Help with args displays the usage of the specified sub-command or help topic.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800100
Todd Wang0d12d712014-10-06 17:25:41 -0700101"help ..." recursively displays help for all commands and topics.
102
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800103The output is formatted to a target width in runes. The target width is
104determined by checking the environment variable CMDLINE_WIDTH, falling back on
105the terminal width from the OS, falling back on 80 chars. By setting
106CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and
107if x == 0 or is unset one of the fallbacks is used.
108
Todd Wang0d12d712014-10-06 17:25:41 -0700109Usage:
110 vrpc help [flags] [command/topic ...]
111
112[command/topic ...] optionally identifies a specific sub-command or help topic.
113
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800114The vrpc help flags are:
115 -style=text
116 The formatting style for help output, either "text" or "godoc".
Todd Wang0d12d712014-10-06 17:25:41 -0700117*/
118package main