github.com/tigera/api@v0.0.0-20240320170621-278e89a8c5fb/pkg/client/informers_generated/externalversions/projectcalico/interface.go (about) 1 // Copyright (c) 2024 Tigera, Inc. All rights reserved. 2 3 // Code generated by informer-gen. DO NOT EDIT. 4 5 package projectcalico 6 7 import ( 8 internalinterfaces "github.com/tigera/api/pkg/client/informers_generated/externalversions/internalinterfaces" 9 v3 "github.com/tigera/api/pkg/client/informers_generated/externalversions/projectcalico/v3" 10 ) 11 12 // Interface provides access to each of this group's versions. 13 type Interface interface { 14 // V3 provides access to shared informers for resources in V3. 15 V3() v3.Interface 16 } 17 18 type group struct { 19 factory internalinterfaces.SharedInformerFactory 20 namespace string 21 tweakListOptions internalinterfaces.TweakListOptionsFunc 22 } 23 24 // New returns a new Interface. 25 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { 26 return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} 27 } 28 29 // V3 returns a new v3.Interface. 30 func (g *group) V3() v3.Interface { 31 return v3.New(g.factory, g.namespace, g.tweakListOptions) 32 }