github.com/imran-kn/cilium-fork@v1.6.9/pkg/k8s/client/informers/externalversions/cilium.io/interface.go (about)

     1  // Copyright 2017-2019 Authors of Cilium
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by informer-gen. DO NOT EDIT.
    16  
    17  package cilium
    18  
    19  import (
    20  	v2 "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/cilium.io/v2"
    21  	internalinterfaces "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/internalinterfaces"
    22  )
    23  
    24  // Interface provides access to each of this group's versions.
    25  type Interface interface {
    26  	// V2 provides access to shared informers for resources in V2.
    27  	V2() v2.Interface
    28  }
    29  
    30  type group struct {
    31  	factory          internalinterfaces.SharedInformerFactory
    32  	namespace        string
    33  	tweakListOptions internalinterfaces.TweakListOptionsFunc
    34  }
    35  
    36  // New returns a new Interface.
    37  func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
    38  	return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
    39  }
    40  
    41  // V2 returns a new v2.Interface.
    42  func (g *group) V2() v2.Interface {
    43  	return v2.New(g.factory, g.namespace, g.tweakListOptions)
    44  }