Versions in this module Expand all Collapse all v0 v0.0.68 Apr 16, 2026 Changes in this version + func FilterDeleted(l *LeafEntry) bool + func FilterDeletedNotExplicitDelete(l *LeafEntry) bool + func FilterNew(l *LeafEntry) bool + func FilterNonDeleted(l *LeafEntry) bool + func FilterNonDeletedButNewOrUpdated(l *LeafEntry) bool + func FilterUpdated(l *LeafEntry) bool + func HighestPrecedenceFilterAll(le *LeafEntry) bool + func HighestPrecedenceFilterWithoutDeleted(le *LeafEntry) bool + func HighestPrecedenceFilterWithoutNew(le *LeafEntry) bool + func LeafEntriesToUpdates(l []*LeafEntry) []*types.Update + func RegisterEntryFactory(factory EntryFactory) + func Unfiltered(l *LeafEntry) bool + type ChildMap struct + func NewChildMap() *ChildMap + func NewChildMapWithEntries(entries map[string]Entry) *ChildMap + func (c *ChildMap) AddOrGet(e Entry) Entry + func (c *ChildMap) DeleteChild(name string) + func (c *ChildMap) DeleteChilds(names []string) + func (c *ChildMap) ForEach(fn func(name string, e Entry)) + func (c *ChildMap) GetAll() map[string]Entry + func (c *ChildMap) GetAllSorted() []Entry + func (c *ChildMap) GetEntry(s string) (e Entry, exists bool) + func (c *ChildMap) GetKeys() []string + func (c *ChildMap) Length() int + func (c *ChildMap) SortedKeys() []string + type ChoiceResolvers map[string]*choiceResolver + func (c ChoiceResolvers) AddChoice(name string) *choiceResolver + func (c ChoiceResolvers) DeepCopy() ChoiceResolvers + func (c ChoiceResolvers) GetDeletes() []string + func (c ChoiceResolvers) GetSkipElements() []string + type DeletePathPrio struct + func NewDeletePathPrio(owner string, prio int32) *DeletePathPrio + func (ddp *DeletePathPrio) DeepCopy() *DeletePathPrio + func (dpp *DeletePathPrio) GetOwner() string + func (dpp *DeletePathPrio) GetPathSet() *sdcpb.PathSet + func (dpp *DeletePathPrio) GetPrio() int32 + func (dpp *DeletePathPrio) PathItems() iter.Seq[*sdcpb.Path] + type DeletePathSet struct + func NewDeletePaths() *DeletePathSet + func (dp *DeletePathSet) Add(intentName string, prio int32, pathset *sdcpb.PathSet) + func (dp *DeletePathSet) DeepCopy() *DeletePathSet + func (dp *DeletePathSet) GetByIntentName(intentName string) *sdcpb.PathSet + func (dp *DeletePathSet) Items() iter.Seq[*DeletePathPrio] + func (dp *DeletePathSet) Remove(intentName string) *sdcpb.PathSet + type DescendMethod int + const DescendMethodActiveChilds + const DescendMethodAll + type Entry interface + AddOrGetChild func(context.Context, Entry) (Entry, error) + CanDelete func() bool + CanDeleteBranch func(keepDefault bool) bool + ChoicesResolvers func() ChoiceResolvers + DeepCopy func(tc TreeContext, parent Entry) (Entry, error) + DeleteCanDeleteChilds func(keepDefault bool) + FinishInsertionPhase func(ctx context.Context) error + GetChildMap func() *ChildMap + GetChilds func(types.DescendMethod) EntryMap + GetLeafVariants func() *LeafVariants + GetLevel func() int + GetParent func() Entry + GetSchema func() *sdcpb.SchemaElem + GetTreeContext func() TreeContext + IsRoot func() bool + PathName func() string + RemainsToExist func() bool + SdcpbPath func() *sdcpb.Path + ShouldDelete func() bool + StringIndent func(result []string) []string + func NewEntry(ctx context.Context, parent Entry, pathElemName string, tc TreeContext) (Entry, error) + type EntryFactory func(ctx context.Context, parent Entry, pathElemName string, tc TreeContext) (Entry, error) + type EntryMap map[string]Entry + func (e EntryMap) SortedKeys() []string + type HighestPrecedenceFilter func(le *LeafEntry) bool + type LeafEntry struct + Delete bool + DeleteOnlyIntended bool + IsExplicitDelete bool + IsNew bool + IsUpdated bool + func NewLeafEntry(c *types.Update, flags *types.UpdateInsertFlags, parent Entry) *LeafEntry + func (l *LeafEntry) Compare(other *LeafEntry) int + func (l *LeafEntry) DeepCopy(parentEntry Entry) *LeafEntry + func (l *LeafEntry) DropDeleteFlag() *LeafEntry + func (l *LeafEntry) Equal(other *LeafEntry) bool + func (l *LeafEntry) GetDeleteFlag() bool + func (l *LeafEntry) GetDeleteOnlyIntendedFlag() bool + func (l *LeafEntry) GetEntry() Entry + func (l *LeafEntry) GetExplicitDeleteFlag() bool + func (l *LeafEntry) GetNewFlag() bool + func (l *LeafEntry) GetUpdate() *types.Update + func (l *LeafEntry) GetUpdateFlag() bool + func (l *LeafEntry) MarkDelete(onlyIntended bool) + func (l *LeafEntry) MarkExpliciteDelete() + func (l *LeafEntry) MarkNew() + func (l *LeafEntry) MarkUpdate(u *types.Update) + func (l *LeafEntry) NonRevertive() bool + func (l *LeafEntry) String() string + type LeafEntryFilter func(*LeafEntry) bool + type LeafVariantSlice []*LeafEntry + func (lvs LeafVariantSlice) Equal(otherLvs LeafVariantSlice) (bool, error) + func (lvs LeafVariantSlice) String() string + func (lvs LeafVariantSlice) ToPathAndUpdateSlice() []*types.PathAndUpdate + func (lvs LeafVariantSlice) ToSdcpbUpdateSlice() []*sdcpb.Update + func (lvs LeafVariantSlice) ToUpdateSlice() types.UpdateSlice + type LeafVariants struct + func NewLeafVariants(tc TreeContext, parentEnty Entry) *LeafVariants + func (lv *LeafVariants) Add(le *LeafEntry) + func (lv *LeafVariants) AddExplicitDeleteEntry(intentName string, priority int32) *LeafEntry + func (lv *LeafVariants) AddWithStats(le *LeafEntry, stats *types.ImportStats) + func (lv *LeafVariants) CanDelete() bool + func (lv *LeafVariants) CanDeleteBranch(keepDefault bool) bool + func (lv *LeafVariants) DeepCopy(tc TreeContext, parent Entry) *LeafVariants + func (lv *LeafVariants) DeleteByOwner(owner string) *LeafEntry + func (lv *LeafVariants) GetByOwner(owner string) *LeafEntry + func (lv *LeafVariants) GetDeviations(ctx context.Context, ch chan<- *types.DeviationEntry, isActiveCase bool) + func (lv *LeafVariants) GetHighestPrecedence(onlyNewOrUpdated bool, includeDefaults bool, includeExplicitDelete bool) *LeafEntry + func (lv *LeafVariants) GetHighestPrecedenceValue(filter HighestPrecedenceFilter) int32 + func (lv *LeafVariants) GetRunning() *LeafEntry + func (lv *LeafVariants) Items() iter.Seq[*LeafEntry] + func (lv *LeafVariants) Length() int + func (lv *LeafVariants) MarkOwnerForDeletion(owner string, onlyIntended bool) *LeafEntry + func (lv *LeafVariants) RemainsToExist() bool + func (lv *LeafVariants) RemoveDeletedByOwner(owner string) *LeafEntry + func (lv *LeafVariants) ResetFlags(deleteFlag bool, newFlag bool, updatedFlag bool) int + func (lv *LeafVariants) ShouldDelete() bool + type NonRevertiveInfo struct + func NewNonRevertiveInfo(intentName string, nonRevertive bool) *NonRevertiveInfo + func (n *NonRevertiveInfo) AddPaths(path ...*sdcpb.Path) *NonRevertiveInfo + func (n *NonRevertiveInfo) DeepCopy() *NonRevertiveInfo + func (n *NonRevertiveInfo) IsGenerallyNonRevertive() bool + func (n *NonRevertiveInfo) IsNonRevertive(p SdcpbPath) bool + func (n *NonRevertiveInfo) SetNonRevertive(nonRevertive bool) + func (n *NonRevertiveInfo) String() string + type NonRevertiveInfos map[string]*NonRevertiveInfo + func NewNonRevertiveInfos() NonRevertiveInfos + func (n NonRevertiveInfos) Add(owner string, nonRevertive bool, paths ...*sdcpb.Path) + func (n NonRevertiveInfos) DeepCopy() NonRevertiveInfos + func (n NonRevertiveInfos) IsGenerallyNonRevertive(owner string) bool + func (n NonRevertiveInfos) IsNonRevertive(owner string, path SdcpbPath) bool + func (n NonRevertiveInfos) String() string + type SdcpbPath interface + SdcpbPath func() *sdcpb.Path + type TreeContext interface + DeepCopy func() TreeContext + ExplicitDeletes func() *DeletePathSet + NonRevertiveInfo func() NonRevertiveInfos + PoolFactory func() pool.VirtualPoolFactory + SchemaClient func() schemaClient.SchemaClientBound