MCPcopy Index your code
hub / github.com/coder/coder / Enterprise

Method Enterprise

codersdk/deployment.go:286–294  ·  view source on GitHub ↗

Enterprise returns true if the feature is an enterprise feature.

()

Source from the content-addressed store, hash-verified

284
285// Enterprise returns true if the feature is an enterprise feature.
286func (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).

Callers 1

FeaturesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected