Documentation ¶
Index ¶
- type NamespacedType
- type Node
- type Topology
- func (t *Topology) AddNode(node Node) error
- func (t *Topology) GetAttrs(typ NamespacedType) []string
- func (t *Topology) GetNamespacesForType(typ string) ([]string, error)
- func (t *Topology) ShortestPath(from NamespacedType, to NamespacedType) ([]NamespacedType, error)
- func (t *Topology) SupportsAttr(typ NamespacedType, attr string) bool
- type TopologyLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespacedType ¶
type NamespacedType struct { Namespace string `validate:"required"` Type string `validate:"required"` }
func (NamespacedType) Compare ¶
func (a NamespacedType) Compare(b NamespacedType) int
func (NamespacedType) String ¶
func (nt NamespacedType) String() string
func (*NamespacedType) UnmarshalJSON ¶
func (nt *NamespacedType) UnmarshalJSON(data []byte) error
type Node ¶
type Node struct { Type NamespacedType Attrs []string }
type Topology ¶
type Topology struct { graph.Graph[NamespacedType, Node] // contains filtered or unexported fields }
func (*Topology) GetAttrs ¶
func (t *Topology) GetAttrs(typ NamespacedType) []string
func (*Topology) GetNamespacesForType ¶
func (*Topology) ShortestPath ¶
func (t *Topology) ShortestPath(from NamespacedType, to NamespacedType) ([]NamespacedType, error)
func (*Topology) SupportsAttr ¶
func (t *Topology) SupportsAttr(typ NamespacedType, attr string) bool
type TopologyLoader ¶
func ReaderTopologyLoader ¶
func ReaderTopologyLoader(readers []reader.Reader) TopologyLoader
Click to show internal directories.
Click to hide internal directories.