MCPcopy Index your code
hub / github.com/coder/coder / workspaceProxy

Method workspaceProxy

enterprise/cli/workspaceproxy.go:17–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15)
16
17func (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
42func (r *RootCmd) regenerateProxyToken() *serpent.Command {
43 formatter := newUpdateProxyResponseFormatter()

Callers 1

enterpriseOnlyMethod · 0.95

Calls 6

proxyServerMethod · 0.95
createProxyMethod · 0.95
deleteProxyMethod · 0.95
listProxiesMethod · 0.95
patchProxyMethod · 0.95
regenerateProxyTokenMethod · 0.95

Tested by

no test coverage detected