diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-03-27 11:54:55 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2019-03-27 14:06:02 -0700 |
commit | b6288d59577dd40d6d19841bf030c45f9ec8aa50 (patch) | |
tree | a920be4c664076d88483dc3b2549c9f2016d2707 /src/k8splugin/internal/db/store.go | |
parent | 1ab1af62578c1c2bf7b3b2e56827fe408cabdbb3 (diff) |
Add update method to db interface
Add update interface to the db.
This will allow us to support PUT http methods
in the future.
Issue-ID: MULTICLOUD-553
Change-Id: I7263d42e893734eadbdaf78022005d6004601772
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'src/k8splugin/internal/db/store.go')
-rw-r--r-- | src/k8splugin/internal/db/store.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/k8splugin/internal/db/store.go b/src/k8splugin/internal/db/store.go index 148e078e..0b869c0c 100644 --- a/src/k8splugin/internal/db/store.go +++ b/src/k8splugin/internal/db/store.go @@ -45,7 +45,8 @@ type Store interface { // Reads data for a particular key with specific tag. Read(table string, key Key, tag string) ([]byte, error) - //TODO: Update(context.Context, string, interface{}) error + // Update data for particular key with specific tag + Update(table string, key Key, tag string, data interface{}) error // Deletes a specific tag data for key. // TODO: If tag is empty, it will delete all tags under key. |