mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: app sharing (now open source!) (#4378)
This commit is contained in:
@@ -13,6 +13,14 @@ const (
|
||||
WorkspaceAppHealthUnhealthy WorkspaceAppHealth = "unhealthy"
|
||||
)
|
||||
|
||||
type WorkspaceAppSharingLevel string
|
||||
|
||||
const (
|
||||
WorkspaceAppSharingLevelOwner WorkspaceAppSharingLevel = "owner"
|
||||
WorkspaceAppSharingLevelAuthenticated WorkspaceAppSharingLevel = "authenticated"
|
||||
WorkspaceAppSharingLevelPublic WorkspaceAppSharingLevel = "public"
|
||||
)
|
||||
|
||||
type WorkspaceApp struct {
|
||||
ID uuid.UUID `json:"id"`
|
||||
// Name is a unique identifier attached to an agent.
|
||||
@@ -25,7 +33,8 @@ type WorkspaceApp struct {
|
||||
// `coder server` or via a hostname-based dev URL. If this is set to true
|
||||
// and there is no app wildcard configured on the server, the app will not
|
||||
// be accessible in the UI.
|
||||
Subdomain bool `json:"subdomain"`
|
||||
Subdomain bool `json:"subdomain"`
|
||||
SharingLevel WorkspaceAppSharingLevel `json:"sharing_level"`
|
||||
// Healthcheck specifies the configuration for checking app health.
|
||||
Healthcheck Healthcheck `json:"healthcheck"`
|
||||
Health WorkspaceAppHealth `json:"health"`
|
||||
|
||||
Reference in New Issue
Block a user