Documentation
¶
Index ¶
- Constants
- type OvsKV
- type OvsKVImpl
- func (o *OvsKVImpl) DeleteKV(op, key string) (int, error)
- func (o *OvsKVImpl) Disconnect()
- func (o *OvsKVImpl) GetKV(op, key string) (OvsKVRows, error)
- func (o *OvsKVImpl) GetKVM(op, key string) (*[]libovsdb.ResultRow, error)
- func (o *OvsKVImpl) GetKVNodes(op, key string) (*node, error)
- func (o *OvsKVImpl) InsertKV(key, val string) (string, error)
- func (o *OvsKVImpl) InsertKVM(key string, val map[string]string) (string, error)
- func (o *OvsKVImpl) Load() error
- func (o *OvsKVImpl) LoadField(data interface{}, prefix string) error
- func (o *OvsKVImpl) Save() error
- func (o *OvsKVImpl) SaveField(field interface{}) error
- func (o *OvsKVImpl) SetKV(key, val string) (string, error)
- func (o *OvsKVImpl) SetKVM(key string, val map[string]string) (string, error)
- func (o *OvsKVImpl) V(v string) map[string]string
- type OvsKVMap
- type OvsKVRow
- type OvsKVRows
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OvsKV ¶
type OvsKV interface {
InsertKV(key, val string) (string, error)
InsertKVM(key string, val map[string]string)
SetKV(key, val string) (string, error)
SetKVM(key string, val map[string]string)
DeleteKV(op, key string) (int, error)
GetKV(op, key string) (OvsKVRow, error)
GetKVM(op, key string) (*[]libovsdb.ResultRow, error)
Save() error
SaveField(field interface{}) error
Load() error
LoadField(data interface{}, prefix string) error
Disconnect()
}
type OvsKVImpl ¶
type OvsKVImpl struct {
// contains filtered or unexported fields
}
func (*OvsKVImpl) Disconnect ¶
func (o *OvsKVImpl) Disconnect()
func (*OvsKVImpl) GetKVNodes ¶
func (*OvsKVImpl) Load ¶
Load retrieves the data from the ovsdb into the given structure. Only attributes with the tag 'ovskv' will be filled.
func (*OvsKVImpl) LoadField ¶
LoadField retrieves the specific data from the ovsdb into the given structure. Only attributes with the tag 'ovskv' will be filled.
func (*OvsKVImpl) Save ¶
Save stores a structure in ovskv. Only attributes with the tag 'ovskv' are going to be saved.
func (*OvsKVImpl) SaveField ¶
SaveField saves a specific field from the configuration structure. Works in the same way of Save, but it can be used to save specific parts of the configuration, avoiding excessive requests to ovsdb cluster