rootobject

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootObject

GetRootObject returns the root object that matches the given name.

func HandleMerge

HandleMerge handles merging root objects.

func Init

func Init()

Init initializes the package

func LoadAllCollections

func LoadAllCollections(ctx context.Context, root objinterface.RootValue) ([]objinterface.Collection, error)

LoadAllCollections loads and returns all collections from the root.

func LoadCollection

func LoadCollection(ctx context.Context, root objinterface.RootValue, collectionID objinterface.RootObjectID) (objinterface.Collection, error)

LoadCollection loads the collection matching the given ID from the root.

func PutRootObject

PutRootObject adds the given root object to the respective Collection in the root, returning the updated root.

func RemoveRootObject

func RemoveRootObject(ctx context.Context, root objinterface.RootValue, identifier id.Id, rootObjectID objinterface.RootObjectID) (objinterface.RootValue, error)

RemoveRootObject removes the matching root object from its respective Collection, returning the updated root.

func ResolveName

ResolveName returns the fully resolved name of the given item (if the item exists). Also returns the type of the item.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL