()
| 15 | ) |
| 16 | |
| 17 | func (r *RootCmd) workspaceProxy() *serpent.Command { |
| 18 | cmd := &serpent.Command{ |
| 19 | Use: "workspace-proxy", |
| 20 | Short: "Workspace proxies provide low-latency experiences for geo-distributed teams.", |
| 21 | Long: "Workspace proxies provide low-latency experiences for geo-distributed teams. " + |
| 22 | "It will act as a connection gateway to your workspace. " + |
| 23 | "Best used if Coder and your workspace are deployed in different regions.", |
| 24 | Aliases: []string{"wsproxy"}, |
| 25 | Hidden: true, |
| 26 | Handler: func(inv *serpent.Invocation) error { |
| 27 | return inv.Command.HelpHandler(inv) |
| 28 | }, |
| 29 | Children: []*serpent.Command{ |
| 30 | r.proxyServer(), |
| 31 | r.createProxy(), |
| 32 | r.deleteProxy(), |
| 33 | r.listProxies(), |
| 34 | r.patchProxy(), |
| 35 | r.regenerateProxyToken(), |
| 36 | }, |
| 37 | } |
| 38 | |
| 39 | return cmd |
| 40 | } |
| 41 | |
| 42 | func (r *RootCmd) regenerateProxyToken() *serpent.Command { |
| 43 | formatter := newUpdateProxyResponseFormatter() |
no test coverage detected