in client/gcpfirewall/informers/externalversions/gcpfirewall/v1/gcpfirewall.go [57:77]
func NewFilteredGCPFirewallInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
return cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.NetworkingV1().GCPFirewalls().List(context.TODO(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.NetworkingV1().GCPFirewalls().Watch(context.TODO(), options)
},
},
&gcpfirewallv1.GCPFirewall{},
resyncPeriod,
indexers,
)
}