Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBReadWithSchema ¶
func DBReadWithSchema(in io.Reader, maxTokenSize int, ovsSchema *OVSdbSchema) (OVNDbType, *OVSdbSchema, error)
Types ¶
type DbDef ¶
type DbDef struct { Schema *OVSdbSchema Name string TableDefs []TableDef }
func (*DbDef) AugmentSchema ¶
func (*DbDef) ParseSchema ¶
func (db *DbDef) ParseSchema(tbl *OVSdbSchema) error
type OVSDBType ¶
type OVSDBType int
TaskState represents the state of task, moving through Created, Running then Finished or Errorred
func (OVSDBType) MarshalJSON ¶
MarshalJSON marshals the enum as a quoted json string
func (*OVSDBType) UnmarshalJSON ¶
UnmarshalJSON unmashals a quoted json string to the enum value
type OVSdbSchema ¶
type OVSdbSchema struct { ChkSum string `json:"cksum"` Type OVSDBType `json:"name"` Version string `json:"version"` Tables map[string]interface{} `json:"tables"` }
func (*OVSdbSchema) NewDb ¶
func (schema *OVSdbSchema) NewDb() (OVNDbType, error)
func (*OVSdbSchema) ReadOvsDbSchema ¶
func (schema *OVSdbSchema) ReadOvsDbSchema(in io.Reader, maxTokenSize int) error
func (*OVSdbSchema) ReadOvsDbSchemaBuf ¶
func (schema *OVSdbSchema) ReadOvsDbSchemaBuf(buf bytes.Buffer) error
func (*OVSdbSchema) ReadOvsDbSchemaFile ¶
func (schema *OVSdbSchema) ReadOvsDbSchemaFile(filename string) error
Click to show internal directories.
Click to hide internal directories.