github.com/kubeflow/training-operator@v1.7.0/pkg/client/informers/externalversions/kubeflow.org/v1/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 v1 18 19 import ( 20 internalinterfaces "github.com/kubeflow/training-operator/pkg/client/informers/externalversions/internalinterfaces" 21 ) 22 23 // Interface provides access to all the informers in this group version. 24 type Interface interface { 25 // MPIJobs returns a MPIJobInformer. 26 MPIJobs() MPIJobInformer 27 // MXJobs returns a MXJobInformer. 28 MXJobs() MXJobInformer 29 // PaddleJobs returns a PaddleJobInformer. 30 PaddleJobs() PaddleJobInformer 31 // PyTorchJobs returns a PyTorchJobInformer. 32 PyTorchJobs() PyTorchJobInformer 33 // TFJobs returns a TFJobInformer. 34 TFJobs() TFJobInformer 35 // XGBoostJobs returns a XGBoostJobInformer. 36 XGBoostJobs() XGBoostJobInformer 37 } 38 39 type version struct { 40 factory internalinterfaces.SharedInformerFactory 41 namespace string 42 tweakListOptions internalinterfaces.TweakListOptionsFunc 43 } 44 45 // New returns a new Interface. 46 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { 47 return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} 48 } 49 50 // MPIJobs returns a MPIJobInformer. 51 func (v *version) MPIJobs() MPIJobInformer { 52 return &mPIJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 53 } 54 55 // MXJobs returns a MXJobInformer. 56 func (v *version) MXJobs() MXJobInformer { 57 return &mXJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 58 } 59 60 // PaddleJobs returns a PaddleJobInformer. 61 func (v *version) PaddleJobs() PaddleJobInformer { 62 return &paddleJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 63 } 64 65 // PyTorchJobs returns a PyTorchJobInformer. 66 func (v *version) PyTorchJobs() PyTorchJobInformer { 67 return &pyTorchJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 68 } 69 70 // TFJobs returns a TFJobInformer. 71 func (v *version) TFJobs() TFJobInformer { 72 return &tFJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 73 } 74 75 // XGBoostJobs returns a XGBoostJobInformer. 76 func (v *version) XGBoostJobs() XGBoostJobInformer { 77 return &xGBoostJobInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} 78 }