Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSetFunc ¶ added in v0.5.0
ClientSetFunc is used to generate client set of member cluster
type ObjectWatcher ¶
type ObjectWatcher interface { Create(ctx context.Context, clusterName string, desireObj *unstructured.Unstructured) error Update(ctx context.Context, clusterName string, desireObj, clusterObj *unstructured.Unstructured) error Delete(ctx context.Context, clusterName string, desireObj *unstructured.Unstructured) error NeedsUpdate(clusterName string, desiredObj, clusterObj *unstructured.Unstructured) (bool, error) }
ObjectWatcher manages operations for object dispatched to member clusters.
func NewObjectWatcher ¶
func NewObjectWatcher(kubeClientSet client.Client, restMapper meta.RESTMapper, clusterClientSetFunc ClientSetFunc, interpreter resourceinterpreter.ResourceInterpreter) ObjectWatcher
NewObjectWatcher returns an instance of ObjectWatcher
Click to show internal directories.
Click to hide internal directories.