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

Method IsAddonFeature

codersdk/deployment.go:319–325  ·  view source on GitHub ↗

IsAddon returns true if the feature is an addon feature.

()

Source from the content-addressed store, hash-verified

317
318// IsAddon returns true if the feature is an addon feature.
319func (n FeatureName) IsAddonFeature() bool {
320 features := []FeatureName{}
321 for addon := range AddonsMap {
322 features = append(features, addon.Features()...)
323 }
324 return slices.Contains(features, n)
325}
326
327// FeatureSet represents a grouping of features. Rather than manually
328// assigning features al-la-carte when making a license, a set can be specified.

Callers 1

TestEntitlementsFunction · 0.80

Calls 2

FeaturesMethod · 0.45
ContainsMethod · 0.45

Tested by 1

TestEntitlementsFunction · 0.64