Documentation
¶
Index ¶
- func ClearTopo()
- func TopoChecker(config *TopoConfig) error
- func TopoEntityToTopoObject(topoEntity *TopoEntity) *topo.Object
- func TopoKindToTopoObject(topoKind *TopoKind) *topo.Object
- func TopoRelationToTopoObject(topoRelation *TopoRelation) *topo.Object
- type TopoConfig
- type TopoEntity
- type TopoKind
- type TopoRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopoChecker ¶
func TopoChecker(config *TopoConfig) error
TopoChecker - check everything is within bounds
func TopoEntityToTopoObject ¶
func TopoEntityToTopoObject(topoEntity *TopoEntity) *topo.Object
TopoEntityToTopoObject - convert to Object
func TopoKindToTopoObject ¶
TopoKindToTopoObject - convert to Object
func TopoRelationToTopoObject ¶
func TopoRelationToTopoObject(topoRelation *TopoRelation) *topo.Object
TopoRelationToTopoObject - convert to Object
Types ¶
type TopoConfig ¶
type TopoConfig struct { TopoKinds []TopoKind TopoEntities []TopoEntity TopoRelations []TopoRelation }
TopoConfig - the top level object
func GetTopoConfig ¶
func GetTopoConfig(location string) (TopoConfig, error)
GetTopoConfig gets the onos-topo configuration
type TopoEntity ¶
type TopoEntity struct { ID topo.ID Type topo.Object_Type Obj *topo.Object_Entity Attributes *map[string]string }
TopoEntity - required to get around the "oneof" Obj
type TopoKind ¶
type TopoKind struct { ID topo.ID Type topo.Object_Type Obj *topo.Object_Kind Attributes *map[string]string }
TopoKind - required to get around the "oneof" Obj
type TopoRelation ¶
type TopoRelation struct { ID topo.ID Type topo.Object_Type Obj *topo.Object_Relation Attributes *map[string]string }
TopoRelation - required to get around the "oneof" Obj
Click to show internal directories.
Click to hide internal directories.