Versions in this module Expand all Collapse all v0 v0.17.2 Mar 6, 2026 Changes in this version + var LookupResourceHierarchy = &ResourceHierarchy + var LookupStores = &Stores + func GetChildren(ctx context.Context, s store.ObjectStore[*unstructured.Unstructured], ...) error + func GetOwner(ctx context.Context, store store.ObjectStore[*unstructured.Unstructured], ...) error + type GVK interface + GetAPIVersion func() string + GetKind func() string + type MatchType string + const MatchTypeOwnerReference + type OwnerReference struct + ApiVersion string + Kind string + Name string + Namespace string + Uid string + func GetControllerOf(obj *unstructured.Unstructured) (ref OwnerReference, ok bool) + func (o OwnerReference) GetAPIVersion() string + func (o OwnerReference) GetKind() string + type ResourceHierarchy struct + Owned map[string]Set + Referenced map[string]Set + func (h *ResourceHierarchy) AddChild(parent GVK, child TreeResourceInfo) + func (h *ResourceHierarchy) GetChildren(parent GVK) []TreeResourceInfo + type ResourceNode struct + Children []*ResourceNode + References []*ResourceNode + Value store.Object + func (n *ResourceNode) AddChild(child *ResourceNode) + func (n *ResourceNode) AddNewChild(obj store.Object) *ResourceNode + func (n *ResourceNode) AddNewReference(obj *unstructured.Unstructured) *ResourceNode + func (n *ResourceNode) AddReference(ref *ResourceNode) + type ResourceTree struct + Root *ResourceNode + func GetTree(ctx context.Context, startStore store.ObjectStore[*unstructured.Unstructured], ...) (*ResourceTree, error) + func NewResourceTree() *ResourceTree + func (t *ResourceTree) AddNewNode(obj store.Object) *ResourceNode + func (t *ResourceTree) AddNode(node *ResourceNode) + func (t *ResourceTree) GetCurrent() *ResourceNode + func (t *ResourceTree) ReplaceRoot(obj store.Object) *ResourceNode + func (t *ResourceTree) SetCurrent(node *ResourceNode) + func (t *ResourceTree) SetRoot(obj store.Object) + type ResourceTreeController struct + Store store.ObjectStore[*unstructured.Unstructured] + func NewResourceTreeController(store store.ObjectStore[*unstructured.Unstructured], log logr.Logger) *ResourceTreeController + func (r *ResourceTreeController) GetTree(c *fiber.Ctx) error + func (r *ResourceTreeController) Register(router fiber.Router, opts server.ControllerOpts) + type Set map[TreeResourceInfo]bool + type Stores struct + func (s *Stores) AddStore(store store.ObjectStore[*unstructured.Unstructured]) + func (s *Stores) GetStore(groupVersion, kind string) (store.ObjectStore[*unstructured.Unstructured], bool) + type TreeResourceInfo struct + APIVersion string + Kind string + MatchType MatchType + func (t TreeResourceInfo) GetAPIVersion() string + func (t TreeResourceInfo) GetFiltersFor(obj *unstructured.Unstructured) []store.Filter + func (t TreeResourceInfo) GetKind() string