Documentation ¶
Index ¶
- Constants
- func BuildTree(values []change.ConfigValue, pretty bool) ([]byte, error)
- type Leaf
- type Manager
- func (m *Manager) Close()
- func (m *Manager) GetAllDeviceIds() *[]string
- func (m *Manager) GetNetworkConfig(target string, configname string, path string, layer int) ([]change.ConfigValue, error)
- func (m *Manager) Run()
- func (m *Manager) SetNetworkConfig(target string, configName string, updates map[string]string, deletes []string) (change.ID, error)
- type Node
Constants ¶
View Source
const SetConfigAlreadyApplied = "Already applied:"
SetConfigAlreadyApplied is a string constant for "Already applied:"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct { ConfigStore *store.ConfigurationStore ChangeStore *store.ChangeStore DeviceStore *topocache.DeviceStore NetworkStore *store.NetworkStore TopoChannel chan events.Event ChangesChannel chan events.Event }
Manager single point of entry for the config system
func GetManager ¶
func GetManager() *Manager
GetManager returns the initialized and running instance of manager. Should be called only after NewManager and Run are done.
func NewManager ¶
func NewManager(configs *store.ConfigurationStore, changes *store.ChangeStore, device *topocache.DeviceStore, network *store.NetworkStore, topoCh chan events.Event) *Manager
NewManager initializes the network config manager subsystem.
func (*Manager) Close ¶
func (m *Manager) Close()
Close kills the channels and manager related objects
func (*Manager) GetAllDeviceIds ¶
GetAllDeviceIds returns a list of just DeviceIDs from the Config store
func (*Manager) GetNetworkConfig ¶
func (m *Manager) GetNetworkConfig(target string, configname string, path string, layer int) ([]change.ConfigValue, error)
GetNetworkConfig returns a set of change values given a target, a configuration name, a path and a layer. The layer is the numbers of config changes we want to go back in time for. 0 is the latest
Click to show internal directories.
Click to hide internal directories.