Documentation ¶
Index ¶
- func Checker(config *DeviceConfig) error
- func Clear()
- 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 DeviceConfig
- type TopoConfig
- type TopoEntity
- type TopoKind
- type TopoRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TopoChecker ¶ added in v0.6.11
func TopoChecker(config *TopoConfig) error
TopoChecker - check everything is within bounds
func TopoEntityToTopoObject ¶ added in v0.6.11
func TopoEntityToTopoObject(topoEntity *TopoEntity) *topo.Object
TopoEntityToTopoObject - convert to Object
func TopoKindToTopoObject ¶ added in v0.6.11
TopoKindToTopoObject - convert to Object
func TopoRelationToTopoObject ¶ added in v0.6.11
func TopoRelationToTopoObject(topoRelation *TopoRelation) *topo.Object
TopoRelationToTopoObject - convert to Object
Types ¶
type DeviceConfig ¶
DeviceConfig - a wrapper around multiple devices
func GetDeviceConfig ¶
func GetDeviceConfig(location string) (DeviceConfig, error)
GetDeviceConfig gets the onos-topo configuration
type TopoConfig ¶ added in v0.6.11
type TopoConfig struct { TopoKinds []TopoKind TopoEntities []TopoEntity TopoRelations []TopoRelation }
TopoConfig - the top level object
func GetTopoConfig ¶ added in v0.6.11
func GetTopoConfig(location string) (TopoConfig, error)
GetTopoConfig gets the onos-topo configuration
type TopoEntity ¶ added in v0.6.11
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 ¶ added in v0.6.11
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 ¶ added in v0.6.11
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.