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

Method Features

codersdk/deployment.go:89–103  ·  view source on GitHub ↗

Features returns all the features that are part of the addon.

()

Source from the content-addressed store, hash-verified

87
88// Features returns all the features that are part of the addon.
89func (a Addon) Features() []FeatureName {
90 switch a {
91 case AddonAIGovernance:
92 // Return all AI Governance features.
93 var features []FeatureName
94 for _, featureName := range FeatureNames {
95 if featureName.IsAIGovernanceAddon() {
96 features = append(features, featureName)
97 }
98 }
99 return features
100 default:
101 return nil
102 }
103}
104
105// ValidateDependencies validates the dependencies of the addon
106// and returns a list of errors for the missing dependencies.

Callers 5

TestPremiumSuperSetFunction · 0.45
IsAddonFeatureMethod · 0.45
LicensesEntitlementsFunction · 0.45
TestEntitlementsFunction · 0.45
assertEnterpriseFeaturesFunction · 0.45

Calls 1

IsAIGovernanceAddonMethod · 0.80

Tested by 3

TestPremiumSuperSetFunction · 0.36
TestEntitlementsFunction · 0.36
assertEnterpriseFeaturesFunction · 0.36