Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func (Notifier) Disconnected ¶
func (n Notifier) Disconnected(*libovsdb.OvsdbClient)
func (Notifier) Update ¶
func (n Notifier) Update(context interface{}, tableUpdates libovsdb.TableUpdates)
type OvsMonitor ¶
type OvsMonitor struct { sync.RWMutex Addr string Port int OvsClient *OvsClient MonitorHandlers []OvsMonitorHandler // contains filtered or unexported fields }
func NewOvsMonitor ¶
func NewOvsMonitor(addr string, port int) *OvsMonitor
func (*OvsMonitor) AddMonitorHandler ¶
func (o *OvsMonitor) AddMonitorHandler(handler OvsMonitorHandler)
func (*OvsMonitor) StartMonitoring ¶
func (o *OvsMonitor) StartMonitoring() error
func (*OvsMonitor) StopMonitoring ¶
func (o *OvsMonitor) StopMonitoring()
type OvsMonitorHandler ¶
type OvsMonitorHandler interface { OnOvsBridgeAdd(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsBridgeDel(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsBridgeUpdate(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsInterfaceAdd(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsInterfaceDel(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsInterfaceUpdate(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsPortAdd(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsPortDel(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) OnOvsPortUpdate(monitor *OvsMonitor, uuid string, row *libovsdb.RowUpdate) }
Click to show internal directories.
Click to hide internal directories.