mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: add organization scope for shared ports (#18314)
This commit is contained in:
@ -35,12 +35,14 @@ type WorkspaceAppSharingLevel string
|
||||
const (
|
||||
WorkspaceAppSharingLevelOwner WorkspaceAppSharingLevel = "owner"
|
||||
WorkspaceAppSharingLevelAuthenticated WorkspaceAppSharingLevel = "authenticated"
|
||||
WorkspaceAppSharingLevelOrganization WorkspaceAppSharingLevel = "organization"
|
||||
WorkspaceAppSharingLevelPublic WorkspaceAppSharingLevel = "public"
|
||||
)
|
||||
|
||||
var MapWorkspaceAppSharingLevels = map[WorkspaceAppSharingLevel]struct{}{
|
||||
WorkspaceAppSharingLevelOwner: {},
|
||||
WorkspaceAppSharingLevelAuthenticated: {},
|
||||
WorkspaceAppSharingLevelOrganization: {},
|
||||
WorkspaceAppSharingLevelPublic: {},
|
||||
}
|
||||
|
||||
@ -79,7 +81,7 @@ type WorkspaceApp struct {
|
||||
Subdomain bool `json:"subdomain"`
|
||||
// SubdomainName is the application domain exposed on the `coder server`.
|
||||
SubdomainName string `json:"subdomain_name,omitempty"`
|
||||
SharingLevel WorkspaceAppSharingLevel `json:"sharing_level" enums:"owner,authenticated,public"`
|
||||
SharingLevel WorkspaceAppSharingLevel `json:"sharing_level" enums:"owner,authenticated,organization,public"`
|
||||
// Healthcheck specifies the configuration for checking app health.
|
||||
Healthcheck Healthcheck `json:"healthcheck,omitempty"`
|
||||
Health WorkspaceAppHealth `json:"health"`
|
||||
|
Reference in New Issue
Block a user