MCPcopy
hub / github.com/kubernetes/client-go / Replace

Method Replace

tools/cache/undelta_store.go:69–75  ·  view source on GitHub ↗
(list []interface{}, resourceVersion string)

Source from the content-addressed store, hash-verified

67}
68
69func (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.
78func NewUndeltaStore(pushFunc func([]interface{}), keyFunc KeyFunc) *UndeltaStore {

Callers 1

TestReplaceCallsPushFunction · 0.95

Calls 2

ReplaceMethod · 0.65
ListMethod · 0.65

Tested by 1

TestReplaceCallsPushFunction · 0.76