Versions in this module Expand all Collapse all v0 v0.3.0 Mar 16, 2026 Changes in this version + const RelExposes + const RelManages + const RelMemberOf + const RelOwns + const RelRunsOn + const RelUses + type DependencyNode struct + Children []DependencyNode + Edge GraphEdge + type DependencyTree struct + Children []DependencyNode + Root GraphNode + type Direction int + const Both + const Incoming + const Outgoing + type GraphEdge struct + Label string + Source GraphNode + Target GraphNode + Type RelationshipType + type GraphIndexer struct + func NewGraphIndexer(graph *RelationshipGraph, store registry.RegistryStore) *GraphIndexer + func (gi *GraphIndexer) CheckLabelSelectorsForEntry(entry registry.ResourceEntry) + func (gi *GraphIndexer) Name() string + func (gi *GraphIndexer) OnAdd(entry registry.ResourceEntry, raw json.RawMessage) + func (gi *GraphIndexer) OnDelete(entry registry.ResourceEntry) + func (gi *GraphIndexer) OnUpdate(old, new_ registry.ResourceEntry, raw json.RawMessage) + type GraphNode struct + ConnectionID string + ID string + Namespace string + PluginID string + ResourceKey string + func (n GraphNode) Key() string + type RelationshipGraph struct + func NewRelationshipGraph() *RelationshipGraph + func (g *RelationshipGraph) AddEdge(edge GraphEdge) + func (g *RelationshipGraph) ClearDeclarationsForPlugin(pluginID string) + func (g *RelationshipGraph) EdgesFrom(nodeKey string) []GraphEdge + func (g *RelationshipGraph) EdgesTo(nodeKey string) []GraphEdge + func (g *RelationshipGraph) GetDeclarations(resourceKey string) []resource.RelationshipDescriptor + func (g *RelationshipGraph) GetDependencyTree(ref GraphNode, maxDepth int) (*DependencyTree, error) + func (g *RelationshipGraph) GetRelated(ref GraphNode, direction Direction, relType *RelationshipType) ([]GraphEdge, error) + func (g *RelationshipGraph) GetRelationshipChain(ref GraphNode, relType RelationshipType, maxDepth int) ([][]GraphEdge, error) + func (g *RelationshipGraph) GetSelectorCache(nodeKey string) (map[string]string, bool) + func (g *RelationshipGraph) RemoveEdgesForConnection(pluginID, connectionID string) + func (g *RelationshipGraph) RemoveEdgesForNode(nodeKey string) + func (g *RelationshipGraph) SetDeclarations(pluginID, resourceKey string, decls []resource.RelationshipDescriptor) + func (g *RelationshipGraph) SetSelectorCache(nodeKey string, selector map[string]string) + type RelationshipType = resource.RelationshipType