Implement SDL CLI 'get namespaces' -command
[ric-plt/sdlgo.git] / internal / cli / types.go
index dbe410b..f5c4439 100644 (file)
@@ -29,6 +29,7 @@ import "gerrit.o-ran-sc.org/r/ric-plt/sdlgo/internal/sdlgoredis"
 type iDatabase interface {
        Info() (*sdlgoredis.DbInfo, error)
        State() (*sdlgoredis.DbState, error)
+       Keys(pattern string) ([]string, error)
 }
 
 //Database struct is a holder for the internal database instances.
@@ -41,6 +42,7 @@ type DbCreateCb func() *Database
 
 //iSyncStorage is an interface towards SDL SyncStorage API
 type ISyncStorage interface {
+       Get(ns string, keys []string) (map[string]interface{}, error)
        ListKeys(ns string, pattern string) ([]string, error)
        Set(ns string, pairs ...interface{}) error
        Remove(ns string, keys []string) error