Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransformingWatcher ¶
func NewTransformingWatcher(watcher watch.Interface, eventTransformer EventTransformer) *transformingWatcher
NewTransformingWatcher returns a watcher based on the input watcher, but which will apply the EventTransformer to each event before delivering it.
func NewVirtualManifestWork ¶
func NewVirtualManifestWork(ctx context.Context, c workclientset.Interface) *virtualManifestWork
Types ¶
type EventTransformer ¶
EventTransformer is a simple interface that transforms a watch event.
type VirtualManifestWork ¶
type VirtualManifestWork interface { Get(ctx context.Context, name string, opts metav1.GetOptions) (*workapiv1.ManifestWork, error) List(ctx context.Context, opts metav1.ListOptions) (*workapiv1.ManifestWorkList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Update(ctx context.Context, old, new *workapiv1.ManifestWork, opts metav1.UpdateOptions) (*workapiv1.ManifestWork, error) UpdateStatus(ctx context.Context, old, new *workapiv1.ManifestWork, opts metav1.UpdateOptions) (*workapiv1.ManifestWork, error) }
Click to show internal directories.
Click to hide internal directories.