package watchlist
import "k8s.io/client-go/util/watchlist"
Index ¶
- func DoesClientNotSupportWatchListSemantics(client any) bool
- func PrepareWatchListOptionsFromListOptions(listOptions metav1.ListOptions) (metav1.ListOptions, bool, error)
Functions ¶
func DoesClientNotSupportWatchListSemantics ¶
DoesClientNotSupportWatchListSemantics reports whether the given client does NOT support WatchList semantics.
A client does NOT support WatchList only if it implements `IsWatchListSemanticsUnSupported` and that returns true.
For an explanation of how WatchList works, see: https://kubernetes.io/docs/reference/using-api/api-concepts/#streaming-lists
func PrepareWatchListOptionsFromListOptions ¶
func PrepareWatchListOptionsFromListOptions(listOptions metav1.ListOptions) (metav1.ListOptions, bool, error)
PrepareWatchListOptionsFromListOptions creates a new ListOptions that can be used for a watch-list request from the given listOptions.
This function also determines if the given listOptions can be used to form a watch-list request, which would result in streaming semantically equivalent data from the server.
Source Files ¶
watch_list.go
- Version
- v0.36.0 (latest)
- Published
- Apr 22, 2026
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 seconds ago –
Tools for package owners.