Versions in this module Expand all Collapse all v0 v0.0.68 Apr 16, 2026 Changes in this version + var ErrorIntentNotPresent = fmt.Errorf("intent not present") + func AddUpdateRecursive(ctx context.Context, e api.Entry, path *sdcpb.Path, u *types.Update, ...) (api.Entry, error) + func AddUpdateRecursiveInternal(ctx context.Context, s api.Entry, path *sdcpb.Path, idx int, u *types.Update, ...) (api.Entry, error) + func CheckAndCreateKeysAsLeafs(ctx context.Context, e api.Entry, intentName string, prio int32, ...) error + func ContainsOnlyDefaults(e api.Entry) bool + func DefaultValueExists(schema *sdcpb.SchemaElem) bool + func DefaultValueRetrieve(ctx context.Context, schema *sdcpb.SchemaElem, path *sdcpb.Path) (*types.Update, error) + func DeleteBranch(ctx context.Context, e api.Entry, path *sdcpb.Path, owner string) error + func FilterChilds(s api.Entry, keys map[string]string) ([]api.Entry, error) + func GetDeletes(e api.Entry, aggregatePaths bool) (types.DeleteEntriesList, error) + func GetDeviations(ctx context.Context, e api.Entry, config *GetDeviationParams, ...) error + func GetFirstAncestorWithSchema(e api.Entry) (api.Entry, int) + func GetHighestPrecedence(s api.Entry, onlyNewOrUpdated bool, includeDefaults bool, ...) api.LeafVariantSlice + func GetHighestPrecedenceValueOfBranch(e api.Entry, filter api.HighestPrecedenceFilter) int32 + func GetListChilds(e api.Entry) ([]api.Entry, error) + func GetOrCreateChilds(ctx context.Context, e api.Entry, path *sdcpb.Path) (api.Entry, error) + func GetPathCompletions(ctx context.Context, entry api.Entry, toComplete string) []string + func GetRoot(e api.Entry) api.Entry + func GetRootBasedEntryChain(current api.Entry) []api.Entry + func GetSchemaKeys(e api.Entry) []string + func HoldsLeafVariants(e api.Entry) bool + func LeafsOfOwner(e api.Entry, owner string, f ...api.LeafEntryFilter) api.LeafVariantSlice + func NavigateSdcpbPath(ctx context.Context, e api.Entry, path *sdcpb.Path) (api.Entry, error) + func ToJson(ctx context.Context, e api.Entry, onlyNewOrUpdated bool) (any, error) + func ToJsonIETF(ctx context.Context, e api.Entry, onlyNewOrUpdated bool) (any, error) + func ToProtoDeletes(ctx context.Context, e api.Entry) ([]*sdcpb.Path, error) + func ToProtoUpdates(ctx context.Context, e api.Entry, onlyNewOrUpdated bool) ([]*sdcpb.Update, error) + func ToXML(ctx context.Context, e api.Entry, ...) (*etree.Document, error) + func TreeExport(e api.Entry, owner string, priority int32, orphan bool) (*tree_persist.Intent, error) + type GetDeviationParams struct + Ch chan<- *types.DeviationEntry