Documentation ¶
Index ¶
- Constants
- func FullDatabaseModel() (model.ClientDBModel, error)
- func Schema() ovsdb.DatabaseSchema
- type Database
- func (a *Database) CloneModel() model.Model
- func (a *Database) CloneModelInto(b model.Model)
- func (a *Database) DeepCopy() *Database
- func (a *Database) DeepCopyInto(b *Database)
- func (a *Database) Equals(b *Database) bool
- func (a *Database) EqualsModel(b model.Model) bool
- func (a *Database) GetCid() *string
- func (a *Database) GetConnected() bool
- func (a *Database) GetIndex() *int
- func (a *Database) GetLeader() bool
- func (a *Database) GetModel() DatabaseModel
- func (a *Database) GetName() string
- func (a *Database) GetSchema() *string
- func (a *Database) GetSid() *string
- func (a *Database) GetUUID() string
- type DatabaseModel
Constants ¶
View Source
const DatabaseTable = "Database"
Variables ¶
This section is empty.
Functions ¶
func FullDatabaseModel ¶
func FullDatabaseModel() (model.ClientDBModel, error)
FullDatabaseModel returns the DatabaseModel object to be used in libovsdb
func Schema ¶
func Schema() ovsdb.DatabaseSchema
Types ¶
type Database ¶
type Database struct { UUID string `ovsdb:"_uuid"` Cid *string `ovsdb:"cid"` Connected bool `ovsdb:"connected"` Index *int `ovsdb:"index"` Leader bool `ovsdb:"leader"` Model DatabaseModel `ovsdb:"model"` Name string `ovsdb:"name"` Schema *string `ovsdb:"schema"` Sid *string `ovsdb:"sid"` }
Database defines an object in Database table
func (*Database) CloneModel ¶
func (*Database) CloneModelInto ¶
func (*Database) DeepCopyInto ¶
func (*Database) GetConnected ¶
func (*Database) GetModel ¶
func (a *Database) GetModel() DatabaseModel
type DatabaseModel ¶
type DatabaseModel = string
var ( DatabaseModelStandalone DatabaseModel = "standalone" DatabaseModelClustered DatabaseModel = "clustered" DatabaseModelRelay DatabaseModel = "relay" )
Click to show internal directories.
Click to hide internal directories.