serverdb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

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 (a *Database) CloneModel() model.Model

func (*Database) CloneModelInto

func (a *Database) CloneModelInto(b model.Model)

func (*Database) DeepCopy

func (a *Database) DeepCopy() *Database

func (*Database) DeepCopyInto

func (a *Database) DeepCopyInto(b *Database)

func (*Database) Equals

func (a *Database) Equals(b *Database) bool

func (*Database) EqualsModel

func (a *Database) EqualsModel(b model.Model) bool

func (*Database) GetCid

func (a *Database) GetCid() *string

func (*Database) GetConnected

func (a *Database) GetConnected() bool

func (*Database) GetIndex

func (a *Database) GetIndex() *int

func (*Database) GetLeader

func (a *Database) GetLeader() bool

func (*Database) GetModel

func (a *Database) GetModel() DatabaseModel

func (*Database) GetName

func (a *Database) GetName() string

func (*Database) GetSchema

func (a *Database) GetSchema() *string

func (*Database) GetSid

func (a *Database) GetSid() *string

func (*Database) GetUUID

func (a *Database) GetUUID() string

type DatabaseModel

type DatabaseModel = string
var (
	DatabaseModelStandalone DatabaseModel = "standalone"
	DatabaseModelClustered  DatabaseModel = "clustered"
	DatabaseModelRelay      DatabaseModel = "relay"
)

Jump to

Keyboard shortcuts

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