github.com/cilium/cilium@v1.16.2/pkg/k8s/client/informers/externalversions/cilium.io/interface.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 // Code generated by informer-gen. DO NOT EDIT. 5 6 package cilium 7 8 import ( 9 v2 "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/cilium.io/v2" 10 v2alpha1 "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/cilium.io/v2alpha1" 11 internalinterfaces "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/internalinterfaces" 12 ) 13 14 // Interface provides access to each of this group's versions. 15 type Interface interface { 16 // V2 provides access to shared informers for resources in V2. 17 V2() v2.Interface 18 // V2alpha1 provides access to shared informers for resources in V2alpha1. 19 V2alpha1() v2alpha1.Interface 20 } 21 22 type group struct { 23 factory internalinterfaces.SharedInformerFactory 24 namespace string 25 tweakListOptions internalinterfaces.TweakListOptionsFunc 26 } 27 28 // New returns a new Interface. 29 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { 30 return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} 31 } 32 33 // V2 returns a new v2.Interface. 34 func (g *group) V2() v2.Interface { 35 return v2.New(g.factory, g.namespace, g.tweakListOptions) 36 } 37 38 // V2alpha1 returns a new v2alpha1.Interface. 39 func (g *group) V2alpha1() v2alpha1.Interface { 40 return v2alpha1.New(g.factory, g.namespace, g.tweakListOptions) 41 }