Skip to content

Commit a9ad485

Browse files
committed
Take origin file
1 parent 3203ad7 commit a9ad485

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

codersdk/workspaceproxy.go

+5-9
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ import (
1515
type ProxyHealthStatus string
1616

1717
const (
18-
ProxyUnknown ProxyHealthStatus = "unknown"
19-
// ProxyHealthy means the proxy access url is reachable and returns a healthy
18+
// ProxyReachable means the proxy access url is reachable and returns a healthy
2019
// status code.
21-
ProxyHealthy ProxyHealthStatus = "ok"
20+
ProxyReachable ProxyHealthStatus = "reachable"
2221
// ProxyUnreachable means the proxy access url is not responding.
2322
ProxyUnreachable ProxyHealthStatus = "unreachable"
2423
// ProxyUnhealthy means the proxy access url is responding, but there is some
@@ -32,8 +31,6 @@ const (
3231
type WorkspaceProxyStatus struct {
3332
Status ProxyHealthStatus `json:"status" table:"status"`
3433
// Report provides more information about the health of the workspace proxy.
35-
// This is not provided if the user does not have permission to view workspace
36-
// proxy metadata.
3734
Report ProxyHealthReport `json:"report,omitempty" table:"report"`
3835
CheckedAt time.Time `json:"checked_at" table:"checked_at" format:"date-time"`
3936
}
@@ -49,10 +46,9 @@ type ProxyHealthReport struct {
4946
}
5047

5148
type WorkspaceProxy struct {
52-
ID uuid.UUID `json:"id" format:"uuid" table:"id"`
53-
Name string `json:"name" table:"name,default_sort"`
54-
DisplayName string `json:"display_name" table:"display_name"`
55-
Icon string `json:"icon" table:"icon"`
49+
ID uuid.UUID `json:"id" format:"uuid" table:"id"`
50+
Name string `json:"name" table:"name,default_sort"`
51+
Icon string `json:"icon" table:"icon"`
5652
// Full url including scheme of the proxy api url: https://us.example.com
5753
URL string `json:"url" table:"url"`
5854
// WildcardHostname with the wildcard for subdomain based app hosting: *.us.example.com

0 commit comments

Comments
 (0)