github.com/kubeflow/training-operator@v1.7.0/pkg/client/informers/externalversions/kubeflow.org/interface.go (about) 1 // Copyright 2023 The Kubeflow Authors 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 kubeflow 18 19 import ( 20 internalinterfaces "github.com/kubeflow/training-operator/pkg/client/informers/externalversions/internalinterfaces" 21 v1 "github.com/kubeflow/training-operator/pkg/client/informers/externalversions/kubeflow.org/v1" 22 ) 23 24 // Interface provides access to each of this group's versions. 25 type Interface interface { 26 // V1 provides access to shared informers for resources in V1. 27 V1() v1.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 // V1 returns a new v1.Interface. 42 func (g *group) V1() v1.Interface { 43 return v1.New(g.factory, g.namespace, g.tweakListOptions) 44 }