Documentation ¶
Index ¶
Constants ¶
View Source
const ( Equals = "==" Exists = "Exists" LessThan = "lt" GreaterThan = "gt" NotEquals = "!=" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupVersionResource ¶
type LabelSelector ¶
type ListOptions ¶
type ListOptions struct { LabelSelector []LabelSelector ResourceVersion string }
ListOptions is reserved to be implemented.
type ObjectAPI ¶
type ObjectAPI[T any, PT Object[T]] interface { Get(namespace, name string, _ GetOptions) (T, error) Watch(namespace, name string, _ ListOptions) (WatchInterface[T, PT], error) List(namespace string, _ ListOptions) (*List[T, PT], error) Apply(namespace, name, fieldManager string, force bool, item T) (T, error, EventType) Patch(namespace, name, fieldManager string, item T) (T, error) Create(namespace string, item T) (T, error) Delete(namespace, name string, force bool) (T, error) Subresource(subresource string) ObjectAPI[T, PT] Status() ObjectAPI[T, PT] }
ObjectAPI wraps all operations on object.
type WatchInterface ¶
type WatchInterface[T any, PT Object[T]] interface { // Stop stops watching. Will close the channel returned by ResultChan(). Releases // any resources used by the Watch. Stop() // ResultChan returns a chan which will receive all the events. If an error occurs // or Stop() is called, this channel will be closed, in which case the // Watch should be completely cleaned up. ResultChan() <-chan Event[T, PT] }
WatchInterface can be implemented by anything that knows how to Watch and report changes.
Click to show internal directories.
Click to hide internal directories.