Merge remote-tracking branch 'origin/master' into release-1.14. Deleting CHANGELOG-1.12.md

Kubernetes-commit: e5777aab95e5c48f6645044f822e891ccbc2dcea
This commit is contained in:
Kubernetes Publisher
2019-02-27 09:49:00 +00:00
parent 691a3fb41c
commit e6eab34eaf
25 changed files with 345 additions and 600 deletions
+12 -2
View File
@@ -27,15 +27,25 @@ import (
"k8s.io/client-go/tools/pager"
)
// ListerWatcher is any object that knows how to perform an initial list and start a watch on a resource.
type ListerWatcher interface {
// Lister is any object that knows how to perform an initial list.
type Lister interface {
// List should return a list type object; the Items field will be extracted, and the
// ResourceVersion field will be used to start the watch in the right place.
List(options metav1.ListOptions) (runtime.Object, error)
}
// Watcher is any object that knows how to start a watch on a resource.
type Watcher interface {
// Watch should begin a watch at the specified version.
Watch(options metav1.ListOptions) (watch.Interface, error)
}
// ListerWatcher is any object that knows how to perform an initial list and start a watch on a resource.
type ListerWatcher interface {
Lister
Watcher
}
// ListFunc knows how to list resources
type ListFunc func(options metav1.ListOptions) (runtime.Object, error)