v.io: v.io/x/ref/examples/rps/rpsbot Files

Command rpsbot

Command rpsbot repeatedly runs automated games, implementing all three roles. It publishes itself as player, judge, and scorekeeper. Then, it initiates games with other players, in a loop. As soon as one game is over, it starts a new one.


rpsbot [flags]

The rpsbot flags are:

  File containing JSON-encoded Permissions.
  The mount prefix to use. The published names will be
  <mount-prefix>/rps/player/<name>, <mount-prefix>/rps/judge/<name>, and
  Identifier to publish as (defaults to principal's blessing names).
  Number of games to play (-1 means unlimited).

The global flags are:

  log to standard error as well as files
  when logging hits line file:N, emit a stack trace
  if non-empty, write log files to this directory
  log to standard error instead of files
  max size in bytes of the buffer to use for logging stack traces
-metadata=<just specify -metadata to activate>
  Displays metadata for the program and exits.
  logs at or above this threshold go to stderr
  Dump timing information to stderr before exiting the program.
  log level for V logs
  directory to use for storing security credentials
  local namespace root; can be repeated to provided multiple roots
  specify a perms file as <name>:<permsfile>
  explicitly specify the runtime perms as a JSON-encoded access.Permissions.
  Overrides all --v23.permissions.file flags
  object name of proxy service to use to export services across network
  max number of proxies to connect to when the policy is to connect to all
  proxies; 0 implies all proxies
  policy for choosing from a set of available proxy instances
  address to listen on
  protocol to listen with
  if set the process will also advertise its private addresses
  if set, a failure to detect the requested virtualization provider will result
  in an error, otherwise, native mode is used
  if set the process will use the supplied dns name (and port) without
  resolution for its entry in the mounttable
  set if the process is running in a docker container and needs to configure
  itself differently therein
  the name of the virtualization/cloud provider hosting this process if the
  process needs to configure itself differently therein
  if set the process will use this address (resolving via dns if appropriate)
  for its entry in the mounttable
  if set the process will use this protocol for its entry in the mounttable
  The number of vtrace traces to store in memory
  Spans and annotations that match this regular expression will trigger trace
  If true, dump all stored traces on runtime shutdown
  Rate (from 0.0 to 1.0) to sample vtrace traces
  The verbosity level of the log messages to be captured in traces
  comma-separated list of globpattern=N settings for filename-filtered logging
  (without the .go suffix).  E.g. foo/bar/baz.go is matched by patterns baz or
  *az or b* but not by bar/baz or baz.go or az or b.*
  comma-separated list of regexppattern=N settings for file pathname-filtered
  logging (without the .go suffix).  E.g. foo/bar/baz.go is matched by patterns
  foo/bar/baz or fo.*az or oo/ba or b.z but not by foo/bar/baz.go or fo*az

Package Files

doc.go impl.go judge.go main.go player.go scorekeeper.go

Package main imports 21 packages (graph). Updated 2021-01-19. Refresh now. Tools for package owners.