Enterprise returns true if the feature is an enterprise feature.
()
| 284 | |
| 285 | // Enterprise returns true if the feature is an enterprise feature. |
| 286 | func (n FeatureName) Enterprise() bool { |
| 287 | switch n { |
| 288 | // Add all features that should be excluded in the Enterprise feature set. |
| 289 | case FeatureMultipleOrganizations, FeatureCustomRoles, FeatureServiceAccounts: |
| 290 | return false |
| 291 | default: |
| 292 | return true |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | // UsesLimit returns true if the feature uses a limit, and therefore should not |
| 297 | // be included in any feature sets (as they are not boolean features). |