Add resource version to Store Replace params.

This commit is contained in:
Wojciech Tyczynski
2015-08-18 10:34:27 +02:00
parent 66a644b275
commit e202f9c797
20 changed files with 27 additions and 254 deletions

View File

@@ -188,7 +188,7 @@ func (f *FIFO) Pop() interface{} {
// 'f' takes ownership of the map, you should not reference the map again
// after calling this function. f's queue is reset, too; upon return, it
// will contain the items in the map, in no particular order.
func (f *FIFO) Replace(list []interface{}) error {
func (f *FIFO) Replace(list []interface{}, resourceVersion string) error {
items := map[string]interface{}{}
for _, item := range list {
key, err := f.keyFunc(item)