diff options
author | Ritu Sood <ritu.sood@intel.com> | 2020-03-11 18:05:13 -0700 |
---|---|---|
committer | Ritu Sood <ritu.sood@intel.com> | 2020-03-11 18:05:13 -0700 |
commit | c505dd3ce0d4d5bf4611d78e11bc1d6162f49147 (patch) | |
tree | 387e561b64fe00ec5656db3517aa599a1d437f29 /src/orchestrator/pkg/infra/contextdb/contextdb.go | |
parent | 251c38778c0c499cae61383720dd8b053b16b87e (diff) |
Add Delete and DeleteAll functionality to etcd
Currently only supports DeleteAll.
Issue-ID: MULTICLOUD-871
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I9ee03648462c5a04481c89bf864cdec35cfd4230
Diffstat (limited to 'src/orchestrator/pkg/infra/contextdb/contextdb.go')
-rw-r--r-- | src/orchestrator/pkg/infra/contextdb/contextdb.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/orchestrator/pkg/infra/contextdb/contextdb.go b/src/orchestrator/pkg/infra/contextdb/contextdb.go index d18af227..58832a19 100644 --- a/src/orchestrator/pkg/infra/contextdb/contextdb.go +++ b/src/orchestrator/pkg/infra/contextdb/contextdb.go @@ -29,6 +29,8 @@ type ContextDb interface { Put(key string, value interface{}) error // Delete k,v Delete(key string) error + // Delete all keys in heirarchy + DeleteAll(key string) error // Gets Json Struct from db Get(key string, value interface{}) error // Returns all keys with a prefix |