X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=internal%2Fcli%2Ftypes.go;h=f5c44392375394535db3ac17f184aa029c058750;hb=277f322e53bb123783c0945a78a263ca79c5dd2a;hp=dbe410b4af9370d2fe062522b97d22ec3027b5e3;hpb=b1cc9affa891649332fb034f648e44514624a956;p=ric-plt%2Fsdlgo.git diff --git a/internal/cli/types.go b/internal/cli/types.go index dbe410b..f5c4439 100644 --- a/internal/cli/types.go +++ b/internal/cli/types.go @@ -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