Documentation
¶
Index ¶
- func NewCancelArgs(id interface{}) []interface{}
- func NewCondition(column string, function string, value interface{}) []interface{}
- func NewGetSchemaArgs(schema string) []interface{}
- func NewLockArgs(id interface{}) []interface{}
- func NewMonitorArgs(database string, value interface{}, requests []MonitorRequest) []interface{}
- func NewMonitorCancelArgs(value interface{}) []interface{}
- func NewMutation(column string, mutator string, value interface{}) []interface{}
- func NewNamedUUID(uuid string) []string
- func NewTransactArgs(database string, operations ...Operation) []interface{}
- func NewUUID(uuid string) ([]string, error)
- type ColumnSchema
- type DatabaseSchema
- type MonitorRequest
- type MonitorSelect
- type Operation
- type OvsSet
- type OvsdbClient
- type OvsdbError
- type TableSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelArgs ¶
func NewCancelArgs(id interface{}) []interface{}
NewCancelArgs creates a new set of arguments for a cancel RPC
func NewCondition ¶
NewCondition creates a new condition as specified in RFC7047
func NewGetSchemaArgs ¶
func NewGetSchemaArgs(schema string) []interface{}
NewGetSchemaArgs creates a new set of arguments for a get_schemas RPC
func NewLockArgs ¶
func NewLockArgs(id interface{}) []interface{}
NewLockArgs creates a new set of arguments for a lock, steal or unlock RPC
func NewMonitorArgs ¶
func NewMonitorArgs(database string, value interface{}, requests []MonitorRequest) []interface{}
NewMonitorArgs creates a new set of arguments for a monitor RPC
func NewMonitorCancelArgs ¶
func NewMonitorCancelArgs(value interface{}) []interface{}
NewMonitorCancelArgs creates a new set of arguments for a monitor_cancel RPC
func NewMutation ¶
NewMutation creates a new mutation as specified in RFC7047
func NewNamedUUID ¶
NewNamedUUID creates a new named-uuid as specified in RFC7047
func NewTransactArgs ¶
NewTransactArgs creates a new set of arguments for a transact RPC
Types ¶
type ColumnSchema ¶
type DatabaseSchema ¶
type DatabaseSchema struct { Name string `json:"name"` Version string `json:"version"` Tables map[string]TableSchema `json:"tables"` }
func (DatabaseSchema) Print ¶
func (schema DatabaseSchema) Print()
type MonitorRequest ¶
type MonitorRequest struct { Columns []string `json:"columns,omitempty"` Select MonitorSelect `json:"select,omitempty"` }
MonitorRequest represents a monitor request according to RFC7047
type MonitorSelect ¶
type MonitorSelect struct { Initial bool `json:"initial,omitempty"` Insert bool `json:"insert,omitempty"` Delete bool `json:"delete,omitempty"` Modify bool `json:"modify,omitempty"` }
MonitorSelect represents a monitor select according to RFC7047
type Operation ¶
type Operation struct { Op string `json:"op"` Table string `json:"table"` Row map[string]interface{} `json:"row,omitempty"` Rows []map[string]interface{} `json:"rows,omitempty"` Columns []string `json:"columns,omitempty"` Mutations []string `json:"mutations,omitempty"` Timeout int `json:"timeout,omitempty"` Where []string `json:"where,omitempty"` Until string `json:"until,omitempty"` UUIDName string `json:"uuid_name,omitempty"` }
Operation represents an operation according to RFC7047
type OvsSet ¶
type OvsSet struct {
// contains filtered or unexported fields
}
func (OvsSet) MarshalJSON ¶
<set> notation requires special marshalling
type OvsdbClient ¶
type OvsdbClient struct { Schema map[string]DatabaseSchema // contains filtered or unexported fields }
func (OvsdbClient) Disconnect ¶
func (ovs OvsdbClient) Disconnect()
func (OvsdbClient) GetSchema ¶
func (ovs OvsdbClient) GetSchema(dbName string) (*DatabaseSchema, error)
RFC 7047 : get_schema
type OvsdbError ¶
OvsdbError is an OVS Error Condition
type TableSchema ¶
type TableSchema struct { Columns map[string]ColumnSchema `json:"columns"` Indexes [][]string `json:"indexes,omitempty"` }
Directories
¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/cenkalti/hub
Package hub provides a simple event dispatcher for publish/subscribe pattern.
|
Package hub provides a simple event dispatcher for publish/subscribe pattern. |
_workspace/src/github.com/cenkalti/rpc2
Package rpc2 provides bi-directional RPC client and server similar to net/rpc.
|
Package rpc2 provides bi-directional RPC client and server similar to net/rpc. |
_workspace/src/github.com/cenkalti/rpc2/jsonrpc
Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec for the rpc2 package.
|
Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec for the rpc2 package. |