Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct {
// Pointer to the field of the model where the operation applies
Field interface{}
// Condition function
Function ovsdb.ConditionFunction
// Value to use in the condition
Value interface{}
}
Condition is a model-based representation of an OVSDB Condition
type DBModel ¶
type DBModel struct {
// contains filtered or unexported fields
}
DBModel is a Database model
func NewDBModel ¶
NewDBModel constructs a DBModel based on a database name and dictionary of models indexed by table name
type Model ¶
type Model interface{}
A Model is the base interface used to build Database Models. It is used to express how data from a specific Database Table shall be translated into structs A Model is a struct with at least one (most likely more) field tagged with the 'ovs' tag The value of 'ovs' field must be a valid column name in the OVS Database A field associated with the "_uuid" column mandatory. The rest of the columns are optional The struct may also have non-tagged fields (which will be ignored by the API calls) The Model interface must be implemented by the pointer to such type Example:
type MyLogicalRouter struct {
UUID string `ovsdb:"_uuid"`
Name string `ovsdb:"name"`
ExternalIDs map[string]string `ovsdb:"external_ids"`
LoadBalancers []string `ovsdb:"load_balancer"`
}
type Mutation ¶
type Mutation struct {
// Pointer to the field of the model that shall be mutated
Field interface{}
// String representing the mutator (as per RFC7047)
Mutator ovsdb.Mutator
// Value to use in the mutation
Value interface{}
}
Mutation is a model-based representation of an OVSDB Mutation