mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add organization scope for shared ports (#18314)
This commit is contained in:
@ -137,6 +137,7 @@ type AppSharingLevel string
|
||||
const (
|
||||
AppSharingLevelOwner AppSharingLevel = "owner"
|
||||
AppSharingLevelAuthenticated AppSharingLevel = "authenticated"
|
||||
AppSharingLevelOrganization AppSharingLevel = "organization"
|
||||
AppSharingLevelPublic AppSharingLevel = "public"
|
||||
)
|
||||
|
||||
@ -179,6 +180,7 @@ func (e AppSharingLevel) Valid() bool {
|
||||
switch e {
|
||||
case AppSharingLevelOwner,
|
||||
AppSharingLevelAuthenticated,
|
||||
AppSharingLevelOrganization,
|
||||
AppSharingLevelPublic:
|
||||
return true
|
||||
}
|
||||
@ -189,6 +191,7 @@ func AllAppSharingLevelValues() []AppSharingLevel {
|
||||
return []AppSharingLevel{
|
||||
AppSharingLevelOwner,
|
||||
AppSharingLevelAuthenticated,
|
||||
AppSharingLevelOrganization,
|
||||
AppSharingLevelPublic,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user