database

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLink()

CreateLink creates a link between two network elements

func CreateTopologyRelation

func CreateTopologyRelation()

CreateTopologyRelation creates a relation between two given topologies

func RemoveLink()

RemoveLink removes a link between two network elements

func RemoveTopology

func RemoveTopology()

RemoveTopology removes the given network topology. This includes the node itself aswell as the containing links and relations

func StoreTopology

func StoreTopology()

StoreTopology creates a new network topology node. Can also create a relation the new node and a existing one if desired

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database is a database deprecated

func NewDatabaseClient

func NewDatabaseClient() Database

NewDatabaseClient creates a database ciena

func (Database) GetNodeByID

func (d Database) GetNodeByID(id string)

GetNodeByID gets a specific node by ID.

func (Database) GetNodesByLabel

func (d Database) GetNodesByLabel(label string)

GetNodesByLabel gets all nodes that belong to a specific label.

func (Database) GetPNDByID

func (d Database) GetPNDByID(id string)

GetPNDByID gets a specific PND by the given ID.

func (Database) RemoveNodes

func (d Database) RemoveNodes(json string)

RemoveNodes removes the given nodes and their relationships

func (Database) RemovePND

func (d Database) RemovePND(id string)

RemovePND removes the given principle network domain by id.

func (Database) RemoveSingleNode

func (d Database) RemoveSingleNode(id string)

RemoveSingleNode removes the given node and their relationship by id.

func (Database) Shutdown

func (d Database) Shutdown() error

Shutdown closes the connection to the database

func (Database) StoreConnections

func (d Database) StoreConnections(json string)

StoreConnections stores relations between nodes

func (d Database) StoreLinks(json string) []neo4j.Relationship

StoreLinks stores the links between nodes

func (Database) StoreNodeEdgePoints

func (d Database) StoreNodeEdgePoints(json string)

StoreNodeEdgePoints stores the given node edge points (interfaces)

func (Database) StoreNodes

func (d Database) StoreNodes(json string) []neo4j.Node

StoreNodes stores the given nodes to the database and adds them to a principle networt domain (PND). It is required for a node to belong to a PND.

func (Database) StorePND

func (d Database) StorePND(pnd *PND) neo4j.Node

StorePND stores the given principle network domain

type PND

type PND struct {
	// contains filtered or unexported fields
}

PND is a principle network domain

Jump to

Keyboard shortcuts

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