mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-21 02:57:47 +00:00
Auto updates
Kubernetes-commit: 5d83282823d5ee728d610befb389e3732b4503c3
This commit is contained in:
committed by
Kubernetes Publisher
parent
8c60342479
commit
4ceeb096c4
@@ -22,6 +22,14 @@ package v1
|
||||
// MutatingWebhookConfigurationLister.
|
||||
type MutatingWebhookConfigurationListerExpansion interface{}
|
||||
|
||||
// ValidatingAdmissionPolicyListerExpansion allows custom methods to be added to
|
||||
// ValidatingAdmissionPolicyLister.
|
||||
type ValidatingAdmissionPolicyListerExpansion interface{}
|
||||
|
||||
// ValidatingAdmissionPolicyBindingListerExpansion allows custom methods to be added to
|
||||
// ValidatingAdmissionPolicyBindingLister.
|
||||
type ValidatingAdmissionPolicyBindingListerExpansion interface{}
|
||||
|
||||
// ValidatingWebhookConfigurationListerExpansion allows custom methods to be added to
|
||||
// ValidatingWebhookConfigurationLister.
|
||||
type ValidatingWebhookConfigurationListerExpansion interface{}
|
||||
|
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by lister-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/admissionregistration/v1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// ValidatingAdmissionPolicyLister helps list ValidatingAdmissionPolicies.
|
||||
// All objects returned here must be treated as read-only.
|
||||
type ValidatingAdmissionPolicyLister interface {
|
||||
// List lists all ValidatingAdmissionPolicies in the indexer.
|
||||
// Objects returned here must be treated as read-only.
|
||||
List(selector labels.Selector) (ret []*v1.ValidatingAdmissionPolicy, err error)
|
||||
// Get retrieves the ValidatingAdmissionPolicy from the index for a given name.
|
||||
// Objects returned here must be treated as read-only.
|
||||
Get(name string) (*v1.ValidatingAdmissionPolicy, error)
|
||||
ValidatingAdmissionPolicyListerExpansion
|
||||
}
|
||||
|
||||
// validatingAdmissionPolicyLister implements the ValidatingAdmissionPolicyLister interface.
|
||||
type validatingAdmissionPolicyLister struct {
|
||||
indexer cache.Indexer
|
||||
}
|
||||
|
||||
// NewValidatingAdmissionPolicyLister returns a new ValidatingAdmissionPolicyLister.
|
||||
func NewValidatingAdmissionPolicyLister(indexer cache.Indexer) ValidatingAdmissionPolicyLister {
|
||||
return &validatingAdmissionPolicyLister{indexer: indexer}
|
||||
}
|
||||
|
||||
// List lists all ValidatingAdmissionPolicies in the indexer.
|
||||
func (s *validatingAdmissionPolicyLister) List(selector labels.Selector) (ret []*v1.ValidatingAdmissionPolicy, err error) {
|
||||
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
||||
ret = append(ret, m.(*v1.ValidatingAdmissionPolicy))
|
||||
})
|
||||
return ret, err
|
||||
}
|
||||
|
||||
// Get retrieves the ValidatingAdmissionPolicy from the index for a given name.
|
||||
func (s *validatingAdmissionPolicyLister) Get(name string) (*v1.ValidatingAdmissionPolicy, error) {
|
||||
obj, exists, err := s.indexer.GetByKey(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !exists {
|
||||
return nil, errors.NewNotFound(v1.Resource("validatingadmissionpolicy"), name)
|
||||
}
|
||||
return obj.(*v1.ValidatingAdmissionPolicy), nil
|
||||
}
|
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by lister-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/admissionregistration/v1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// ValidatingAdmissionPolicyBindingLister helps list ValidatingAdmissionPolicyBindings.
|
||||
// All objects returned here must be treated as read-only.
|
||||
type ValidatingAdmissionPolicyBindingLister interface {
|
||||
// List lists all ValidatingAdmissionPolicyBindings in the indexer.
|
||||
// Objects returned here must be treated as read-only.
|
||||
List(selector labels.Selector) (ret []*v1.ValidatingAdmissionPolicyBinding, err error)
|
||||
// Get retrieves the ValidatingAdmissionPolicyBinding from the index for a given name.
|
||||
// Objects returned here must be treated as read-only.
|
||||
Get(name string) (*v1.ValidatingAdmissionPolicyBinding, error)
|
||||
ValidatingAdmissionPolicyBindingListerExpansion
|
||||
}
|
||||
|
||||
// validatingAdmissionPolicyBindingLister implements the ValidatingAdmissionPolicyBindingLister interface.
|
||||
type validatingAdmissionPolicyBindingLister struct {
|
||||
indexer cache.Indexer
|
||||
}
|
||||
|
||||
// NewValidatingAdmissionPolicyBindingLister returns a new ValidatingAdmissionPolicyBindingLister.
|
||||
func NewValidatingAdmissionPolicyBindingLister(indexer cache.Indexer) ValidatingAdmissionPolicyBindingLister {
|
||||
return &validatingAdmissionPolicyBindingLister{indexer: indexer}
|
||||
}
|
||||
|
||||
// List lists all ValidatingAdmissionPolicyBindings in the indexer.
|
||||
func (s *validatingAdmissionPolicyBindingLister) List(selector labels.Selector) (ret []*v1.ValidatingAdmissionPolicyBinding, err error) {
|
||||
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
||||
ret = append(ret, m.(*v1.ValidatingAdmissionPolicyBinding))
|
||||
})
|
||||
return ret, err
|
||||
}
|
||||
|
||||
// Get retrieves the ValidatingAdmissionPolicyBinding from the index for a given name.
|
||||
func (s *validatingAdmissionPolicyBindingLister) Get(name string) (*v1.ValidatingAdmissionPolicyBinding, error) {
|
||||
obj, exists, err := s.indexer.GetByKey(name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !exists {
|
||||
return nil, errors.NewNotFound(v1.Resource("validatingadmissionpolicybinding"), name)
|
||||
}
|
||||
return obj.(*v1.ValidatingAdmissionPolicyBinding), nil
|
||||
}
|
Reference in New Issue
Block a user