names.go 1.1 KB

12345678910111213141516171819202122232425262728
  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. ListHostmap Name = "list-hostmap"
  15. ListLighthouseAddrmap Name = "list-lighthouse-addrmap"
  16. ListPendingHostmap Name = "list-pending-hostmap"
  17. LogFormat Name = "log-format"
  18. LogLevel Name = "log-level"
  19. Logout Name = "logout"
  20. PrintCert Name = "print-cert"
  21. PrintRelays Name = "print-relays"
  22. PrintTunnel Name = "print-tunnel"
  23. QueryLighthouse Name = "query-lighthouse"
  24. Reload Name = "reload"
  25. Version Name = "version"
  26. )