Features returns all the features that are part of the addon.
()
| 87 | |
| 88 | // Features returns all the features that are part of the addon. |
| 89 | func (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. |