topocache

package
v0.0.0-...-24c7f32 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package topocache is a mechanism for holding a cache of Devices.

When onos-topology is in place it will be the ultimate reference of device availability and accessibility Until then this simple cache will load a set of Device definitions from file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Addr, Target, Usr, Pwd, CaPath, CertPath, KeyPath string
	Timeout                                           time.Duration
}

Device - the definition of Device will ultimately come from onos-topology

type DeviceStore

type DeviceStore struct {
	Version   string
	Storetype string
	Store     map[string]Device
}

DeviceStore is the model of the Device store

func LoadDeviceStore

func LoadDeviceStore(file string, topoChannel chan<- events.Event) (*DeviceStore, error)

LoadDeviceStore loads a device store from a file - will eventually be from onos-topology

Jump to

Keyboard shortcuts

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