names.go 1.2 KB

123456789101112131415161718192021222324252627282930
  1. package commands
  2. // Name identifies a command. Every command nebula serves is a constant here, so a
  3. // surface, a client and a test spell it the same way and are told at compile time when
  4. // they do not. It is a string rather than an integer so a test can register a throwaway
  5. // command without adding it here, and so the wire carries the name as the string it has
  6. // always been.
  7. type Name string
  8. const (
  9. ChangeRemote Name = "change-remote"
  10. CloseTunnel Name = "close-tunnel"
  11. CreateTunnel Name = "create-tunnel"
  12. DeviceInfo Name = "device-info"
  13. Help Name = "help"
  14. Identity Name = "identity"
  15. ListHostmap Name = "list-hostmap"
  16. ListLighthouseAddrmap Name = "list-lighthouse-addrmap"
  17. ListPendingHostmap Name = "list-pending-hostmap"
  18. LogFormat Name = "log-format"
  19. LogLevel Name = "log-level"
  20. Logout Name = "logout"
  21. PrintCert Name = "print-cert"
  22. PrintRelays Name = "print-relays"
  23. PrintTunnel Name = "print-tunnel"
  24. QueryLighthouse Name = "query-lighthouse"
  25. Reload Name = "reload"
  26. Version Name = "version"
  27. Whoami Name = "whoami"
  28. )