mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-02-07 22:32:55 +08:00
Re-generate all listers
Kubernetes-commit: be370ddebcb3785325385267cbe5bd7b372e6118
This commit is contained in:
parent
7d53195909
commit
2419a0374b
@ -26,8 +26,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// FooLister helps list Foos.
|
// FooLister helps list Foos.
|
||||||
|
// All objects returned here must be treated as read-only.
|
||||||
type FooLister interface {
|
type FooLister interface {
|
||||||
// List lists all Foos in the indexer.
|
// List lists all Foos in the indexer.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
List(selector labels.Selector) (ret []*v1alpha1.Foo, err error)
|
List(selector labels.Selector) (ret []*v1alpha1.Foo, err error)
|
||||||
// Foos returns an object that can list and get Foos.
|
// Foos returns an object that can list and get Foos.
|
||||||
Foos(namespace string) FooNamespaceLister
|
Foos(namespace string) FooNamespaceLister
|
||||||
@ -58,10 +60,13 @@ func (s *fooLister) Foos(namespace string) FooNamespaceLister {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FooNamespaceLister helps list and get Foos.
|
// FooNamespaceLister helps list and get Foos.
|
||||||
|
// All objects returned here must be treated as read-only.
|
||||||
type FooNamespaceLister interface {
|
type FooNamespaceLister interface {
|
||||||
// List lists all Foos in the indexer for a given namespace.
|
// List lists all Foos in the indexer for a given namespace.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
List(selector labels.Selector) (ret []*v1alpha1.Foo, err error)
|
List(selector labels.Selector) (ret []*v1alpha1.Foo, err error)
|
||||||
// Get retrieves the Foo from the indexer for a given namespace and name.
|
// Get retrieves the Foo from the indexer for a given namespace and name.
|
||||||
|
// Objects returned here must be treated as read-only.
|
||||||
Get(name string) (*v1alpha1.Foo, error)
|
Get(name string) (*v1alpha1.Foo, error)
|
||||||
FooNamespaceListerExpansion
|
FooNamespaceListerExpansion
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user