Jiri Simsa | 3f4e92d | 2015-03-24 21:26:37 -0700 | [diff] [blame] | 1 | // 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | |
| 8 | /* |
Todd Wang | 6ed3b6c | 2015-04-08 14:37:04 -0700 | [diff] [blame] | 9 | Command namespace resolves and manages names in the Vanadium namespace. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 10 | |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 11 | The namespace roots are set from the command line via --v23.namespace.root |
| 12 | command line option or from environment variables that have a name starting with |
| 13 | V23_NAMESPACE, e.g. V23_NAMESPACE, V23_NAMESPACE_2, V23_NAMESPACE_GOOGLE, etc. |
Asim Shankar | 59b8b69 | 2015-03-30 01:23:36 -0700 | [diff] [blame] | 14 | The command line options override the environment. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 15 | |
| 16 | Usage: |
| 17 | namespace <command> |
| 18 | |
| 19 | The 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 Shankar | 9411717 | 2015-04-09 00:20:51 -0700 | [diff] [blame] | 25 | permissions Manipulates permissions on an entry in the namespace |
Nicolas Lacasse | 0dc334e | 2015-04-10 10:19:41 -0700 | [diff] [blame] | 26 | delete Deletes a name from the namespace |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 27 | help Display help for commands or topics |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 28 | |
| 29 | The global flags are: |
Todd Wang | 1624bf9 | 2015-04-22 16:53:57 -0700 | [diff] [blame] | 30 | -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 Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 33 | -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 Simsa | 26f1c4d | 2015-08-09 17:49:40 -0700 | [diff] [blame] | 43 | -metadata=<just specify -metadata to activate> |
| 44 | Displays metadata for the program and exits. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 45 | -stderrthreshold=2 |
| 46 | logs at or above this threshold go to stderr |
| 47 | -v=0 |
| 48 | log level for V logs |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 49 | -v23.credentials= |
| 50 | directory to use for storing security credentials |
| 51 | -v23.i18n-catalogue= |
| 52 | 18n catalogue files to load, comma separated |
Asim Shankar | f32d24d | 2015-04-01 16:34:26 -0700 | [diff] [blame] | 53 | -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 Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 69 | -vmodule= |
Cosmos Nicolaou | 6c36388 | 2015-06-02 11:51:27 -0700 | [diff] [blame] | 70 | 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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 73 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 74 | Namespace glob - Returns all matching entries from the namespace |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 75 | |
| 76 | Returns all matching entries from the namespace. |
| 77 | |
| 78 | Usage: |
Robin Thellend | c300a95 | 2015-04-08 15:14:43 -0700 | [diff] [blame] | 79 | namespace glob [flags] <pattern> |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 80 | |
| 81 | <pattern> is a glob pattern that is matched against all the names below the |
| 82 | specified mount name. |
| 83 | |
Robin Thellend | c300a95 | 2015-04-08 15:14:43 -0700 | [diff] [blame] | 84 | The namespace glob flags are: |
| 85 | -l=false |
| 86 | Long listing format. |
| 87 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 88 | Namespace mount - Adds a server to the namespace |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 89 | |
| 90 | Adds server <server> to the namespace with name <name>. |
| 91 | |
| 92 | Usage: |
Asim Shankar | 43d1f93 | 2015-03-24 20:57:56 -0700 | [diff] [blame] | 93 | namespace mount <name> <server> <ttl> |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 94 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 95 | <name> is the name to add to the namespace. <server> is the object address of |
| 96 | the server to add. <ttl> is the TTL of the new entry. It is a decimal number |
| 97 | followed by a unit suffix (s, m, h). A value of 0s represents an infinite |
| 98 | duration. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 99 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 100 | Namespace unmount - Removes a server from the namespace |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 101 | |
| 102 | Removes server <server> with name <name> from the namespace. |
| 103 | |
| 104 | Usage: |
| 105 | namespace unmount <name> <server> |
| 106 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 107 | <name> is the name to remove from the namespace. <server> is the object address |
| 108 | of the server to remove. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 109 | |
Todd Wang | 1624bf9 | 2015-04-22 16:53:57 -0700 | [diff] [blame] | 110 | Namespace resolve |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 111 | |
| 112 | Translates a object name to its object address(es). |
| 113 | |
| 114 | Usage: |
Asim Shankar | b2cc129 | 2015-02-23 15:22:45 -0800 | [diff] [blame] | 115 | namespace resolve [flags] <name> |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 116 | |
| 117 | <name> is the name to resolve. |
| 118 | |
Asim Shankar | b2cc129 | 2015-02-23 15:22:45 -0800 | [diff] [blame] | 119 | The 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 Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 124 | Namespace resolvetomt - Finds the address of the mounttable that holds an object name |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 125 | |
| 126 | Finds the address of the mounttable that holds an object name. |
| 127 | |
| 128 | Usage: |
Asim Shankar | b2cc129 | 2015-02-23 15:22:45 -0800 | [diff] [blame] | 129 | namespace resolvetomt [flags] <name> |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 130 | |
| 131 | <name> is the name to resolve. |
| 132 | |
Asim Shankar | b2cc129 | 2015-02-23 15:22:45 -0800 | [diff] [blame] | 133 | The 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 Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 138 | Namespace permissions - Manipulates permissions on an entry in the namespace |
Asim Shankar | 9411717 | 2015-04-09 00:20:51 -0700 | [diff] [blame] | 139 | |
| 140 | Commands to get and set the permissions on a name - controlling the blessing |
| 141 | names required to resolve the name. |
| 142 | |
| 143 | The permissions are provided as an JSON-encoded version of the Permissions type |
| 144 | defined in v.io/v23/security/access/types.vdl. |
| 145 | |
| 146 | Usage: |
| 147 | namespace permissions <command> |
| 148 | |
| 149 | The namespace permissions commands are: |
| 150 | get Gets permissions on a mount name |
| 151 | set Sets permissions on a mount name |
| 152 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 153 | Namespace permissions get - Gets permissions on a mount name |
Asim Shankar | 9411717 | 2015-04-09 00:20:51 -0700 | [diff] [blame] | 154 | |
| 155 | Get retrieves the permissions on the usage of a name. |
| 156 | |
| 157 | The output is a JSON-encoded Permissions object (defined in |
| 158 | v.io/v23/security/access/types.vdl). |
| 159 | |
| 160 | Usage: |
| 161 | namespace permissions get <name> |
| 162 | |
| 163 | <name> is a name in the namespace. |
| 164 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 165 | Namespace permissions set - Sets permissions on a mount name |
Asim Shankar | 9411717 | 2015-04-09 00:20:51 -0700 | [diff] [blame] | 166 | |
| 167 | Set replaces the permissions controlling usage of a mount name. |
| 168 | |
| 169 | Usage: |
| 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 Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 177 | Namespace delete - Deletes a name from the namespace |
Nicolas Lacasse | 0dc334e | 2015-04-10 10:19:41 -0700 | [diff] [blame] | 178 | |
| 179 | Deletes a name from the namespace. |
| 180 | |
| 181 | Usage: |
| 182 | namespace delete [flags] <name> |
| 183 | |
| 184 | <name> is a name to delete. |
| 185 | |
| 186 | The namespace delete flags are: |
| 187 | -r=false |
| 188 | Delete all children of the name in addition to the name itself. |
| 189 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 190 | Namespace help - Display help for commands or topics |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 191 | |
| 192 | Help with no args displays the usage of the parent command. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 193 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 194 | 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] | 195 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 196 | "help ..." recursively displays help for all commands and topics. |
| 197 | |
| 198 | Usage: |
| 199 | namespace help [flags] [command/topic ...] |
| 200 | |
| 201 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 202 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 203 | The namespace help flags are: |
Todd Wang | 1624bf9 | 2015-04-22 16:53:57 -0700 | [diff] [blame] | 204 | -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 Wang | 338f90c | 2015-05-07 19:42:46 -0700 | [diff] [blame] | 210 | -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 Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 214 | */ |
| 215 | package main |