feat: add organization scope for shared ports (#18314)

This commit is contained in:
ケイラ
2025-06-16 16:15:59 -06:00
committed by GitHub
parent eff2174198
commit 5df70a613d
30 changed files with 1245 additions and 811 deletions

View File

@ -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,
}
}