Store.Store.apply: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/store.bend as Store Lines 20-31 of bend-kube-runtime@0.2.0.0/src/store.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/store.bend&start_line=20&end_line=31 import Base import bend-kube-runtime@0.2.0.0/src/json.bend as J import bend-kube-runtime@0.2.0.0/src/core.bend as C import bend-kube-runtime@0.2.0.0/src/watcher.bend as W def Store.apply(s: Store, o: W.Out) -> Store: match s o: case Store{objs, buf, r} W.OInit{}: Store{objs, Map.new(&2, J.Json), r} case Store{objs, buf, r} W.OInitApply{+x}: Store{objs, Map.set(&2, J.Json, buf, C.Obj.key(x), x), r} case Store{objs, buf, r} W.OInitDone{}: Store{buf, Map.new(&2, J.Json), True{}} case Store{objs, buf, r} W.OApply{+x}: Store{Map.set(&2, J.Json, objs, C.Obj.key(x), x), buf, r} case Store{objs, buf, r} W.ODelete{+x}: Store{Map.del(&2, J.Json, objs, C.Obj.key(x)), buf, r} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.del https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.new https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.set https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/core.bend&name=Obj.key https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/store.bend&name=Store https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/watcher.bend&name=Out