bulk

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checker

func Checker(config *DeviceConfig) error

Checker - check everything is within bounds

func Clear

func Clear()

Clear - reset the config - needed for tests

func ClearTopo added in v0.6.11

func ClearTopo()

ClearTopo - reset the config - needed for tests

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

func TopoKindToTopoObject(topoKind *TopoKind) *topo.Object

TopoKindToTopoObject - convert to Object

func TopoRelationToTopoObject added in v0.6.11

func TopoRelationToTopoObject(topoRelation *TopoRelation) *topo.Object

TopoRelationToTopoObject - convert to Object

Types

type DeviceConfig

type DeviceConfig struct {
	TopoDevices []device.Device
}

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

Jump to

Keyboard shortcuts

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