apropriate db
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package utils
|
||||
|
||||
import "cloud.o-forge.io/core/oc-lib/models/resources"
|
||||
|
||||
type DBObject interface {
|
||||
GetName() string
|
||||
Deserialize(j map[string]interface{}) DBObject
|
||||
@@ -7,7 +9,8 @@ type DBObject interface {
|
||||
}
|
||||
|
||||
type Accessor interface {
|
||||
SetLogger()
|
||||
SetLogger(t resources.ResourceType)
|
||||
GetType() string
|
||||
LoadOne(id string) (DBObject, error)
|
||||
DeleteOne(id string) (DBObject, error)
|
||||
StoreOne(data DBObject) (DBObject, error)
|
||||
|
||||
Reference in New Issue
Block a user