Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSourceApiserver ¶
func NewSourceApiserver(c clientset.KetiV1Interface, nodeName types.NodeName, updates chan<- interface{})
NewSourceApiserver creates a config source that watches and pulls from the apiserver.
Types ¶
type ListFunc ¶
type ListFunc func(options metav1.ListOptions) (runtime.Object, error)
ListFunc knows how to list resources
type ListWatch ¶
type ListWatch struct { ListFunc ListFunc WatchFunc WatchFunc // DisableChunking requests no chunking for this list watcher. DisableChunking bool }
ListWatch knows how to list and watch a set of apiserver resources. It satisfies the ListerWatcher interface. It is a convenience function for users of NewReflector, etc. ListFunc and WatchFunc must not be nil
func NewFilteredListWatchFromClient ¶
func NewFilteredListWatchFromClient(c clientset.KetiV1Interface, resource string, namespace string, optionsModifier func(options *metav1.ListOptions)) *ListWatch
NewFilteredListWatchFromClient creates a new ListWatch from the specified client, resource, namespace, and option modifier. Option modifier is a function takes a ListOptions and modifies the consumed ListOptions. Provide customized modifier function to apply modification to ListOptions with a field selector, a label selector, or any other desired options.
func NewListWatchFromClient ¶
func NewListWatchFromClient(c clientset.KetiV1Interface, resource string, namespace string, fieldSelector fields.Selector) *ListWatch
NewListWatchFromClient creates a new ListWatch from the specified client, resource, namespace and field selector.
type Lister ¶
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) }
Lister is any object that knows how to perform an initial list.
type ListerWatcher ¶
ListerWatcher is any object that knows how to perform an initial list and start a watch on a resource.