Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SemanticID ¶
SemanticID canonicalizes an ACP option ID for reserved-setting conflict checks.
Types ¶
type Selection ¶
type Selection struct {
ID string `json:"id" yaml:"id" toml:"id"`
ValueID string `json:"value_id,omitempty" yaml:"value_id,omitempty" toml:"value_id,omitempty"`
BoolValue *bool `json:"bool_value,omitzero" yaml:"bool_value,omitempty" toml:"bool_value,omitempty"`
}
Selection is one typed provider-advertised ACP runtime option. Exactly one of ValueID or BoolValue must be set.
func CanonicalSelections ¶
CanonicalSelections clones and sorts selections by ID.
func CloneSelections ¶
CloneSelections returns an ownership-safe copy with trimmed scalar values.
func MergeSelections ¶
MergeSelections overlays selections by ID and reports the applied overlay IDs.
func NormalizeSelections ¶
NormalizeSelections validates, copies, deduplicates, and sorts selections.
func (*Selection) UnmarshalYAML ¶
UnmarshalYAML decodes one closed, typed ACP option selection.
Click to show internal directories.
Click to hide internal directories.