mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-25 06:24:59 +00:00
Coordinated Leader Election Alpha API
Kubernetes-commit: 3999b98c8840e41acaa19d94e88f46d1fbb0c1b3
This commit is contained in:
committed by
Kubernetes Publisher
parent
93c6a5bf50
commit
8a2bbd0393
27
listers/coordination/v1alpha1/expansion_generated.go
Normal file
27
listers/coordination/v1alpha1/expansion_generated.go
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
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 v1alpha1
|
||||
|
||||
// LeaseCandidateListerExpansion allows custom methods to be added to
|
||||
// LeaseCandidateLister.
|
||||
type LeaseCandidateListerExpansion interface{}
|
||||
|
||||
// LeaseCandidateNamespaceListerExpansion allows custom methods to be added to
|
||||
// LeaseCandidateNamespaceLister.
|
||||
type LeaseCandidateNamespaceListerExpansion interface{}
|
70
listers/coordination/v1alpha1/leasecandidate.go
Normal file
70
listers/coordination/v1alpha1/leasecandidate.go
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
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 v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "k8s.io/api/coordination/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/listers"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
// LeaseCandidateLister helps list LeaseCandidates.
|
||||
// All objects returned here must be treated as read-only.
|
||||
type LeaseCandidateLister interface {
|
||||
// List lists all LeaseCandidates in the indexer.
|
||||
// Objects returned here must be treated as read-only.
|
||||
List(selector labels.Selector) (ret []*v1alpha1.LeaseCandidate, err error)
|
||||
// LeaseCandidates returns an object that can list and get LeaseCandidates.
|
||||
LeaseCandidates(namespace string) LeaseCandidateNamespaceLister
|
||||
LeaseCandidateListerExpansion
|
||||
}
|
||||
|
||||
// leaseCandidateLister implements the LeaseCandidateLister interface.
|
||||
type leaseCandidateLister struct {
|
||||
listers.ResourceIndexer[*v1alpha1.LeaseCandidate]
|
||||
}
|
||||
|
||||
// NewLeaseCandidateLister returns a new LeaseCandidateLister.
|
||||
func NewLeaseCandidateLister(indexer cache.Indexer) LeaseCandidateLister {
|
||||
return &leaseCandidateLister{listers.New[*v1alpha1.LeaseCandidate](indexer, v1alpha1.Resource("leasecandidate"))}
|
||||
}
|
||||
|
||||
// LeaseCandidates returns an object that can list and get LeaseCandidates.
|
||||
func (s *leaseCandidateLister) LeaseCandidates(namespace string) LeaseCandidateNamespaceLister {
|
||||
return leaseCandidateNamespaceLister{listers.NewNamespaced[*v1alpha1.LeaseCandidate](s.ResourceIndexer, namespace)}
|
||||
}
|
||||
|
||||
// LeaseCandidateNamespaceLister helps list and get LeaseCandidates.
|
||||
// All objects returned here must be treated as read-only.
|
||||
type LeaseCandidateNamespaceLister interface {
|
||||
// List lists all LeaseCandidates in the indexer for a given namespace.
|
||||
// Objects returned here must be treated as read-only.
|
||||
List(selector labels.Selector) (ret []*v1alpha1.LeaseCandidate, err error)
|
||||
// Get retrieves the LeaseCandidate from the indexer for a given namespace and name.
|
||||
// Objects returned here must be treated as read-only.
|
||||
Get(name string) (*v1alpha1.LeaseCandidate, error)
|
||||
LeaseCandidateNamespaceListerExpansion
|
||||
}
|
||||
|
||||
// leaseCandidateNamespaceLister implements the LeaseCandidateNamespaceLister
|
||||
// interface.
|
||||
type leaseCandidateNamespaceLister struct {
|
||||
listers.ResourceIndexer[*v1alpha1.LeaseCandidate]
|
||||
}
|
Reference in New Issue
Block a user