Documentation ¶
Index ¶
- func CreateLink()
- func CreateTopologyRelation()
- func RemoveLink()
- func RemoveTopology()
- func StoreTopology()
- type Database
- func (d Database) GetNodeByID(id string)
- func (d Database) GetNodesByLabel(label string)
- func (d Database) GetPNDByID(id string)
- func (d Database) RemoveNodes(json string)
- func (d Database) RemovePND(id string)
- func (d Database) RemoveSingleNode(id string)
- func (d Database) Shutdown() error
- func (d Database) StoreConnections(json string)
- func (d Database) StoreLinks(json string) []neo4j.Relationship
- func (d Database) StoreNodeEdgePoints(json string)
- func (d Database) StoreNodes(json string) []neo4j.Node
- func (d Database) StorePND(pnd *PND) neo4j.Node
- type PND
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTopologyRelation ¶
func CreateTopologyRelation()
CreateTopologyRelation creates a relation between two given topologies
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 ¶
GetNodeByID gets a specific node by ID.
func (Database) GetNodesByLabel ¶
GetNodesByLabel gets all nodes that belong to a specific label.
func (Database) GetPNDByID ¶
GetPNDByID gets a specific PND by the given ID.
func (Database) RemoveNodes ¶
RemoveNodes removes the given nodes and their relationships
func (Database) RemoveSingleNode ¶
RemoveSingleNode removes the given node and their relationship by id.
func (Database) StoreConnections ¶
StoreConnections stores relations between nodes
func (Database) StoreLinks ¶
func (d Database) StoreLinks(json string) []neo4j.Relationship
StoreLinks stores the links between nodes
func (Database) StoreNodeEdgePoints ¶
StoreNodeEdgePoints stores the given node edge points (interfaces)
func (Database) StoreNodes ¶
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.