Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { ID string sync.RWMutex OVSDB iOVSDB Schema string Indexes map[string][]string Data map[string]interface{} // Data[table][index_type][index_val][column] }
func (*Cache) GetList ¶
GetList is used to retrieve data from cache data structure and deep copy it. Cache structure: Data[table][index_type][index_val][column]
Arguments is used as keys in order as in structure: first - table name of interest second - index type of interest, for example "uuid", "name", ... third - index value, for example particular item name fourth - column name, for example "external_ids"
Any amount of arguments can be provided
func (*Cache) GetMap ¶
GetMap is used to retrieve data from cache data structure and deep copy it. Cache structure: Data[table][index_type][index_val][column]
Arguments is used as keys in order as in structure: first - table name of interest second - index type of interest, for example "uuid", "name", ... third - index value, for example particular item name fourth - column name, for example "external_ids"
Any amount of arguments can be provided