Documentation
¶
Overview ¶
Package feature provides the compliance feature registry for the talon init wizard. Features map to sections in agent.talon.yaml (and optionally talon.config.yaml). The wizard calls DefaultsForWorkload(workloadType) to show workload-appropriate features: proxy gets 3 features (audit, cost, pii); agent and hybrid get all 6.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEnabledIDs ¶
func DefaultEnabledIDs() []string
DefaultEnabledIDs returns IDs where DefaultEnabled is true.
func ValidFeatureIDs ¶
func ValidFeatureIDs() []string
ValidFeatureIDs returns all feature IDs (for flag validation).
Types ¶
type FeatureDescriptor ¶
type FeatureDescriptor struct {
ID string // used in --features flag and EnabledFeatures list
DisplayName string // human-readable label in wizard
Description string // short description (e.g. regulation reference)
DefaultEnabled bool // pre-selected in wizard
Order int // sort position; lower = earlier
AgentYAMLSection string // which section of agent.talon.yaml this feature populates
ConfigYAMLSection string // section of talon.config.yaml if any (empty = agent only)
WorkloadTypes []string // workload types this feature applies to: "agent", "proxy", "hybrid"
}
FeatureDescriptor describes a compliance feature shown in the talon init wizard.
func AllFeatures ¶
func AllFeatures() []FeatureDescriptor
AllFeatures returns all features in order (for full wizard display and validation).
func DefaultsForWorkload ¶
func DefaultsForWorkload(workloadType string) []FeatureDescriptor
DefaultsForWorkload returns features applicable to the given workload type, sorted by Order. Proxy gets 3 features (pii, audit, cost); agent and hybrid get all 6.
func FindByID ¶
func FindByID(id string) (FeatureDescriptor, bool)
FindByID returns the feature with the given ID, or false if not found.