(list []interface{}, resourceVersion string)
| 67 | } |
| 68 | |
| 69 | func (u *UndeltaStore) Replace(list []interface{}, resourceVersion string) error { |
| 70 | if err := u.Store.Replace(list, resourceVersion); err != nil { |
| 71 | return err |
| 72 | } |
| 73 | u.PushFunc(u.Store.List()) |
| 74 | return nil |
| 75 | } |
| 76 | |
| 77 | // NewUndeltaStore returns an UndeltaStore implemented with a Store. |
| 78 | func NewUndeltaStore(pushFunc func([]interface{}), keyFunc KeyFunc) *UndeltaStore { |