blob: fb8f24d76db66cce99bceca56fd66b80cab90893 [file] [log] [blame]
Jiri Simsa3f4e92d2015-03-24 21:26:37 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Todd Wang0d12d712014-10-06 17:25:41 -07005// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7
8/*
Todd Wang6ed3b6c2015-04-08 14:37:04 -07009Command namespace resolves and manages names in the Vanadium namespace.
Todd Wang0d12d712014-10-06 17:25:41 -070010
Asim Shankarf32d24d2015-04-01 16:34:26 -070011The namespace roots are set from the command line via --v23.namespace.root
12command line option or from environment variables that have a name starting with
13V23_NAMESPACE, e.g. V23_NAMESPACE, V23_NAMESPACE_2, V23_NAMESPACE_GOOGLE, etc.
Asim Shankar59b8b692015-03-30 01:23:36 -070014The command line options override the environment.
Todd Wang0d12d712014-10-06 17:25:41 -070015
16Usage:
17 namespace <command>
18
19The namespace commands are:
20 glob Returns all matching entries from the namespace
21 mount Adds a server to the namespace
22 unmount Removes a server from the namespace
23 resolve Translates a object name to its object address(es)
24 resolvetomt Finds the address of the mounttable that holds an object name
Asim Shankar94117172015-04-09 00:20:51 -070025 permissions Manipulates permissions on an entry in the namespace
Nicolas Lacasse0dc334e2015-04-10 10:19:41 -070026 delete Deletes a name from the namespace
Todd Wang0d12d712014-10-06 17:25:41 -070027 help Display help for commands or topics
Todd Wang0d12d712014-10-06 17:25:41 -070028
29The global flags are:
Todd Wang1624bf92015-04-22 16:53:57 -070030 -v23.namespace.root=[/(dev.v.io/role/vprod/service/mounttabled)@ns.dev.v.io:8101]
31 local namespace root; can be repeated to provided multiple roots
32
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080033 -alsologtostderr=true
34 log to standard error as well as files
35 -log_backtrace_at=:0
36 when logging hits line file:N, emit a stack trace
37 -log_dir=
38 if non-empty, write log files to this directory
39 -logtostderr=false
40 log to standard error instead of files
41 -max_stack_buf_size=4292608
42 max size in bytes of the buffer to use for logging stack traces
Jiri Simsa26f1c4d2015-08-09 17:49:40 -070043 -metadata=<just specify -metadata to activate>
44 Displays metadata for the program and exits.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080045 -stderrthreshold=2
46 logs at or above this threshold go to stderr
47 -v=0
48 log level for V logs
Asim Shankarf32d24d2015-04-01 16:34:26 -070049 -v23.credentials=
50 directory to use for storing security credentials
51 -v23.i18n-catalogue=
52 18n catalogue files to load, comma separated
Asim Shankarf32d24d2015-04-01 16:34:26 -070053 -v23.proxy=
54 object name of proxy service to use to export services across network
55 boundaries
56 -v23.tcp.address=
57 address to listen on
58 -v23.tcp.protocol=wsh
59 protocol to listen with
60 -v23.vtrace.cache-size=1024
61 The number of vtrace traces to store in memory.
62 -v23.vtrace.collect-regexp=
63 Spans and annotations that match this regular expression will trigger trace
64 collection.
65 -v23.vtrace.dump-on-shutdown=true
66 If true, dump all stored traces on runtime shutdown.
67 -v23.vtrace.sample-rate=0
68 Rate (from 0.0 to 1.0) to sample vtrace traces.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080069 -vmodule=
Cosmos Nicolaou6c363882015-06-02 11:51:27 -070070 comma-separated list of pattern=N settings for filename-filtered logging
71 -vpath=
72 comma-separated list of pattern=N settings for file pathname-filtered logging
Todd Wang0d12d712014-10-06 17:25:41 -070073
Todd Wang11440452015-05-29 18:05:29 -070074Namespace glob - Returns all matching entries from the namespace
Todd Wang0d12d712014-10-06 17:25:41 -070075
76Returns all matching entries from the namespace.
77
78Usage:
Robin Thellendc300a952015-04-08 15:14:43 -070079 namespace glob [flags] <pattern>
Todd Wang0d12d712014-10-06 17:25:41 -070080
81<pattern> is a glob pattern that is matched against all the names below the
82specified mount name.
83
Robin Thellendc300a952015-04-08 15:14:43 -070084The namespace glob flags are:
85 -l=false
86 Long listing format.
87
Todd Wang11440452015-05-29 18:05:29 -070088Namespace mount - Adds a server to the namespace
Todd Wang0d12d712014-10-06 17:25:41 -070089
90Adds server <server> to the namespace with name <name>.
91
92Usage:
Asim Shankar43d1f932015-03-24 20:57:56 -070093 namespace mount <name> <server> <ttl>
Todd Wang0d12d712014-10-06 17:25:41 -070094
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -080095<name> is the name to add to the namespace. <server> is the object address of
96the server to add. <ttl> is the TTL of the new entry. It is a decimal number
97followed by a unit suffix (s, m, h). A value of 0s represents an infinite
98duration.
Todd Wang0d12d712014-10-06 17:25:41 -070099
Todd Wang11440452015-05-29 18:05:29 -0700100Namespace unmount - Removes a server from the namespace
Todd Wang0d12d712014-10-06 17:25:41 -0700101
102Removes server <server> with name <name> from the namespace.
103
104Usage:
105 namespace unmount <name> <server>
106
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800107<name> is the name to remove from the namespace. <server> is the object address
108of the server to remove.
Todd Wang0d12d712014-10-06 17:25:41 -0700109
Todd Wang1624bf92015-04-22 16:53:57 -0700110Namespace resolve
Todd Wang0d12d712014-10-06 17:25:41 -0700111
112Translates a object name to its object address(es).
113
114Usage:
Asim Shankarb2cc1292015-02-23 15:22:45 -0800115 namespace resolve [flags] <name>
Todd Wang0d12d712014-10-06 17:25:41 -0700116
117<name> is the name to resolve.
118
Asim Shankarb2cc1292015-02-23 15:22:45 -0800119The namespace resolve flags are:
120 -insecure=false
121 Insecure mode: May return results from untrusted servers and invoke Resolve
122 on untrusted mounttables
123
Todd Wang11440452015-05-29 18:05:29 -0700124Namespace resolvetomt - Finds the address of the mounttable that holds an object name
Todd Wang0d12d712014-10-06 17:25:41 -0700125
126Finds the address of the mounttable that holds an object name.
127
128Usage:
Asim Shankarb2cc1292015-02-23 15:22:45 -0800129 namespace resolvetomt [flags] <name>
Todd Wang0d12d712014-10-06 17:25:41 -0700130
131<name> is the name to resolve.
132
Asim Shankarb2cc1292015-02-23 15:22:45 -0800133The namespace resolvetomt flags are:
134 -insecure=false
135 Insecure mode: May return results from untrusted servers and invoke Resolve
136 on untrusted mounttables
137
Todd Wang11440452015-05-29 18:05:29 -0700138Namespace permissions - Manipulates permissions on an entry in the namespace
Asim Shankar94117172015-04-09 00:20:51 -0700139
140Commands to get and set the permissions on a name - controlling the blessing
141names required to resolve the name.
142
143The permissions are provided as an JSON-encoded version of the Permissions type
144defined in v.io/v23/security/access/types.vdl.
145
146Usage:
147 namespace permissions <command>
148
149The namespace permissions commands are:
150 get Gets permissions on a mount name
151 set Sets permissions on a mount name
152
Todd Wang11440452015-05-29 18:05:29 -0700153Namespace permissions get - Gets permissions on a mount name
Asim Shankar94117172015-04-09 00:20:51 -0700154
155Get retrieves the permissions on the usage of a name.
156
157The output is a JSON-encoded Permissions object (defined in
158v.io/v23/security/access/types.vdl).
159
160Usage:
161 namespace permissions get <name>
162
163<name> is a name in the namespace.
164
Todd Wang11440452015-05-29 18:05:29 -0700165Namespace permissions set - Sets permissions on a mount name
Asim Shankar94117172015-04-09 00:20:51 -0700166
167Set replaces the permissions controlling usage of a mount name.
168
169Usage:
170 namespace permissions set <name> <permissions>
171
172<name> is the name on which permissions are to be set.
173
174<permissions> is the path to a file containing a JSON-encoded Permissions object
175(defined in v.io/v23/security/access/types.vdl), or "-" for STDIN.
176
Todd Wang11440452015-05-29 18:05:29 -0700177Namespace delete - Deletes a name from the namespace
Nicolas Lacasse0dc334e2015-04-10 10:19:41 -0700178
179Deletes a name from the namespace.
180
181Usage:
182 namespace delete [flags] <name>
183
184<name> is a name to delete.
185
186The namespace delete flags are:
187 -r=false
188 Delete all children of the name in addition to the name itself.
189
Todd Wang11440452015-05-29 18:05:29 -0700190Namespace help - Display help for commands or topics
Todd Wang0d12d712014-10-06 17:25:41 -0700191
192Help with no args displays the usage of the parent command.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800193
Todd Wang0d12d712014-10-06 17:25:41 -0700194Help with args displays the usage of the specified sub-command or help topic.
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800195
Todd Wang0d12d712014-10-06 17:25:41 -0700196"help ..." recursively displays help for all commands and topics.
197
198Usage:
199 namespace help [flags] [command/topic ...]
200
201[command/topic ...] optionally identifies a specific sub-command or help topic.
202
Cosmos Nicolaoud83b90b2014-11-30 15:01:31 -0800203The namespace help flags are:
Todd Wang1624bf92015-04-22 16:53:57 -0700204 -style=compact
205 The formatting style for help output:
206 compact - Good for compact cmdline output.
207 full - Good for cmdline output, shows all global flags.
208 godoc - Good for godoc processing.
209 Override the default by setting the CMDLINE_STYLE environment variable.
Todd Wang338f90c2015-05-07 19:42:46 -0700210 -width=<terminal width>
211 Format output to this target width in runes, or unlimited if width < 0.
212 Defaults to the terminal width if available. Override the default by setting
213 the CMDLINE_WIDTH environment variable.
Todd Wang0d12d712014-10-06 17:25:41 -0700214*/
215package main