load

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTopo

func ClearTopo()

ClearTopo - reset the config - needed for tests

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

func TopoKindToTopoObject(topoKind *TopoKind) *topo.Object

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL