github.com/imran-kn/cilium-fork@v1.6.9/pkg/k8s/client/informers/externalversions/cilium.io/v2/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 v2
    18  
    19  import (
    20  	internalinterfaces "github.com/cilium/cilium/pkg/k8s/client/informers/externalversions/internalinterfaces"
    21  )
    22  
    23  // Interface provides access to all the informers in this group version.
    24  type Interface interface {
    25  	// CiliumEndpoints returns a CiliumEndpointInformer.
    26  	CiliumEndpoints() CiliumEndpointInformer
    27  	// CiliumIdentities returns a CiliumIdentityInformer.
    28  	CiliumIdentities() CiliumIdentityInformer
    29  	// CiliumNetworkPolicies returns a CiliumNetworkPolicyInformer.
    30  	CiliumNetworkPolicies() CiliumNetworkPolicyInformer
    31  	// CiliumNodes returns a CiliumNodeInformer.
    32  	CiliumNodes() CiliumNodeInformer
    33  }
    34  
    35  type version struct {
    36  	factory          internalinterfaces.SharedInformerFactory
    37  	namespace        string
    38  	tweakListOptions internalinterfaces.TweakListOptionsFunc
    39  }
    40  
    41  // New returns a new Interface.
    42  func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
    43  	return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
    44  }
    45  
    46  // CiliumEndpoints returns a CiliumEndpointInformer.
    47  func (v *version) CiliumEndpoints() CiliumEndpointInformer {
    48  	return &ciliumEndpointInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
    49  }
    50  
    51  // CiliumIdentities returns a CiliumIdentityInformer.
    52  func (v *version) CiliumIdentities() CiliumIdentityInformer {
    53  	return &ciliumIdentityInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
    54  }
    55  
    56  // CiliumNetworkPolicies returns a CiliumNetworkPolicyInformer.
    57  func (v *version) CiliumNetworkPolicies() CiliumNetworkPolicyInformer {
    58  	return &ciliumNetworkPolicyInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
    59  }
    60  
    61  // CiliumNodes returns a CiliumNodeInformer.
    62  func (v *version) CiliumNodes() CiliumNodeInformer {
    63  	return &ciliumNodeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
    64  }