Extend Filter interface with Trigger() and use it for pods and nodes

This commit is contained in:
Wojciech Tyczynski
2016-06-03 15:23:26 +02:00
parent 7f7ef0879f
commit 1d9bc58328
46 changed files with 511 additions and 77 deletions

View File

@@ -38,7 +38,7 @@ func NewREST(s storage.Interface, storageDecorator generic.StorageDecorator) *RE
// Usually you should reuse your RESTCreateStrategy.
strategy := &NotNamespaceScoped{}
storageInterface := storageDecorator(
s, 100, &testgroup.TestType{}, prefix, strategy, newListFunc)
s, 100, &testgroup.TestType{}, prefix, strategy, newListFunc, storage.NoTriggerPublisher)
store := &registry.Store{
NewFunc: func() runtime.Object { return &testgroup.TestType{} },
// NewListFunc returns an object capable of storing results of an etcd list.